Cocos Helper Compile error

  • Da_Shizzle
    Likes 0

    Problem Description

    First of all I wanted to thank you all, because I think you are doing a great job.
    But I have a problem creating a project with your Cocos Helper.

    Everything works fine when i creat a new Project in Eclipse.
    Then I followed the instructions from this video, to integrate the Cocos Helper Framework.
    But when I compile my project at the end i always get this error:
     

    *********************************************************************************************************

    In file included from jni/../../Classes/JNIResults.cpp:9:0:
    jni/../../Classes/JNIResults.h:19:29: fatal error: SonarFrameworks.h: No such file or directory
     #include "SonarFrameworks.h"
                                 ^
    compilation terminated.
    make: *** [obj/local/armeabi/objs-debug/cocos2djs_shared/__/__/Classes/JNIResults.o] Error 1
    make: *** Waiting for unfinished jobs.…
    make: Leaving directory `/Users/aum/Desktop/JAVASCRIPT/frameworks/runtime-src/proj.android'
    Ndk build failed!

    *********************************************************************************************************

    I have absolutely no clue what this could mean.
    I know that there is a file called “SonarFrameworks.h” in the Cocos Helper folder, but in the video this file is not moved to the project.

    I use:
    Cocos-js-v3.5
    ANT: 1.9.6
    NDK: r9d
    ADT: adt-bundle-mac-x86_64-20140702
     

    I would really appreciate your help.

    Greetings

    Andreas

     

    PS: I work with OS X. Could that be a problem?

  • Sonar Systems admin
    Likes 0

    What version of the helper are you using.

  • Da_Shizzle
    Likes 0

    I am using Cocos Helper v1.46.00.

  • jungleCAT
    Likes 0

    Hello, 

     

    I have the same error when compiling the Android project. 

    I used: 

    Cocos Helper v1.46.00.

    Cocos2d-x-3.8.1 with JSB

    apache-ant-1.8.2

    android-ndk-r10c

    jdk1.7.0_71

    platform android-15 API Level: 15

    I set up the project in this tutorial – https://www.youtube.com/watch?v=_zKYyUF1SMk&index=5&list=PLRtjMdoYXLf52GOcPoDZigFgvZnQyWm_L 

    Project - default by “cocos new projectName -l js”, I used “cocos compile -p android” to compile. 

    I would be very happy if someone will tell me what I'm doing wrong. 

    In any case, thank you so much SonarLearning . You made a cool product!

    Cheers!

     

     

     

     

  • Sonar Systems admin
    Likes 0

    Does a fresh project work without the Cocos Helper?

  • Da_Shizzle
    Likes 0

    Yes.

    The project is already quite finished, then i wanted to add the Cocos Helper to it.

    But it does not work.

  • Sonar Systems admin
    Likes 0

    Try adding the Helper to a fresh project and see if that works.

  • jungleCAT
    Likes 0

    Yes, a new project (cocos new projectName -l js) works(and compiles without error) without the Cocos Helper.  But if I add the Cocos Helper - all breaks. Maybe the Cocos Helper is not compatible with the version 3.8.1 Cocos2d-JS? Which version of the Cocos2d-JS you used in the tutorial?

    Thanks for your help anyway!

  • jungleCAT
    Likes 0

    The error is repeated on  Mac OS X and on  WindowsX. With ndk-r10c and ndk-r10e. 

  • jungleCAT
    Likes 0

    Hello,

     

    maybe it will help someone, I was able to run this configuration: 

    I used Cocos Helper v1.3.0 + Cocos2d-js v3.6.1 and everything works fine. 

    Also, when I used the GooglePlayServices I got a lot of mistakes in Eclipse. Google updated PlayServices and the framework is not adapted to these changes. Examples of Google's new PlayServices – GitHubLink. I have used these examples to update GooglePlayServicesGameHelper.java 

    And it seems that now everything works fine. 

     

    Cheers!


Login to reply