I’m trying to build the DL4J stack and was following the Build from Source Page. I made it to the section that needs me to use the install script to build. However that install script link doesn’t actually exist anymore. Is there a more up to date guide to build from source?
Hey treo, I’m getting this error once I start the maven command.
[ERROR] Failed to execute goal org.bytedeco:javacpp:1.5.3-SNAPSHOT:build (javacpp-cppbuild-validate) on project libnd4j: Execution javacpp-cppbuild-validate of goal org.bytedeco:javacpp:1.5.3-SNAPSHOT:build failed: Plugin org.bytedeco:javacpp:1.5.3-SNAPSHOT or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.bytedeco:openblas:jar:android-arm:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:android-arm64:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:android-x86:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:android-x86_64:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:ios-arm64:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:ios-x86_64:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:linux-armhf:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:linux-arm64:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:linux-ppc64le:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:windows-x86:0.3.7-1.5.3-SNAPSHOT: Could not find artifact org.bytedeco:openblas:jar:android-arm:0.3.7-1.5.3-SNAPSHOT in sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots) → [Help 1]
Looks like the fix for this hasn’t been pushed to the eclipse repository yet. You can try building from https://github.com/KonduitAI/deeplearning4j but that fork is a bit more unstable, as most active development happens there.
Had some issues initialy but it turns out that was because of an old cmake version. Just needed to upgrade it. Seems like its building and is probably gonna take a while. Thanks for all the help. I’ll let you know if anything else comes up!
Hey Treo, getting another during the build process. Any idea what my issue would be?
[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireFilesExist failed with message:
!!! You have to compile libnd4j with cpu support first!
Some required files are missing:
/home/zamlz/src/java/dl4j_build/libnd4j/blas/NativeOps.h
/home/zamlz/src/java/dl4j_build/libnd4j/blasbuild/cpu/blas
Then later down the line I see,
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce (libnd4j-checks) on project nd4j-native: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
Wait hold on. I just noticed something about that path. Its not in the folder I’m currently building in. So in the doc page I linked way earlier, they say to set the environment variable $LIBND4J_HOME and I had it set to /home/zamlz/src/java/dl4j_build/libnd4j. Could this be what is causing the issues? Because there are no files in there, thats for sure. The location of my root directory that I’m building from is /home/zamlz/src/java/deeplearning4j-konduit.