SonarSystems / Cocos-Helper

Cocos2d-x external framework helper.
MIT License
120 stars 48 forks source link

Doesn't comile on Linux. Fatal error: jni.h #58

Open CaptainCrocus opened 6 years ago

CaptainCrocus commented 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

The jni.h must not be included for Linux compilation