Open CaptainCrocus opened 6 years ago
Comiling from command line on Linux platform
cocos compile -p linux -m debug
In file included from JNIResults.cpp: 9:0: JNIResults.h:15:17: fatal error: jni.h: No such file or directory
This very strange, because there is #if in JNIResults.h file
#if(CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) #include <jni.h> #include "platform/android/jni/JniHelper.h" #include <android/log.h> #include "cocos2d.h" #include "SonarFrameworks.h" #endif
#if(CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
#include <jni.h>
#include "platform/android/jni/JniHelper.h"
#include <android/log.h>
#include "cocos2d.h"
#include "SonarFrameworks.h"
#endif
The jni.h must not be included for Linux compilation
Comiling from command line on Linux platform
cocos compile -p linux -m debug
In file included from JNIResults.cpp: 9:0: JNIResults.h:15:17: fatal error: jni.h: No such file or directory
This very strange, because there is #if in JNIResults.h file
#if(CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
#include <jni.h>
#include "platform/android/jni/JniHelper.h"
#include <android/log.h>
#include "cocos2d.h"
#include "SonarFrameworks.h"
#endif
The jni.h must not be included for Linux compilation