Cocos2d-x build error?

Sysprogs forums Forums VisualGDB Cocos2d-x build error?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8818
    fredhwang
    Participant

    Hello.

    I am testing the Test Project for Android with Visual Studio 2013 and Cocos2d-x 3.2 and Visual GDB 5.1.

    But, When I was building the Test Project, I encountered this build error – below~!

    I don’t know this problem at all.

    Could you give me a help, Please??

    ——————————————————

    4>—— 빌드 시작: 프로젝트: AndroidProject1, 구성: Debug (Android) Win32 ——
    4>VisualGDB : warning : C:\android\frameworks\com.sysprogs.cocos2d-x-v3.2\cocos\platform\android\java is located on a different drive letter than your project. Android tools will not be able to build it.
    4> VisualGDB: Run “C:\android\android-ndk-r10b\ndk-build.cmd NDK_DEBUG=1 APP_PLATFORM=android-19 VGDB_VSCONFIG=Debug__Android_ NDK_MODULE_PATH=C:/android/frameworks/com.sysprogs.cocos2d-x-v3.2;C:/android/frameworks/com.sysprogs.cocos2d-x-v3.2/external;C:/android/frameworks/com.sysprogs.cocos2d-x-v3.2/cocos” in directory “D:\game\AndroidProject1\AndroidProject1” on local computer
    4>Android NDK : warning : APP_PLATFORM android-19 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
    4>Android NDK : warning : Ignoring unknown import directory: jni/../../cocos2d
    4>Android NDK : warning : Ignoring unknown import directory: jni/../../cocos2d/external
    4>Android NDK : warning : Ignoring unknown import directory: jni/../../cocos2d/cocos
    4>Android NDK : warning : C:/android/frameworks/com.sysprogs.cocos2d-x-v3.2/cocos/./Android.mk:cocos2dx_static: LOCAL_LDLIBS is always ignored for static libraries
    4>Android NDK : warning : C:/android/frameworks/com.sysprogs.cocos2d-x-v3.2/cocos/platform/android/Android.mk:cocos2dxandroid_static: LOCAL_LDLIBS is always ignored for static libraries
    4> [armeabi] Gdbserver : [arm-linux-androideabi-4.8] libs/armeabi/gdbserver
    4> [armeabi] Gdbsetup : libs/armeabi/gdb.setup
    4> [armeabi] Install : libcocos2dcpp.so => libs/armeabi/libcocos2dcpp.so
    4> VisualGDB: Run “C:\android\ant-1.9.7\bin\ant.bat debug” in directory “D:\game\AndroidProject1\AndroidProject1” on local computer
    4> Buildfile: D:\game\AndroidProject1\AndroidProject1\build.xml
    4>
    4> -set-mode-check:
    4>
    4> -set-debug-files:
    4>
    4> -check-env:
    4> [checkenv] Android SDK Tools Revision 25.2.1
    4> [checkenv] Installed at C:\android\android-sdk-r24.4.1
    4>
    4> -setup:
    4> [echo] Project Name: AppActivity
    4> [gettype] Project Type: Application
    4>
    4> -set-debug-mode:
    4>
    4> -debug-obfuscation-check:
    4>
    4> -pre-build:
    4>
    4> -build-setup:
    4> [getbuildtools] Using latest Build Tools: 24.0.1
    4> [echo] Resolving Build Target for AppActivity…
    4> [gettarget] Project Target: Android 4.2.2
    4> [gettarget] API level: 17
    4> [echo] ———-
    4> [echo] Creating output directories if needed…
    4> [echo] ———-
    4> [echo] Resolving Dependencies for AppActivity…
    4>
    4> BUILD FAILED
    4> C:\android\android-sdk-r24.4.1\tools\ant\build.xml:573: Failed to resolve library path: C:/android/frameworks/com.sysprogs.cocos2d-x-v3.2/cocos/platform/android/java
    4>
    4> Total time: 1 second
    4> ————————————————————-
    4> Command exited with code 1
    4> Executable: C:\android\ant-1.9.7\bin\ant.bat
    4> Arguments: debug
    4> Directory: D:\game\AndroidProject1\AndroidProject1
    4>VisualGDB : error : Command-line action failed
    4>EXEC : error : Build has failed. See the Output window for more details.

    4>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: “”C:\Program Files\Sysprogs\VisualGDB\\VisualGDB.exe” /build “D:\game\AndroidProject1\AndroidProject1\AndroidProject1.vcxproj” “/solution:D:\game\AndroidProject1\AndroidProject1.sln” “/config:Debug (Android)” “/platform:Win32″” 명령이 종료되었습니다(코드: 1).
    ========== 빌드: 성공 0, 실패 1, 최신 0, 생략 3 ==========

    • This topic was modified 8 years, 3 months ago by fredhwang.
    • This topic was modified 8 years, 3 months ago by fredhwang.
    #8825
    support
    Keymaster

    Hi,

    Looks like your cocos package was not downloaded properly. Please try removing and reinstalling it.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.