Open tecnique2 opened 3 years ago
Yes, sorry, that wasn't managed cleanly: The version number in the CMake file is 2.0.1
. But the version number on the Java side (specifially, the one that is encoded in CL.java
) is 2.0.2
. The reason for that is that there had been no changes in the native part between 2.0.1 and 2.0.1 (it was only an minor update on the Java side).
I have updated the version number via https://github.com/gpu/JOCL/commit/2335da1b782f97c7e69765b730d7af630d6ffec2 (for you, there is actually no reason to re-compile the native lib - you could just rename it from 2.0.1
to 2.0.2
).
Sorry for the confusion here.
I've tried to build JOCL on Ubuntu 18.04.
What I have done so far:
mkdir /home/<user>/JOCLRoot mkdir /home/<user>/JOCLRoot/JOCLBuild
cd /home/<user>/JOCLRoot
git clone https://github.com/gpu/JOCL.git git clone https://github.com/gpu/JOCLCommon.git
cmake-gui
cmake to /home/<user>/JOCLRoot/JOCLBuild
cd /home/<user>/JOCLRoot/JOCLBuild
make
cd /home/<user>/JOCLRoot/JOCL
mvn clean install
And on "mvn clean install" there are errors:
If I check the logs in /home//JOCLRoot/JOCL/target/target/surefire-reports the following error occurs:
I think this is the important one:
java.lang.UnsatisfiedLinkError: no JOCL_2_0_2-linux-x86_64 in java.library.path: [/home/<user>/JOCLRoot/JOCL/nativeLibraries]
In "/home//JOCLRoot/JOCL/nativeLibraries" I can only find the file "libJOCL_2_0_1-linux-x86_64.so"
So there is somehow a conflict between 2_0_2 and 2_0_1.
How can I fix that?
Thanks in advance for the help!