Quantcast
Channel: cocos2d-x - Cocos Forums
Viewing all articles
Browse latest Browse all 2748

Install problems, initial test build exits with errors

$
0
0

@drux wrote:

Hello,

So I am following this tutorial: http://cocos2d-x.org/docs/installation/B/#os-x-linux-instructions. I am not sure if I understand something incorrectly but there is one step in there that are not understandable for me.

It says : run setup.py (says nowhere which directory is this located in...) I skipped it.

Then, few lines after says: in your Cocos2d-x directory run: python setup.py so I did that. I have set up my paths and then when I ran the test: python android-build.py -p cpp-tests there is an error.

I notice everyone asks here, didi you run setup.py... and my question is, which setup.py? I ran the one in Cocos2d-x directory, that worked fine I guess. Is there any other setup.py?

Also, as I was getting the following error: /Users/user/android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin cannot be found.
I created an entry in bash_profile NDK_TOOLCHAIN=/...location of this file and that messed it up of course, error was that I am not using the correct toolchain. So OK, I figured I should have not used this name, so I enter the following in bash_profile:

NDK_PATH=/Users/user/android-ndk/toolchains/arm-linux-androideabi-4.9
export NDK_TOOLCHAIN=arm-linux-androideabi-4.9
export PATH=$NDK_ROOT:$NDK_PATH:$PATH

Now, after that I tried running the tests and it seemed like it is working fine, tests were running for a while but in the end I still got the error:

make: *** [obj/local/armeabi/libcpp_tests.so] Error 1
Error running command, return code: 2.
Build dynamic library for project [ /Users/dvorkapic/cocos2d-x-3.10/build/../tests/cpp-tests ] fails!

So now I am pretty much out of ideas. Any help would be appreciated.

EDIT 1

There is also this error being shown, did not c/p it before:

Users/user/cocos2d-x-3.10/tests/cpp-tests/proj.android/../../../external/websockets/prebuilt/android/armeabi/libwebsockets.a(context.c.o):context.c:function libwebsocket_create_context: error: undefined reference to 'getdtablesize'

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 2748

Latest Images

Trending Articles



Latest Images