Skip to content

Instantly share code, notes, and snippets.

@Sophrinix
Created March 28, 2015 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sophrinix/40c8bb9ff14c4429615d to your computer and use it in GitHub Desktop.
Save Sophrinix/40c8bb9ff14c4429615d to your computer and use it in GitHub Desktop.
hyperloop-android wtf
➜ hyperloop-android git:(master) ../hyperloop-cli/bin/hyperloop clean compile package launch --src=examples/touches --platform=android
[INFO] Cleaned build
[INFO] Generating library
[INFO] Generating system metabase will take up to a minute (or greater) depending on your environment.This file will be cached and will execute faster on subsequent builds.
◠ Generating system metabase
[INFO] reset compiler cache because options have changed. forcing a rebuild
[INFO] Generating class: com.test.app.AppActivity
[INFO] Generating class: android.view.View
[INFO] Generating instance method: getLayoutParams
[INFO] Generating instance method: getHeight
[INFO] Generating instance method: getWidth
[INFO] Generating instance method: setLayoutParams
[INFO] Generating instance method: setBackgroundColor
[INFO] Generating instance method: setOnTouchListener
[INFO] Generating class: android.view.ViewGroup$LayoutParams
[INFO] Generating class: android.view.MotionEvent
[INFO] Generating instance method: getAction
[INFO] Generating instance method: getRawY
[INFO] Generating instance method: getRawX
[INFO] Generating getter: ACTION_MOVE
[INFO] Generating getter: ACTION_UP
[INFO] Generating class: android.view.ViewGroup$MarginLayoutParams
[INFO] Generating getter: topMargin
[INFO] Generating getter: leftMargin
[INFO] Generating setter: topMargin
[INFO] Generating setter: leftMargin
[INFO] Generating class: android.widget.FrameLayout
[INFO] Generating instance method: setLayoutParams
[INFO] Generating instance method: addView
[INFO] Generating class: android.widget.FrameLayout$LayoutParams
[INFO] Generating instance method: setMargins
[INFO] Generating getter: MATCH_PARENT
[INFO] Generating class: android.view.Gravity
[INFO] Generating getter: TOP
[INFO] Generating class: android.graphics.Color
[INFO] Generating getter: RED
[INFO] Generating getter: BLUE
[INFO] Generating getter: YELLOW
[INFO] Generating class: android.app.Activity
[INFO] Generating instance method: setContentView_Landroid_view_View__V
[INFO] Generating class: android.os.Bundle
[INFO] Generating class: android.content.Context
[INFO] Generating class: android.view.View$OnTouchListener
[INFO] Generating class: android.util.Log
[INFO] Generating class: java.lang.Object
[INFO] Generating class: java.lang.Boolean
[INFO] Generating class: java.lang.Double
[INFO] Compiling 19 source files
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtbegin_so.o: No such file or directory
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtend_so.o: No such file or directory
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -llog
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lc
/Users/andrewmcelroy/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lm
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lstdc++
/Users/andrewmcelroy/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lm
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -ldl
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lc
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -ldl
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/iostream:74: error: undefined reference to '__cxa_atexit'
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/iostream:74: error: undefined reference to '__dso_handle'
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/iostream:74: error: undefined reference to '__cxa_atexit'
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/iostream:74: error: undefined reference to '__dso_handle'
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/iostream:74: error: undefined reference to '__cxa_atexit'
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/iostream:74: error: undefined reference to '__dso_handle'
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/iostream:74: error: undefined reference to '__cxa_atexit'
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/iostream:74: error: undefined reference to '__dso_handle'
[ERROR] build/src/armeabi-v7a/hyperloop.cpp:335: error: undefined reference to '__aeabi_memcpy'
[ERROR] build/hyperloop.h:371: error: undefined reference to 'free'
[ERROR] build/src/armeabi-v7a/hyperloop.cpp:497: error: undefined reference to '__aeabi_memcpy'
[ERROR] build/src/armeabi-v7a/hyperloop.cpp:498: error: undefined reference to '__aeabi_memcpy'
[ERROR] build/src/armeabi-v7a/hyperloop.cpp:499: error: undefined reference to '__aeabi_memcpy'
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/char_traits.h:255: error: undefined reference to 'memcmp'
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/char_traits.h:255: error: undefined reference to 'memcmp'
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/char_traits.h:255: error: undefined reference to 'memcmp'
/Users/andrewmcelroy/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/char_traits.h:255: error: undefined reference to 'memcmp'
build/src/armeabi-v7a/hyperloop.cpp:939: error: undefined reference to 'malloc'
build/src/armeabi-v7a/hyperloop.cpp:939: error: undefined reference to 'free'
build/src/armeabi-v7a/hyperloop.cpp:940: error: undefined reference to 'malloc'
build/src/armeabi-v7a/hyperloop.cpp:940: error: undefined reference to 'free'
build/src/armeabi-v7a/hyperloop.cpp:941: error: undefined reference to 'malloc'
build/src/armeabi-v7a/hyperloop.cpp:941: error: undefined reference to 'free'
build/src/armeabi-v7a/hyperloop.cpp:942: error: undefined reference to 'malloc'
[ERROR] build/src/armeabi-v7a/hyperloop.cpp:1183: error: undefined reference to '__stack_chk_fail'
[ERROR] build/src/armeabi-v7a/hyperloop.cpp:1183: error: undefined reference to '__stack_chk_guard'
[ERROR] build/src/armeabi-v7a/hyperloop.cpp:93: error: undefined reference to 'modf'
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/char_traits.h:259: error: undefined reference to 'strlen'
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/char_traits.h:259: error: undefined reference to 'strlen'
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/stl_tree.h:466: error: undefined reference to '__aeabi_memset'
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/stl_tree.h:466: error: undefined reference to '__aeabi_memset'
[ERROR] /Users/andrewmcelroy/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/stl_tree.h:466: error: undefined reference to '__aeabi_memset'
[ERROR] clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[INFO] Packaging...
fs.js:427
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT, no such file or directory 'build/libApp.so'
at Object.fs.openSync (fs.js:427:18)
at Object.fs.readFileSync (fs.js:284:15)
at copyModulesIntoDestination (/Users/andrewmcelroy/Desktop/hyperloop/hyperloop-android/commands/package/index.js:122:57)
at /Users/andrewmcelroy/Desktop/hyperloop/hyperloop-android/commands/package/index.js:96:4
at ChildProcess.exithandler (child_process.js:635:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Socket.<anonymous> (child_process.js:948:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment