libmx3 / mx3

a sample project showcasing/collecting cross platform techniques on mobile
MIT License
1.18k stars 146 forks source link

Android make fails: gyp_main.py, line 18 #60

Closed wesselj1 closed 9 years ago

wesselj1 commented 9 years ago

Trying to build the Android example and it is failing in some python files. Here is my console output:

Joeys-MacBook-Pro:mx3 joeywessel$ make android
./deps/gradle/gradlew djinni
:djinniBuild UP-TO-DATE
:djinniGen UP-TO-DATE
:djinniOutSyncCpp UP-TO-DATE
:djinniOutSyncJava UP-TO-DATE
:djinniOutSyncJni UP-TO-DATE
:djinniOutSyncObjc UP-TO-DATE
:djinniOutSync UP-TO-DATE
:djinni UP-TO-DATE

BUILD SUCCESSFUL

Total time: 3.208 secs
ANDROID_BUILD_TOP=dirname  deps/gyp/gyp --depth=. -f android -DOS=android --root-target libmx3_android -Icommon.gypi mx3.gyp
Traceback (most recent call last):
  File "deps/gyp/gyp_main.py", line 18, in <module>
    sys.exit(gyp.script_main())
  File "deps/gyp/pylib/gyp/__init__.py", line 533, in script_main
    return main(sys.argv[1:])
  File "deps/gyp/pylib/gyp/__init__.py", line 526, in main
    return gyp_main(args)
  File "deps/gyp/pylib/gyp/__init__.py", line 502, in gyp_main
    params, options.check, options.circular_check)
  File "deps/gyp/pylib/gyp/__init__.py", line 91, in Load
    generator = __import__(generator_name, globals(), locals(), generator_name)
ImportError: No module named android
make: *** [GypAndroid.mk] Error 1
skabbes commented 9 years ago

Thanks for the report!

eek, looks like Chromium has removed support for the Android generator out of the box. They have since migrated to ninja for that. I'll pin our gyp version to the previous one, and look to change it over the ninja generator when I have time.

skabbes commented 9 years ago

I believe this commit should fix your issue

wesselj1 commented 9 years ago

Thanks @skabbes. That seemed to fix it. Now I just got some NDK issues independent of this project to to solve.

skabbes commented 9 years ago

@wesselj1 oooh NDK issues, my favorite </sarcasm>. Good luck!