diff --git a/.gitignore b/.gitignore index e122d2b1ae61586a76dd33368cb9e96294019f72..bbabb89d71543e2245564e8910cc79158338ca5f 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ *.dSYM *.dll *.jnilib +m4/ # Mobile Tools for Java (J2ME) .mtj.tmp/ diff --git a/Makefile.am b/Makefile.am index a2da8af23fcbeee0b9027991245345e5ddbdcc37..6f94b38d4a6f01e9fb8faba3d9c9073d18645bdc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -ACLOCAL_AMFLAGS="-I m4" +#ACLOCAL_AMFLAGS="-I m4" AUTOMAKE_OPTIONS = foreign EXTRA_DIST = include src/cpp/CLHelper.h src/cpp/classtools.h src/cpp/invoke/JavaArgs.h src/cpp/invoke/OpenCLMem.h src/cpp/invoke/OpenCLKernel.h src/cpp/invoke/OpenCLJNI.h src/cpp/invoke/OpenCLArgDescriptor.h src/cpp/invoke/OpenCLProgram.h src/cpp/CLException.h src/cpp/JNIHelper.h src/cpp/Common.h src/cpp/runKernel/KernelArg.h src/cpp/runKernel/Range.h src/cpp/runKernel/ProfileInfo.h src/cpp/runKernel/AparapiBuffer.h src/cpp/runKernel/Config.h src/cpp/runKernel/Aparapi.h src/cpp/runKernel/ArrayBuffer.h src/cpp/runKernel/JNIContext.h src/cpp/runKernel/List.h lib_LTLIBRARIES = libaparapi.la diff --git a/README.md b/README.md index c376eb494f7c60b11d9410ccedd9b455b8a3069d..94b01ac3b0579ca202f7a0d7e7b7d239d9d73f8a 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,12 @@ Alternatively you can do the linux compile via a Docker container by issuing the UID=${UID} GID=${GID} docker-compose up ``` +Sometimes you need to add additional include directories to specify the location of the java JNI headers for your jdk. To do this add the following to your call of the configure script: + +``` +./configure CXXFLAGS="-I//Library/Java/JavaVirtualMachines/jdk1.8.0_212.jdk/Contents/Home/include/ -I/Library/Java/JavaVirtualMachines/jdk1.8.0_212.jdk/Contents/Home/include/darwin" +``` + Shared library in `.libs/libaparapi.dynlib` for osx and `.libs/libaparapi.so` for linux. To prepare a 32bit version on a 64bit Linux system simply run configure as: