Skip to content

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

@CaptainCrocus

Description

@CaptainCrocus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions