Hi Samuel, I have some questions regarding your solution to second problem.
Changing target and global works for generated java classes. And classOrPackageNames is also need changed to make jni cpp files generated and compiled. I use the following command because modifying myproject/pom.xml does not easily work for me.
However, the generated myproject-macosx-x86_64.jar is missing some dynamic libraries comparing to initial generated jar under org.bytedeco group.
myproject/pom.xml is as below.
<?xml version="1.0" encoding="UTF-8"?>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.bytedeco</groupId>
<artifactId>javacpp-presets</artifactId>
<version>1.5.6-SNAPSHOT</version>
</parent>
<groupId>org.bytedeco</groupId>
<artifactId>myproject</artifactId>
<version>${revision}</version>
<name>JavaCPP Presets for myproject</name>
<properties>
<revision>2.4.1-${project.parent.version}</revision>
</properties>
<dependencies>
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>javacpp</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.bytedeco</groupId>
<artifactId>javacpp</artifactId>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>mingw</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.bytedeco</groupId>
<artifactId>javacpp</artifactId>
<configuration>
<properties>${javacpp.platform}-mingw</properties>
<compilerOptions>
<compilerOption>-static-libgcc</compilerOption>
<compilerOption>-static-libstdc++</compilerOption>
<compilerOption>-Wl,-Bstatic</compilerOption>
<compilerOption>-lstdc++</compilerOption>
<compilerOption>-lgcc</compilerOption>
<compilerOption>-lgcc_eh</compilerOption>
<compilerOption>-lpthread</compilerOption>
<compilerOption>-Wl,-Bdynamic</compilerOption>
</compilerOptions>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>