Skip to content

small Macosx fixes #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

small Macosx fixes #41

wants to merge 1 commit into from

Conversation

revolunet
Copy link

minor improvments :

  • detect wget and change to curl if not present
  • sed syntax fix

This makes me go further but then i end up with cannot find -lpython2.7:

SharedLibrary  : libapplication.so
/Applications/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/arm-linux-androideabi-g++  -Wl,-soname,libapplication.so -shared --sysroot=/Applications/android-ndk-r8/platforms/android-14/arch-arm /Users/juju/Documents/projects/kivysrc/python-for-android/src/obj/local/armeabi/objs/application/src//start.o /Users/juju/Documents/projects/kivysrc/python-for-android/src/obj/local/armeabi/libjpeg.a /Users/juju/Documents/projects/kivysrc/python-for-android/src/obj/local/armeabi/libpng.a /Users/juju/Documents/projects/kivysrc/python-for-android/src/obj/local/armeabi/libsdl.so /Users/juju/Documents/projects/kivysrc/python-for-android/src/obj/local/armeabi/libsdl_ttf.so /Users/juju/Documents/projects/kivysrc/python-for-android/src/obj/local/armeabi/libsdl_image.so /Users/juju/Documents/projects/kivysrc/python-for-android/src/obj/local/armeabi/libsdl_mixer.so  -L/Users/juju/Documents/projects/kivysrc/python-for-android/src/jni/../jni/application/../../../build/python-install/lib -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,--no-undefined -Wl,-z,noexecstack -L/Applications/android-ndk-r8/platforms/android-14/arch-arm/usr/lib -lpython2.7 -lGLESv1_CM -ldl -llog -lz -lc -lm -o /Users/juju/Documents/projects/kivysrc/python-for-android/src/obj/local/armeabi/libapplication.so
/Applications/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: cannot find -lpython2.7
collect2: ld returned 1 exit status
make: *** [/Users/juju/Documents/projects/kivysrc/python-for-android/src/obj/local/armeabi/libapplication.so] Error 1

any idea ?

@revolunet
Copy link
Author

looks like the last error appears only when building with 'pil'.

without it, the distribute.sh script finishes without error and the APK from build.py gets builded successfully :)

But then, when running app on android, it crashes :

