play-co / devkit

HTML 5 game platform for browser and mobile
http://docs.gameclosure.com
624 stars 126 forks source link

can't build game for native-android #235

Open mat29x opened 9 years ago

mat29x commented 9 years ago

My setup is a Virtual Machine (Virtualbox) running Ubuntu 12.04.

I have successfully updated devkit to v3.0.0-rc1 (with devkit-core module to v3.0.0-rc1 also)

My problem now is that I cannot build my game and I really need to build it with the updated devkit to resolve issue #228 (as suggested there)

this is how my terminal log looks like:

mat@Mat7x:~/Documents/wt-calamityrun$ devkit debug native-android [build] starting build at Thu Jun 18 2015 04:39:13 GMT+0800 (PHT) [apps] /home/mat/Documents/wt-calamityrun/manifest.json [devkit]
[build] Prebuild phase completed for Calamity Run build for: native-android scheme: debug [devkit]
--- start config --- appPath: /home/mat/Documents/wt-calamityrun debug: true scheme: debug target: native-android imports: imports: native-android schemePath: build/debug outputPath: /home/mat/Documents/wt-calamityrun/build/debug/native-android jsioPath: jsioPath: /home/mat/Documents/wt-calamityrun/build/debug/native-android clientPaths: clientPaths: /home/mat/Documents/wt-calamityrun/build/debug/native-android sdkVersion: 3.0.0-rc1 isTestApp: undefined isSimulated: undefined simulator: deviceId: undefined deviceType: undefined deviceInfo: {} port: undefined modules: [] modules: [] spriteImages: true ip: 10.0.2.15 localServerURL: 10.0.2.15:9200 serverName: local outputResourcePath: /home/mat/Documents/wt-calamityrun/build/debug/native-android/assets/resources studio: studio.wetalkdirect.com version: debug compress: false appID: a36dd79473ea4dac97b1a48ed892466d localBuildPath: build/debug/native-android bundleID: com.wetalkdirect.studio.calamityrun packageName: com.wetalkdirect.studio.calamityrun isAndroid: true repack: false enableLogging: false resourcesOnly: false --- end config --- [native-resources] Writing resources for a36dd79473ea4dac97b1a48ed892466d with target native-android [jsio-compile] compiling import devkit.native.launchClient jsio_compile "import devkit.native.launchClient" --cwd "/home/mat/Documents/wt-calamityrun" --environment "native" --path "[\"/home/mat/Documents/wt-calamityrun/modules/devkit-core/node_modules/jsio/packages\",\".\",\"lib\",\"modules/devkit-core/src/clientapi/api\",\"modules/devkit-core/modules/timestep/src\"]" --includeJsio "true" --appendImport "false" --debug "4" --pathCache "{\"amplitude\":\"modules/devkit-amplitude/js\",\"devkit\":\"modules/devkit-core/src/clientapi\",\"effects\":\"modules/devkit-effects/src\",\"menus\":\"modules/devkit-menus/src\",\"squill\":\"modules/devkit-core/modules/squill\"}" --compressorCachePath "build/debug/.js-cache-native-android" --defines "{\"BUILD_TARGET\":\"native-android\",\"BUILD_ENV\":\"native\",\"DEBUG\":true}" --printOutput --gcManifest "/home/mat/Documents/wt-calamityrun/manifest.json" --gcDebug "true" --preprocessors "[\"cls\",\"logger\"]" [spriter] spriter --no-clean --cache-file "spritercache-c387824bb36c00cb30e1e3aa6002c797" --scale "1" --dir "/home/mat/Documents/wt-calamityrun/modules/devkit-effects/images/" --output "/home/mat/Documents/wt-calamityrun/build/debug/native-android/assets/resources/spritesheets" --target "native-android" --binaries "undefined" --is-simulator "undefined" --spriter-png-fallback "false" LOG .imports Including native runtime. [jvmtools] connected to localhost:55854 [spriter] spriter --no-clean --cache-file "spritercache-5a29b6770ff4f93203455bd529c809d2" --scale "1" --dir "/home/mat/Documents/wt-calamityrun/resources/" --output "/home/mat/Documents/wt-calamityrun/build/debug/native-android/assets/resources/spritesheets" --target "native-android" --binaries "undefined" --is-simulator "undefined" --spriter-png-fallback "false" [native-resources] writing files to /home/mat/Documents/wt-calamityrun/build/debug/native-android/assets/resources [ndk-build] ndk-build -j 8 DEBUG=1 [android] android create project --target android-19 --name calamityrun --path /home/mat/Documents/wt-calamityrun/build/debug/native-android --activity calamityrunActivity --package com.wetalkdirect.studio.calamityrun [ndk-build] Android NDK: WARNING:jni/Android.mk:zip: LOCAL_LDLIBS is always ignored for static libraries
Android NDK: WARNING:jni/Android.mk:zip: LOCAL_LDLIBS is always ignored for static libraries
[armeabi] Compile++ thumb: tealeaf <= js.cpp [armeabi] Compile++ thumb: tealeaf <= js_animate.cpp

               make: *** [obj/local/armeabi/objs-debug/tealeaf/js/js.o] Error 127
               make: *** Waiting for unfinished jobs....
               make: *** [obj/local/armeabi/objs-debug/tealeaf/js/js_animate.o] Error 127
    [build]    2 
              build failed
oodavid commented 9 years ago

See this comment, might be useful:

https://github.com/gameclosure/devkit/issues/236#issuecomment-118989089