Swig -java -package -outdir com/herumi/mcl -c++ -Wall mcl.iĬ++ mcl_wrap.cxx -o. If I use the MacOSX10.15.sdk path explicitly for JAVA_INC, compilation works with warnings, but tests java % make test_mcl JAVA_INC=-I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/amework/Versions/A/Headers not sure what I'm supposed to think about that). a newer version), which (at least for me) does not have the amework directory and does not contain any jni.h anywhere (I can offer a /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/amework/Versions/A/Headers/JNFJNI.h, but. However, /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk (which is a prefix of the path you use as your default JAVA_INC) doesn't point to /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk but to /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk (i.e. On my machine, the following file exists: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/amework/Versions/A/Headers/jni.h the jni_md.h file is under $(JAVA_INC)/darwin (whereas your current Makefile only includes $(JAVA_INC)/linux) Regarding your default JAVA_INC: This is because the directory layout of /Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/include include % ls -RĬlassfile_constants.h jdwpTransport.h jvmticmlr.h Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/include/jni.h:45:10: fatal error: In file included from elgamal_wrap.cxx:178: /lib/libmcl.a -L/usr/local/opt/openssl/lib -L/usr/local/opt/gmp/lib -m64 -shared /./cybozulib/include -Wno-strict-aliasing. /lib/libmclelgamaljava.dylib -I/usr/local/opt/openssl/include -I/usr/local/opt/gmp/include -g3 -Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith -Wundef -m64 -I include -I test -fomit-frame-pointer -DNDEBUG -fno-stack-protector -O3 -DMCL_USE_VINT -DMCL_DONT_USE_OPENSSL -fPIC -I/Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/include/linux -I. Swig -java -package -outdir com/herumi/mcl -c++ -Wall elgamal.iĬ++ elgamal_wrap.cxx -o. Java % make JAVA_INC=-I/Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/include
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |