Linux and cocos2d: 'cc1plus': execvp: no such file or directory

I try to create a cocos2d example application for android on linux and I get the following error:

stefanos@stefanos-MS-7250:~/cocos2d-1.0.1-x-0.11.0/Test1/android$ ./build_native.sh

    make: Entering directory `/home/stefanos/cocos2d-1.0.1-x-0.11.0/Test1/android'                                                                                                      
    Gdbserver      : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver                                                                                                               
    Gdbsetup       : libs/armeabi/gdb.setup                                                                                                                                             
    Compile++ thumb  : cocos2d <= CCConfiguration.cpp  

arm-linux-androideabi-g++: error trying to exec 'cc1plus': execvp: No such file or directory                                                                           

make: *** [obj/local/armeabi/objs-debug/cocos2d/CCConfiguration.o] Error 1                                                                                                          
make: Leaving directory `/home/stefanos/cocos2d-1.0.1-x-0.11.0/Test1/android'                                                                                                       
stefanos@stefanos-MS-7250:~/cocos2d-1.0.1-x-0.11.0/Test1/android$  

I am running Ubuntu and I have gcc, g ++ installed

SOLVE: It builds fine with the r6 version of ndk

Download it here: http://dl.google.com/android/ndk/android-ndk-r6-linux-x86.tar.bz2

+3
source share
1 answer

Try updating cocos2d-x version 2.0 , it was released today and uses NDK 8 . You must be out of date.

Using the latest version is better, 1.0 has a lot of bugs in Android. One of them is with a memory manager, it is very bad to release a game in a store.

+2
source

All Articles