dependabot[bot] on bundler
dependabot[bot] on bundler
Bump rack from 2.1.1 to 2.2.6.2… (compare)
javac
was not found. So I changed the line cmake --build build --target javac --target jar
to cmake --build build --target /usr/bin/javac --target jar
cmake --build build --target /usr/bin/javac --target jar
[ 5%] Building CXX object CMakeFiles/aparapi_aarch64.dir/syncleus/aparapi-native/src/cpp/CLHelper.cpp.o
In file included from /Users/matthewgroth/registered/ide/aparapi-builder-cmake/syncleus/aparapi-native/src/cpp/CLHelper.cpp:55:
In file included from /Users/matthewgroth/registered/ide/aparapi-builder-cmake/syncleus/aparapi-native/src/cpp/CLHelper.h:57:
/Users/matthewgroth/registered/ide/aparapi-builder-cmake/syncleus/aparapi-native/src/cpp/Common.h:77:10: fatal error: 'jni.h' file not found
#include <jni.h>
^~~~~~~
1 error generated.
make[3]: *** [CMakeFiles/aparapi_aarch64.dir/syncleus/aparapi-native/src/cpp/CLHelper.cpp.o] Error 1
make[2]: *** [CMakeFiles/aparapi_aarch64.dir/all] Error 2
make[1]: *** [CMakeFiles/jar.dir/rule] Error 2
make: *** [jar] Error 2
cmake --build build --target javac --target jar
is correct. You may need to edit the CMakeLists.txt to point JAVA_HOME (in the CMakeLists.txt) to your JDK.
We need JAVA_HOME to point to a JDK so we can find javac, java and jar . Also ${JAVA_HOME}/include is where we find jni.h. The error.
Once you change JAVA_HOME (or anything in CMakeLists.txt)
cmake build
cmake --build build --target javac --target jar
The first line rescans the CMakeLists.txt to create the make/ninja files.
@freemo . I have some patches collected here
https://github.com/grfrost/aparapi-builder-cmake/tree/main/patches
Mostly they suppress clang warnings, some are potential access violations I found running valgrind. The main fix https://github.com/grfrost/aparapi-builder-cmake/blob/main/patches/aparapi-jni.patch allows Aparapi to build on Apple M1 (arch64) machines. Sorry I have not pushed this back to mainline. I moved away from using Maven a long time ago, This project builds from your maven repos using cmake... I know slightly weird for Java but saves me from more grey hairs.