Upgraded Maven to the latest version (3.3.9), added the flag, added more modules and re-ran the build. Here's the command:
mvn
install --projects .,opencv,ffmpeg,flandmark,artoolkitplus,libfreenect
-Djavacpp.platform=linux-armhf
-Djavacpp.platform.compiler=arm-linux-gnueabihf-g++
-Dplatform=linux-armhf -Dplatform.compiler=arm-linux-gnueabihf-g++
-Djavacpp.platform.dependency=false
This time it was
successful... but it looks like the story didn't end there. Note that
this build did not include flycapture and libdc1394: I don't need them,
I'll never use them, and I really don't want to waste my time building
them if possible.
So, next step... building javacv:
mvn install -Pffmpeg -Djavacpp.platform=linux-armhf -Djavacpp.platform.compiler=arm-linux-gnueabihf-g++ -Dplatform=linux-armhf -Dplatform.compiler=arm-linux-gnueabihf-g++ -Dmaven.test.skip=true
The command doesn't allow me to choose the list of modules to build. I suppose I could exclude certain parts of the source tree by choosing the appropriate profile. Here's the problem, though:
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>flycapture</artifactId>
<version>2.8.3.1-${javacpp.version}</version>
</dependency>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>libdc1394</artifactId>
<version>2.2.4-${javacpp.version}</version>
</dependency>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>videoinput</artifactId>
<version>0.200-${javacpp.version}</version>
</dependency>
The first two I excluded from my javacpp-presets build. The last one... I am not even sure it's possible to build it under linux-armhf. Isn't it a win32-only thing? Anyway, the build fails -- predictably enough -- when it cannot find a flycapture artifact. Which I've never built.
What would be the best way to fix this? Should I edit pom.xml and simply remove dependencies that I have not built or cannot build? Or something else?
Thanks in advance!