Closed skypjack closed 9 years ago
looks like upstream gyp has started to make backwards incompatible changes to the android generator, they are moving to ninja for that. For the time being, I'll pin the version of gyp and look to upgrade to the ninja generator when I have time.
this commit will fix your issue, and I'll look at upgrading like I mentioned.
Unfortunately, the master still doesn't work (see the snippet below). I've walked throughout the commits on gyp and I'm not able to find any release that contains the option --root-target. I'm not sure about how I can help you, but I'm at your disposal.
ANDROID_BUILD_TOP=dirname deps/gyp/gyp --depth=. -f android -DOS=android --root-target libmx3_android -Icommon.gypi mx3.gyp
Usage: gyp_main.py [options ...] [build_file ...]
gyp_main.py: error: no such option: --root-target
Makefile:40: recipe for target 'GypAndroid.mk' failed
make: *** [GypAndroid.mk] Error 2
Anyway, I think it's not a matter of the version. It seems that the option is available on the master as well as on the hash you've linked. If you look at the file pylib/gyp/init.py, that parameter is there since October 2013. No backwards incompatible changes at all, it's something different and I'm trying to figure out what's wrong.
Ok, found. It simply relies on the gyp version installed in your system, if there is one. You can rollback the commit above, the master of gyp still contains the root-target option.
I solved (even though it's not really solved) patching the file gyp_main.py in deps/gyp as follows:
try:
import os.path
sys.path = [os.path.join(os.path.dirname(sys.argv[0]), 'pylib')] + sys.path
import gyp
except ImportError, e:
This way, the problem with gyp is no longer there. I'm not sure about how to proceed, it looks like a problem of gyp itself. I'll propose a patch for your repo, if I find the time to work on that during the day. Any suggestion is really appreciated!! I'm far from being a python expert...
Please, see pull request #62 for further details.
Hello, I'm trying to build the example for the android platform, but it fails with the error below:
It looks fine, indeed I have for ./deps/gyp/gyp -h as follows:
What does the root-target option stay for? Thank you in advance for your help.