@dontangg wrote:
I have completed a game that I've developed in c++ using XCode. It runs fine on Mac and iOS devices and I wanted to get it going on Android. When I run the cocos compile command, it's giving me an incomplete type error saying that
LayerGradient
is an incomplete type. I'm using cocos2d-x 3.10. Has anyone run into this before?Here is the command I'm running along with the output:
> ANDROID_SDK_ROOT=/usr/local/opt/android-sdk NDK_ROOT=/usr/local/opt/android-ndk cocos compile -p android --android-studio Building mode: debug Using Android Studio project : /Users/don/Code/StuntCopter/proj.android-studio Android platform not specified, searching a default one... running: '/usr/local/opt/android-sdk/tools/android update project -t android-22 -p /Users/don/Code/StuntCopter/proj.android-studio/app' Updated project.properties Updated local.properties Updated file /Users/don/Code/StuntCopter/proj.android-studio/app/proguard-project.txt Building native... NDK build mode: debug NDK_TOOLCHAIN_VERSION: 4.9 running: '/usr/local/opt/android-ndk/ndk-build -C /Users/don/Code/StuntCopter/proj.android-studio/app -j8 NDK_MODULE_PATH=/Users/don/Code/StuntCopter/proj.android-studio/../cocos2d:/Users/don/Code/StuntCopter/proj.android-studio/../cocos2d/cocos:/Users/don/Code/StuntCopter/proj.android-studio/../cocos2d/external NDK_TOOLCHAIN_VERSION=4.9 NDK_DEBUG=1' make: Entering directory `/Users/don/Code/StuntCopter/proj.android-studio/app' [armeabi] Compile++ thumb: cocos2dcpp_shared <= AppDelegate.cpp [armeabi] Compile++ thumb: cocos2dcpp_shared <= MainScene.cpp [armeabi] StaticLibrary : libcocos2d.a [armeabi] Compile++ thumb: cocostudio_static <= CCDataReaderHelper.cpp [armeabi] Compile++ thumb: cocostudio_static <= CCComRender.cpp [armeabi] Compile++ thumb: cocostudio_static <= CCSGUIReader.cpp [armeabi] Compile++ thumb: cocostudio_static <= CCSSceneReader.cpp [armeabi] Compile++ thumb: cocostudio_static <= TriggerBase.cpp [armeabi] Compile++ thumb: cocostudio_static <= TriggerMng.cpp In file included from jni/../../../Classes/MainScene.cpp:2:0: jni/../../../Classes/MainScene.h:14:35: error: invalid use of incomplete type 'class cocos2d::LayerGradient' class MainScene : public cocos2d::LayerGradient ^
Posts: 1
Participants: 1