Mac Cocos2dx Android

Source: Internet
Author: User

1.

Localhost:proj.android mxhd4$./build_native.sh

Error

compile++ thumb:cocosdenshion_static <= SimpleAudioEngine.cpp/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocosdenshion/android/simpleaudioengine.cpp:in Constructor ' Cocosdenshion::simpleaudioengine::simpleaudioengine () ':/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocosdenshion/android/simpleaudioengine.cpp:159:2: Error:format not a string literal and no format arguments [-werror=f Ormat-security]cc1plus:some warnings being treated as errorsMake : * * * [OBJ/LOCAL/ARMEABI/OBJS-DEBUG/COCOSDENSHION_STATIC/SIMPLEAUDIOENGINE.O] Error 1
make:leaving directory '/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android '

Workaround: Vi/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocosdenshion/android/simpleaudioengine.cpp

line:159 Gaze

2.

Localhost:proj.android mxhd4$./build_native.sh

Error

compile++ thumb:cocosdenshion_static <= SimpleAudioEngine.cpp
compile++ thumb:cocosdenshion_static <= OpenSLEngine.cpp
/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocosdenshion/android/opensl/openslengine.cpp:in function ' bool Initaudioplayer (audioplayer*, char const*) ':
/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocosdenshion/android/opensl/openslengine.cpp:292:45:warning:extended initializer lists only available with-std=c+ +11 or-std=gnu++11 [enabled by default]
/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocosdenshion/android/opensl/openslengine.cpp:292:45:warning:extended initializer lists only available with-std=c+ +11 or-std=gnu++11 [enabled by default]
/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocosdenshion/android/opensl/openslengine.cpp:in member function ' void Openslengine::createengine (void*) ':
/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocosdenshion/android/opensl/openslengine.cpp:324:3: Error:format not a string literal and no format arguments [-werror =format-security]
cc1plus:some warnings being treated as errors
Make: * * * [OBJ/LOCAL/ARMEABI/OBJS-DEBUG/COCOSDENSHION_STATIC/OPENSL/OPENSLENGINE.O] Error 1
make:leaving directory '/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android '

Workaround: Vi/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocosdenshion/android/opensl/openslengine.cpp

line:324: Gaze

3.

Localhost:proj.android mxhd4$./build_native.sh

Error

compile++ thumb:cocosdenshion_static <= OpenSLEngine.cpp
/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocosdenshion/android/opensl/openslengine.cpp:in function ' bool Initaudioplayer (audioplayer*, char const*) ':
/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocosdenshion/android/opensl/openslengine.cpp:292:45:warning:extended initializer lists only available with-std=c+ +11 or-std=gnu++11 [enabled by default]
/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocosdenshion/android/opensl/openslengine.cpp:292:45:warning:extended initializer lists only available with-std=c+ +11 or-std=gnu++11 [enabled by default]
compile++ thumb:cocosdenshion_static <= SimpleAudioEngineOpenSL.cpp
/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocosdenshion/android/opensl/simpleaudioengineopensl.cpp:in member function ' bool Simpleaudioengineopensl:: Initengine () ':
/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocosdenshion/android/opensl/simpleaudioengineopensl.cpp:41:5: Error:format not a string literal and no format arguments [-werror=format-security]
Cc1plus:some warnings being treated as errors
Make: * * * [OBJ/LOCAL/ARMEABI/OBJS-DEBUG/COCOSDENSHION_STATIC/OPENSL/SIMPLEAUDIOENGINEOPENSL.O] Error 1

Workaround: Vi/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocosdenshion/android/opensl/simpleaudioengineopensl.cpp:

LINE:41: Gaze


4.

Localhost:proj.android mxhd4$./build_native.sh

compile++ thumb:cocos2dx_static <= CCCommon.cpp
/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocos2dx/platform/android/cccommon.cpp:in function ' void Cocos2d::cclog (char const*, ...) ':
/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocos2dx/platform/android/cccommon.cpp:44:72:error:format not a string literal and no format arguments [-werror=format -security]
Cc1plus:some warnings being treated as errors

Make: * * * [OBJ/LOCAL/ARMEABI/OBJS-DEBUG/COCOS2DX_STATIC/PLATFORM/ANDROID/CCCOMMON.O] Error 1

Workaround: Vi/users/mxhd4/movies/2.0.4/cocos2d-2.0-x-2.0.4/test_cocos2dx_mac/proj.android/. /.. /cocos2dx/platform/android/cccommon.cpp

LINE:44: Gaze


5.

Copy the Res icon.png to the project's corresponding folder.

Copy the cocos2dx/platform/android/java/org folder into the SRC corresponding folder of project projects

BuildPath Remove Android Dependency




Mac Cocos2dx Android

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.