jzmq
jzmq copied to clipboard
Excluding JDK files when compiling for Android
Now to compile for Android I have to use this patch for excluding JDK files when compiling for Android
diff -Naur jzmq-old/configure.in jzmq-new/configure.in
--- jzmq-old/configure.in 2015-05-31 11:53:03.842933600 +0200
+++ jzmq-new/configure.in 2015-06-02 06:22:17.567287400 +0200
@@ -107,10 +107,10 @@
AC_SUBST(JAVAROOT)
# Checks for libraries.
-AX_JNI_INCLUDE_DIR
-for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS; do
- CPPFLAGS="$CPPFLAGS -I$JNI_INCLUDE_DIR"
-done
+#AX_JNI_INCLUDE_DIR
+#for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS; do
+# CPPFLAGS="$CPPFLAGS -I$JNI_INCLUDE_DIR"
+#done
AC_SUBST(CPPFLAGS)
# Checks for typedefs, structures, and compiler characteristics.
Otherwise, I get this error
In file included from org_zeromq_ZMQ.h:2:0,
from ZMQ.cpp:23:
<path to JDK>/include/jni.h:45:20: fatal error: jni_md.h: No such file or directory
#include "jni_md.h"
^
compilation terminated.
I use CrystaX NDK, Improved Android NDK. Please add support of Android NDK (CrystaX NDK) Standalone Toolchain.