-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
For Android NDK r9 you have to install the regular NDK and the legacy tools. This is not a problem, just something we should note in the instructions.
The bigger problem is that the compile fails on pygame under r9:
...
Leaving ARM enviromnent
Call build_pygame
Entering in ARM enviromnent
Compiler found at /home/brousch/bin/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin//arm-linux-androideabi-gcc
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/pygame
copying lib/_camera_opencv_highgui.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/surfarray.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/colordict.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/cursors.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/sysfont.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/compat.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/_camera_vidcapture.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/_numpysurfarray.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/sndarray.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/midi.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/locals.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/init.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/mac_scrap.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/sprite.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/pkgdata.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/macosx.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/version.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/camera.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/numpysndarray.py -> build/lib.linux-x86_64-2.7/pygame
creating build/lib.linux-x86_64-2.7/pygame/gp2x
copying lib/gp2x/constants.py -> build/lib.linux-x86_64-2.7/pygame/gp2x
copying lib/gp2x/locals.py -> build/lib.linux-x86_64-2.7/pygame/gp2x
copying lib/gp2x/init.py -> build/lib.linux-x86_64-2.7/pygame/gp2x
creating build/lib.linux-x86_64-2.7/pygame/threads
copying lib/threads/Py25Queue.py -> build/lib.linux-x86_64-2.7/pygame/threads
copying lib/threads/init.py -> build/lib.linux-x86_64-2.7/pygame/threads
creating build/lib.linux-x86_64-2.7/pygame/tests
copying test/sndarray_tags.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/midi_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/draw_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/key_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/pixelarray_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/sysfont_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/event_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/mixer_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/cursors_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/main.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/movie_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/bufferproxy_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/mixer_music_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/threads_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/threads_tags.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/surfarray_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/scrap_tags.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/sndarray_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/display_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/sprite_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/test_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/blit_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/mask_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/overlay_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/surflock_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/image_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/mouse_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/time_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/image__save_gl_surface_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/fastevent_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/init.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/surface_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/font_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/transform_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/color_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/movie_tags.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/surfarray_tags.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/cdrom_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/joystick_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/scrap_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/gfxdraw_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/cdrom_tags.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/base_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
copying test/rect_test.py -> build/lib.linux-x86_64-2.7/pygame/tests
creating build/lib.linux-x86_64-2.7/pygame/tests/test_utils
copying test/test_utils/unittest_patch.py -> build/lib.linux-x86_64-2.7/pygame/tests/test_utils
copying test/test_utils/async_sub.py -> build/lib.linux-x86_64-2.7/pygame/tests/test_utils
copying test/test_utils/run_tests.py -> build/lib.linux-x86_64-2.7/pygame/tests/test_utils
copying test/test_utils/unittest.py -> build/lib.linux-x86_64-2.7/pygame/tests/test_utils
copying test/test_utils/init.py -> build/lib.linux-x86_64-2.7/pygame/tests/test_utils
copying test/test_utils/test_runner.py -> build/lib.linux-x86_64-2.7/pygame/tests/test_utils
creating build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests
copying test/run_tests__tests/run_tests__test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests
copying test/run_tests__tests/init.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests
creating build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_6_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/zero_tests_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_2_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/init.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_4_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/no_assertions__ret_code_of_1__test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_3_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/all_ok
copying test/run_tests__tests/all_ok/fake_5_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/all_ok
creating build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/failures1
copying test/run_tests__tests/failures1/fake_2_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/failures1
copying test/run_tests__tests/failures1/init.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/failures1
copying test/run_tests__tests/failures1/fake_4_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/failures1
copying test/run_tests__tests/failures1/fake_3_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/failures1
creating build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/incomplete
copying test/run_tests__tests/incomplete/fake_2_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/incomplete
copying test/run_tests__tests/incomplete/init.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/incomplete
copying test/run_tests__tests/incomplete/fake_3_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/incomplete
creating build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/infinite_loop
copying test/run_tests__tests/infinite_loop/fake_1_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/infinite_loop
copying test/run_tests__tests/infinite_loop/fake_2_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/infinite_loop
copying test/run_tests__tests/infinite_loop/init.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/infinite_loop
creating build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/print_stderr
copying test/run_tests__tests/print_stderr/fake_2_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/print_stderr
copying test/run_tests__tests/print_stderr/init.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/print_stderr
copying test/run_tests__tests/print_stderr/fake_4_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/print_stderr
copying test/run_tests__tests/print_stderr/fake_3_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/print_stderr
creating build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/fake_2_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/init.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/fake_4_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/print_stdout
copying test/run_tests__tests/print_stdout/fake_3_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/print_stdout
creating build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/fake_2_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/init.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/incomplete_todo
copying test/run_tests__tests/incomplete_todo/fake_3_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/incomplete_todo
creating build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/fake_2_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/init.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/magic_tag_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/exclude
copying test/run_tests__tests/exclude/invisible_tag_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/exclude
creating build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/fake_2_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/init.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/timeout
copying test/run_tests__tests/timeout/sleep_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/timeout
creating build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/incomplete_todo_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/fake_2_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/init.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/magic_tag_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/everything
copying test/run_tests__tests/everything/sleep_test.py -> build/lib.linux-x86_64-2.7/pygame/tests/run_tests__tests/everything
creating build/lib.linux-x86_64-2.7/pygame/docs
copying docs/main.py -> build/lib.linux-x86_64-2.7/pygame/docs
copying docs/init.py -> build/lib.linux-x86_64-2.7/pygame/docs
creating build/lib.linux-x86_64-2.7/pygame/examples
copying examples/mask.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/blend_fill.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/arraydemo.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/sound_array_demos.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/cursors.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/eventlist.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/chimp.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/aacircle.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/scroll.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/oldalien.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/stars.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/moveit.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/midi.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/liquid.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/pixelarray.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/scaletest.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/init.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/testsprite.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/fonty.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/glcube.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/scrap_clipboard.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/vgrade.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/aliens.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/headless_no_windows_needed.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/overlay.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/sound.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/blit_blends.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/movieplayer.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/fastevents.py -> build/lib.linux-x86_64-2.7/pygame/examples
copying examples/camera.py -> build/lib.linux-x86_64-2.7/pygame/examples
running build_ext
building 'pygame.imageext' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/brousch/bin/android-ndk-r9/platforms/android-8/arch-arm -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/brousch/bin/android-ndk-r9/platforms/android-8/arch-arm -I/home/brousch/Projects/saythis/python-for-android/src/jni/png -I/home/brousch/Projects/saythis/python-for-android/src/jni/jpeg -I/home/brousch/Projects/saythis/python-for-android/src/jni/sdl/include -I/home/brousch/Projects/saythis/python-for-android/src/jni/sdl_mixer -I/home/brousch/Projects/saythis/python-for-android/src/jni/sdl_ttf -I/home/brousch/Projects/saythis/python-for-android/src/jni/sdl_image -fPIC -D_REENTRANT -I/home/brousch/Projects/saythis/python-for-android/build/python-install/include/python2.7 -c src/imageext.c -o build/temp.linux-x86_64-2.7/src/imageext.o
src/imageext.c: In function 'write_jpeg':
src/imageext.c:315:9: warning: variable 'lines_written' set but not used [-Wunused-but-set-variable]
src/imageext.c:313:9: warning: variable 'row_stride' set but not used [-Wunused-but-set-variable]
src/imageext.c: In function 'SaveJPEG':
src/imageext.c:391:9: warning: variable 'alpha' set but not used [-Wunused-but-set-variable]
src/imageext.c: In function 'initimageext':
src/imageext.c:659:15: warning: variable 'module' set but not used [-Wunused-but-set-variable]
/home/brousch/Projects/saythis/python-for-android/src/tools/liblink -lm -L/home/brousch/Projects/saythis/python-for-android/build/libs -L/home/brousch/Projects/saythis/python-for-android/src/obj/local/armeabi/ -lm -lz -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/brousch/bin/android-ndk-r9/platforms/android-8/arch-arm -I/home/brousch/Projects/saythis/python-for-android/src/jni/png -I/home/brousch/Projects/saythis/python-for-android/src/jni/jpeg -I/home/brousch/Projects/saythis/python-for-android/src/jni/sdl/include -I/home/brousch/Projects/saythis/python-for-android/src/jni/sdl_mixer -I/home/brousch/Projects/saythis/python-for-android/src/jni/sdl_ttf -I/home/brousch/Projects/saythis/python-for-android/src/jni/sdl_image build/temp.linux-x86_64-2.7/src/imageext.o -L/home/brousch/Projects/saythis/python-for-android/build/python-install/lib -lsdl -lm -lsdl_image -lpng -lz -ljpeg -lpython2.7 -o build/lib.linux-x86_64-2.7/pygame/imageext.so
arm-linux-androideabi-ld: -arch: unknown option
arm-linux-androideabi-ld: use the --help option for usage information
error: command '/home/brousch/Projects/saythis/python-for-android/src/tools/liblink' failed with exit status 1
make: *** [create_python_for_android_distribution] Error 255