SonarSystems / Cocos-Helper

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

Cocos v3.10 compilations fails: SonarFrameworks.h: No such file or directory #46

Closed saiy2k closed 8 years ago

saiy2k commented 8 years ago

Was getting this error with Cocos2dx 3.8 and Cocos Helper v1.48.00 in my Mac!

Then upgraded to Cocos2dx 3.10 and getting the same error. Tried fixing one error and the other error shows up.

After all this steps, the Project compiled successfully. But on app launch, it shows Unfortunately, App has stopped.

Please help.

aleksmutlu commented 8 years ago

Same error here... I am using cocos2dx 3.10 version, and CocosHelper 1.48 on Mac. I can setup and use CocosHelper for iOS perfectly, but no chance for android version. I repeated the video tutorial 3 times. Always the same error.

OscarLeif commented 8 years ago

@saiy2k Are you using the version of cocos2d-x C++ or JS?

OscarLeif commented 8 years ago

I no have a lot of experience using cocos2d-js but I was able to compile a hello world project using cocos helper. The only thing that it wasn't in the video was this. Change this System.loadLibrary("cocos2dcpp"); with this System.loadLibrary("cocos2djs");

Oh don't forget to add "SonarFrameworks.h" "SonarFrameworks.cpp"

Also add this files to Android.mk file.

I only test the install of the cocos helper plugin I didn't use any external framework If anyone know a good IDE for cocos2d-js please tell I don't like to use the console a lot :P

aleksmutlu commented 8 years ago

Thanks for your respond @OscarLeif :) I am using the JS version.. System.loadLibrary("cocos2djs"); I am gonna try this and let you know tomorrow :)

saiy2k commented 8 years ago

@OscarLeif Thanks. It's working with the Library change :-) Terminal / VIM 4 Life :+1:

OscarLeif commented 8 years ago

@SonarSystems The problem is solved maybe it will be a good idea to put this in the youtube video

aleksmutlu commented 8 years ago

Yeap worked for me too.. :) thanks @OscarLeif !

OscarLeif commented 8 years ago

That's good to hear I think I will put a new variable or manifest filer to improve that :smile:

elifares commented 8 years ago

@OscarLeif @aleksmutlu @saiy2k Where do you change this System.loadLibrary("cocos2dcpp"); with this System.loadLibrary("cocos2djs");

In which file? Thanks

saiy2k commented 8 years ago

@efares In the file @ frameworks/runtime-src/proj.android/src/sonar/systems/framework/SonarFrameworkActivity.java

Check the last few lines.

elifares commented 8 years ago

Thanks @saiy2k I found it and changed it, it compiles successfully but ran into another problem now. When I open my app on my Android phone it loads the blue debug screen that says "waiting for file transfer..." with the cocos play button on the right. When I click the play button it just zooms in instead of running my game.

Video of the problem I am having now: Video

SOVLED: My issue was that I had "src/SonarFrameworks" in the jsList instead of "src/SonarFrameworks.js" (missing the .js at the end)