build_native.py fails with error: Build dynamic library for project .. fails
Asked Answered
T

0

6

I have already installed cocos2d-x 3.0 and try to build an android version but when I run ./build_native.py, it was failed with error

File "./build_native.py", line 89, in do_build
raise Exception("Build dynamic library for project [ " + app_android_root + " ] fails!")
Exception: Build dynamic library for project [ /Users/hoangha/Desktop/Enigma/cocos2d-x-3.0/projects/2048-enhanced-version/source/proj.android ] fails!

I have read the line 89 in the build_native.py

if os.system(command) != 0:
    raise Exception("Build dynamic library for project [ " + app_android_root + " ] fails!")

But I don't understand command os.system(command) in python, so can anybody help me to fix this error.

Threnody answered 28/1, 2015 at 6:41 Comment(5)
There's nothing to go on here, we need more info. The exception message alone is too generic. PS: a common source of problems is having the project in a path that has a space somewhere, the cocos2dx tools can't handle spaces in paths/filenames.Pontoon
I am getting the same issue. This is the statement it throws before building the stack trace Please input the absolute/relative path of ".keystore" file: I am building the cocos2d-x generated project in Win 8.1 in Eclipse LunaWinston
I am getting the same error. has anyone fixed this already?Uveitis
os.system(comand) runs whatever is in the command variable in your system's command line. Can you get the value of this variable?Barrack
Have you added the paths of your scenes to the Android.mk file in the jnk subfolder in proj.android folderLoriannlorianna

© 2022 - 2024 — McMap. All rights reserved.