Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jni/../../Classes/EyeCandyLayer.cpp:146:24: error: aggregate 'b2ParticleGroupDef pd' has incomplete type and cannot be defined b2ParticleGroupDef pd; #18

Open
pstegegn opened this issue Jun 9, 2014 · 0 comments

Comments

@pstegegn
Copy link

pstegegn commented Jun 9, 2014

I tried to import EyeCandyLayer sample for android with Cocos2d-x V 3.1 and got only the above issue. When I even comment the Particles out all the above issue will be gone. The full trace is shown below

jni/../../Classes/EyeCandyLayer.cpp:146:24: error: aggregate 'b2ParticleGroupDef pd' has incomplete type and cannot be defined
b2ParticleGroupDef pd;
^
jni/../../Classes/EyeCandyLayer.cpp: In member function 'void EyeCandyLayer::initPhysics()':
jni/../../Classes/EyeCandyLayer.cpp:146:24: error: aggregate 'b2ParticleGroupDef pd' has incomplete type and cannot be defined
b2ParticleGroupDef pd;
^
make: * [obj/local/x86/objs/cocos2dcpp_shared//**/Classes/EyeCandyLayer.o] Error 1
make: * Waiting for unfinished jobs....
make: * [obj/local/armeabi/objs/cocos2dcpp_shared//
/Classes/EyeCandyLayer.o] Error 1
make: Leaving directory `/home/paulos/workspace/GameTest/proj.android'
Traceback (most recent call last):
The Selected NDK toolchain version was 4.8 !
File "/home/paulos/workspace/GameTest/proj.android/build_native.py", line 166, in
build(opts.ndk_build_param,opts.android_platform,opts.build_mode)
File "/home/paulos/workspace/GameTest/proj.android/build_native.py", line 153, in build
do_build(cocos_root, ndk_root, app_android_root,ndk_build_param,sdk_root,android_platform,build_mode)
File "/home/paulos/workspace/GameTest/proj.android/build_native.py", line 89, in do_build
raise Exception("Build dynamic library for project [ " + app_android_root + " ] fails!")
Exception: Build dynamic library for project [ /home/paulos/workspace/GameTest/proj.android ] fails!

Thanks

@pstegegn pstegegn changed the title jni/../../Classes/EyeCandyLayer.cpp:146:24: error: aggregate 'b2ParticleGroupDef pd' has incomplete type and cannot be defined b2ParticleGroupDef pd; jni/../../Classes/EyeCandyLayer.cpp:146:24: error: aggregate 'b2ParticleGroupDef pd' has incomplete type and cannot be defined b2ParticleGroupDef pd; Jun 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant