It is strange that the error is reported in cocosbuilder/CCBMemberVariableAssigner.h .
Since that code has no issue if compiled for iOS or MAC?
EDIT: Ok. I seems to solved it with #include "cocos2d.h"
prior to #include "cocosbuilder/CCBSelectorResolver.h #include "cocosbuilder/CCBMemberVariableAssigner.h"
Now the project compiles. I opened the project in Android Studio and started Genymotion Android emulaor. But it reports âUnortunatelly, libcocos2dx has stopped.â in Genymotion Android emulator. Any advice, please?
04-13 16:51:46.647 32222-32255/com.dal.testproject D/cocos2d-x debug info: cocos2d: fullPathForFilename: No file found at ccbParticleStars.png. Possible missing file.
04-13 16:51:46.647 32222-32255/com.dal.testproject A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x2c in tid 32255 (GLThread 304059)
âfullPathForFilename: No file found at ccbParticleStars.png. Possible missing file.â
But the file is there in Resources/ccbResources folder.
ccbParticleStars.png file si used from Cocos Builder generated designed user interface CCBI file.
It works on iOS and Mac OS, but on Android it reports missing file. What could be wrong and how to solve it, please?
EDIT: Got it running by adding search path âccbResourcesâ folder in AppDelegate.
I use SimpleAudioEngine::playEffect to play effects with pitch specified (It works on iOS and Mac OS). But i seems it does not change a pitch on Android? What could be the
issue?
SimpleAudioEngine::playEffect: (NSString *) filePath
loop: (BOOL) loop
pitch: (Float32) pitch
pan: (Float32) pan
gain: (Float32) gain