jni/../../Classes/EyeCandyLayer.cpp:146:24: error: aggregate 'b2ParticleGroupDef pd' has incomplete type and cannot be defined b2ParticleGroupDef pd; #18
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!
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