SonarSystems / Cocos-Helper

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

SonarCocosHelper/SonarFrameworks.h: No such file or directory #16

Closed pepeek closed 9 years ago

pepeek commented 9 years ago

I'm using cocos2d-js 3.7 and followed your tutorial at: http://www.sonarlearning.co.uk/coursepage.php?topic=game&course=sonar-cocos-helper-js&videoindex=6489#6489

Compilation gives me this error:

In file included from jni/../../Classes/JNIResults.cpp:9:0:
jni/../../Classes/JNIResults.h:19:46: fatal error: SonarCocosHelper/SonarFrameworks.h: No such file or directory
 #include "SonarCocosHelper/SonarFrameworks.h"

This file sure do include the SonarFrameworks.h which is never referenced in your video.

Please help!

SonarSystems commented 9 years ago

It should be ok, have you watched the entire video?

pepeek commented 9 years ago

I believe i did. No hint about my problem. What do you mean by "should be ok" ? It is a compilation error. Do you have a hint?

pepeek commented 9 years ago

Please, do you have any hint on this? I'm still having the difficulty with the basic setup of CocosHelper on cocos2d-js 3.7 using the cocos command line compilation (no IDE used).

SonarSystems commented 9 years ago

Try using the the IDE used in the video and let us know how that goes, using an IDE will be needed for other stuff like ads, social etc as you need to link libraries/frameworks inside the IDE.

ahmad-raza commented 9 years ago

Change this line: #include "SonarCocosHelper/SonarFrameworks.h" to #include "SonarFrameworks.h" in JNIResults file & It will work fine.

I faced this issue, applied some tricks and fixed it by updating that line.