1833         SurfaceFlinger  I  id=2363(1) createSurface 0x446e4 (1x1),1 flag=0
21636               dalvikvm  D  Trying to load lib /data/data/com.Revolunet.robots1/lib/libsdl.so 0x414df760
21636               dalvikvm  D  Added shared lib /data/data/com.Revolunet.robots1/lib/libsdl.so 0x414df760
21636               dalvikvm  D  Trying to load lib /data/data/com.Revolunet.robots1/lib/libsdl_image.so 0x414df760
21636               dalvikvm  D  Added shared lib /data/data/com.Revolunet.robots1/lib/libsdl_image.so 0x414df760
21636               dalvikvm  D  No JNI_OnLoad found in /data/data/com.Revolunet.robots1/lib/libsdl_image.so 0x414df760, skipping init
21636               dalvikvm  D  Trying to load lib /data/data/com.Revolunet.robots1/lib/libsdl_ttf.so 0x414df760
21636               dalvikvm  D  Added shared lib /data/data/com.Revolunet.robots1/lib/libsdl_ttf.so 0x414df760
21636               dalvikvm  D  No JNI_OnLoad found in /data/data/com.Revolunet.robots1/lib/libsdl_ttf.so 0x414df760, skipping init
21636               dalvikvm  D  Trying to load lib /data/data/com.Revolunet.robots1/lib/libsdl_mixer.so 0x414df760
21636               dalvikvm  D  Added shared lib /data/data/com.Revolunet.robots1/lib/libsdl_mixer.so 0x414df760
21636               dalvikvm  D  No JNI_OnLoad found in /data/data/com.Revolunet.robots1/lib/libsdl_mixer.so 0x414df760, skipping init
21636               dalvikvm  D  Trying to load lib /data/data/com.Revolunet.robots1/lib/libpython2.7.so 0x414df760
1833         SurfaceFlinger  I  id=2364(2) createSurface 0x2b59c (800x480),4 flag=400
21636             SDLSurface  I  surfaceCreated() is not handled :|
21636               dalvikvm  W  threadid=11: thread exiting with uncaught exception (group=0x40c291f8)
21636         AndroidRuntime  E  FATAL EXCEPTION: Thread-3111
21636         AndroidRuntime  E  java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1286]:  1834 cannot locate 'log'...
21636         AndroidRuntime  E  
21636         AndroidRuntime  E    at java.lang.Runtime.loadLibrary(Runtime.java:370)
21636         AndroidRuntime  E    at java.lang.System.loadLibrary(System.java:535)
21636         AndroidRuntime  E    at org.renpy.android.PythonActivity.run(PythonActivity.java:218)
21636         AndroidRuntime  E    at java.lang.Thread.run(Thread.java:856)
1996        ActivityManager  W    Force finishing activity r.intent.getComponent().flattenToShortString()
1833         SurfaceFlinger  I  id=2365(99) createSurface (1600x480),-1 flag=20000
1833         SurfaceFlinger  I  id=2366(100) createSurface (800x960),-1 flag=20000
21636                 libEGL  D  loaded /system/lib/egl/libEGL_mali.so
21636                 libEGL  D  loaded /system/lib/egl/libGLESv1_CM_mali.so
21636                 libEGL  D  loaded /system/lib/egl/libGLESv2_mali.so
1833         SurfaceFlinger  I  id=2367(101) createSurface (1600x480),-1 flag=20000
21636                         D  Device driver API match
21636                         D  Device driver API version: 10
21636                         D  User space API version: 10 
21636                         D  mali: REVISION=Linux-r2p4-02rel0 BUILD_DATE=Mon Mar  5 09:47:55 KST 2012 
21636             SDLSurface  W  Choose egl configuration
21636             SDLSurface  I  Try to use graphics config R8G8B8A8S8
21636             SDLSurface  W  Create egl context
21636             SDLSurface  W  Create egl surface
1833         SurfaceFlinger  I  id=2368(102) createSurface (800x960),-1 flag=20000
21636             SDLSurface  W  Done
21636               dalvikvm  D  GC_FOR_ALLOC freed 92K, 4% free 9158K/9479K, paused 12ms
1996       android.os.Debug  E  !@Dumpstate > dumpstate -k -t -n -z -d -o /data/log/dumpstate_app_error
2117         PhoneStatusBar  V  setLightsOn(true)
1833         SurfaceFlinger  I  id=2363 Removed idx=2 Map Size=15
1833         SurfaceFlinger  I  id=2363 Removed idx=-2 Map Size=15
21636             SDLSurface  I  surfaceDestroyed() is not handled :|
21636            SurfaceView  W  app visibility event must be pending in main thread.
21636            SurfaceView  W  CHECK surface infomation creating=false formatChanged=false sizeChanged=false visible=true visibleChanged=false surfaceChanged=true realSizeChanged=false redrawNeeded=true left=fals
                                e top=false
1833         SurfaceFlinger  I  id=2364 Removed idx=1 Map Size=14
1996    InputManagerService  W  Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@41639b80 (uid=10124 pid=21636)
1996    InputManagerService  W  Client not active, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41abc658
1996    PowerManagerService  D  releaseWakeLockLocked flags=0x0 tag=Screen On myUID=1000 myPID=1996 myTID=2006
1833         SurfaceTexture  E  [SurfaceView] query: SurfaceTexture has been abandoned!
1833         SurfaceTexture  E  [SurfaceView] query: SurfaceTexture has been abandoned!
1833         SurfaceTexture  E  [SurfaceView] dequeueBuffer: SurfaceTexture has been abandoned!
21636                MaliEGL  E  void __egl_platform_dequeue_buffer(egl_surface*):1095 [EGL-ERROR] failed to dequeue buffer from native window (0x21d178); err = -19, buf = 0x0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant