31
General / Re: ERROR: building and compiling SFML for Android
« on: August 17, 2014, 03:45:29 pm »
Perhaps need reinstall MinGW... i personally use IDE Code::Blocks that install MinGW...
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
cd C:\Programacion\C++\Android\SFML
SET ANDROID_NDK=C:\Programacion\C++\Android\android-ndk-r9d
cmake.exe -G"MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=C:\Programacion\C++\Android\SFML\cmake\toolchains\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM="%ANDROID_NDK%\prebuilt\windows-x86_64\bin\make.exe"
"%ANDROID_NDK%\prebuilt\windows-x86_64\bin\make.exe"
"%ANDROID_NDK%\prebuilt\windows-x86_64\bin\make.exe" install
You can't with the SFML port as far as I understand.
I also haven't found anything googling it. Well, at least you can always call yourself during gaming.yes! the best solution with difference xDDD
If you need this feature immediately you could write a JNI wrapper around this API (Do not forget to add the permission for vibration): http://developer.android.com/reference/android/os/Vibrator.htmlThx! i read about it but i need get the NativeActivity for get the 'JNIEnv' no?
I don't think there is a native library for it.
AlexAUT
04-19 12:34:15.916: I/ActivityManager(494): Start proc com.example.sfml for activity com.example.sfml/android.app.NativeActivity: pid=4399 uid=10109 gids={50109}
04-19 12:34:16.494: D/libEGL(4399): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
04-19 12:34:16.502: D/libEGL(4399): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
04-19 12:34:16.510: D/libEGL(4399): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
04-19 12:34:17.080: A/libc(4399): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 4415 (om.example.sfml)
04-19 12:34:17.182: I/DEBUG(131): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-19 12:34:17.182: I/DEBUG(131): Build fingerprint: 'google/yakju/maguro:4.3/JWR66Y/776638:user/release-keys'
04-19 12:34:17.182: I/DEBUG(131): Revision: '9'
04-19 12:34:17.182: I/DEBUG(131): pid: 4399, tid: 4415, name: om.example.sfml >>> com.example.sfml <<<
04-19 12:34:17.182: I/DEBUG(131): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
04-19 12:34:17.307: I/DEBUG(131): r0 00000000 r1 00000000 r2 00004001 r3 5e8c8f78
04-19 12:34:17.307: I/DEBUG(131): r4 6088189c r5 5e8e6698 r6 00000000 r7 5eeed008
04-19 12:34:17.307: I/DEBUG(131): r8 00000000 r9 5e8e5ec0 sl 5eeed010 fp 60881d74
04-19 12:34:17.307: I/DEBUG(131): ip 113f0000 sp 60881898 lr 5e8c8f88 pc 5e8c8eb8 cpsr 60040010
04-19 12:34:17.307: I/DEBUG(131): d0 0000000000000000 d1 0000000000000000
04-19 12:34:17.307: I/DEBUG(131): d2 0000000000000000 d3 0000000000000000
04-19 12:34:17.307: I/DEBUG(131): d4 953793c9f2254d5d d5 3be67c3a9b33c874
04-19 12:34:17.307: I/DEBUG(131): d6 2355d64ace77bcc1 d7 5266250940f5a3bd
04-19 12:34:17.307: I/DEBUG(131): d8 0000000000000000 d9 0000000000000000
04-19 12:34:17.307: I/DEBUG(131): d10 0000000000000000 d11 0000000000000000
04-19 12:34:17.307: I/DEBUG(131): d12 0000000000000000 d13 0000000000000000
04-19 12:34:17.307: I/DEBUG(131): d14 0000000000000000 d15 0000000000000000
04-19 12:34:17.307: I/DEBUG(131): d16 000000000000011e d17 0000000000002291
04-19 12:34:17.307: I/DEBUG(131): d18 000000000000218f d19 8000000000000000
04-19 12:34:17.307: I/DEBUG(131): d20 0000000000004000 d21 0000000000000000
04-19 12:34:17.307: I/DEBUG(131): d22 0000000000004000 d23 8000000000000000
04-19 12:34:17.307: I/DEBUG(131): d24 0000000000000000 d25 4008000000000000
04-19 12:34:17.307: I/DEBUG(131): d26 3fc2f112df3e5244 d27 0000000000000001
04-19 12:34:17.307: I/DEBUG(131): d28 00000000000000e6 d29 00000000000000e5
04-19 12:34:17.307: I/DEBUG(131): d30 0000000000000001 d31 0000000000004000
04-19 12:34:17.307: I/DEBUG(131): scr 60000010
04-19 12:34:17.307: I/DEBUG(131): backtrace:
04-19 12:34:17.307: I/DEBUG(131): #00 pc 0002deb8 /data/app-lib/com.example.sfml-1/libopenal.so
04-19 12:34:17.307: I/DEBUG(131): #01 pc 0002df84 /data/app-lib/com.example.sfml-1/libopenal.so
04-19 12:34:17.307: I/DEBUG(131): #02 pc 00019320 /data/app-lib/com.example.sfml-1/libopenal.so (alcOpenDevice+780)
04-19 12:34:17.307: I/DEBUG(131): #03 pc 0000493d /data/app-lib/com.example.sfml-1/libsfml-audio.so
04-19 12:34:17.307: I/DEBUG(131): stack:
04-19 12:34:17.314: I/DEBUG(131): 60881858 00000010
04-19 12:34:17.314: I/DEBUG(131): 6088185c 00000010
04-19 12:34:17.314: I/DEBUG(131): 60881860 401fb1c0
04-19 12:34:17.314: I/DEBUG(131): 60881864 00000010
04-19 12:34:17.314: I/DEBUG(131): 60881868 5bffe700
04-19 12:34:17.314: I/DEBUG(131): 6088186c 401bdf37 /system/lib/libc.so (dlmalloc+4250)
04-19 12:34:17.314: I/DEBUG(131): 60881870 00000010
04-19 12:34:17.314: I/DEBUG(131): 60881874 01000438
04-19 12:34:17.314: I/DEBUG(131): 60881878 00000011
04-19 12:34:17.314: I/DEBUG(131): 6088187c 00000010
04-19 12:34:17.314: I/DEBUG(131): 60881880 00000010
04-19 12:34:17.314: I/DEBUG(131): 60881884 5e8d5ec8 /data/app-lib/com.example.sfml-1/libopenal.so
04-19 12:34:17.314: I/DEBUG(131): 60881888 5e8d4350 /data/app-lib/com.example.sfml-1/libopenal.so
04-19 12:34:17.314: I/DEBUG(131): 6088188c 00000000
04-19 12:34:17.314: I/DEBUG(131): 60881890 5e8e5ec0 /data/app-lib/com.example.sfml-1/libopenal.so
04-19 12:34:17.314: I/DEBUG(131): 60881894 5eeed010
04-19 12:34:17.314: I/DEBUG(131): #00 60881898 60881d74
04-19 12:34:17.314: I/DEBUG(131): 6088189c 00000000
04-19 12:34:17.314: I/DEBUG(131): 608818a0 00000000
04-19 12:34:17.322: I/DEBUG(131): 608818a4 5e8e614c /data/app-lib/com.example.sfml-1/libopenal.so
04-19 12:34:17.322: I/DEBUG(131): 608818a8 5e8e6118 /data/app-lib/com.example.sfml-1/libopenal.so
04-19 12:34:17.322: I/DEBUG(131): 608818ac 5e8c8f88 /data/app-lib/com.example.sfml-1/libopenal.so
04-19 12:34:17.322: I/DEBUG(131): #01 608818b0 5eeed008
04-19 12:34:17.322: I/DEBUG(131): 608818b4 5e8e614c /data/app-lib/com.example.sfml-1/libopenal.so
04-19 12:34:17.322: I/DEBUG(131): 608818b8 5e8e6118 /data/app-lib/com.example.sfml-1/libopenal.so
04-19 12:34:17.322: I/DEBUG(131): 608818bc 5e8d4350 /data/app-lib/com.example.sfml-1/libopenal.so
04-19 12:34:17.322: I/DEBUG(131): 608818c0 00000000
04-19 12:34:17.322: I/DEBUG(131): 608818c4 5e8b4324 /data/app-lib/com.example.sfml-1/libopenal.so (alcOpenDevice+784)
04-19 12:34:17.322: I/DEBUG(131): #02 608818c8 401f7000 /system/lib/libc.so
04-19 12:34:17.322: I/DEBUG(131): 608818cc 5e8d4350 /data/app-lib/com.example.sfml-1/libopenal.so
04-19 12:34:17.322: I/DEBUG(131): 608818d0 5d37500c /data/app-lib/com.example.sfml-1/libsfml-audio.so
04-19 12:34:17.322: I/DEBUG(131): 608818d4 5d375008 /data/app-lib/com.example.sfml-1/libsfml-audio.so
04-19 12:34:17.322: I/DEBUG(131): 608818d8 5d375008 /data/app-lib/com.example.sfml-1/libsfml-audio.so
04-19 12:34:17.322: I/DEBUG(131): 608818dc 00000001
04-19 12:34:17.322: I/DEBUG(131): 608818e0 5c019bc1 /data/app-lib/com.example.sfml-1/libsfml-system.so
04-19 12:34:17.322: I/DEBUG(131): 608818e4 60881dd0
04-19 12:34:17.322: I/DEBUG(131): 608818e8 41870aa0
04-19 12:34:17.322: I/DEBUG(131): 608818ec 5d36e941 /data/app-lib/com.example.sfml-1/libsfml-audio.so
04-19 12:34:17.322: I/DEBUG(131): memory near r2:
04-19 12:34:17.322: I/DEBUG(131): 00003fe0 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.322: I/DEBUG(131): 00003ff0 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.322: I/DEBUG(131): 00004000 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.330: I/DEBUG(131): 00004010 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.330: I/DEBUG(131): 00004020 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.330: I/DEBUG(131): 00004030 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.330: I/DEBUG(131): 00004040 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.330: I/DEBUG(131): 00004050 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.330: I/DEBUG(131): 00004060 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.330: I/DEBUG(131): 00004070 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.330: I/DEBUG(131): 00004080 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.330: I/DEBUG(131): 00004090 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.330: I/DEBUG(131): 000040a0 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.330: I/DEBUG(131): 000040b0 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.330: I/DEBUG(131): 000040c0 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.330: I/DEBUG(131): 000040d0 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.330: I/DEBUG(131): memory near r3:
04-19 12:34:17.330: I/DEBUG(131): 5e8c8f58 ebffdde0 e3a00001 ebff5fdd 0001d7e8
04-19 12:34:17.330: I/DEBUG(131): 5e8c8f68 0001abac 0000cda4 0001ab8c 0000cd5c
04-19 12:34:17.330: I/DEBUG(131): 5e8c8f78 e92d41f0 e1a07000 e1a04001 ebffffc3
04-19 12:34:17.330: I/DEBUG(131): 5e8c8f88 e59f51cc e1a06000 e08f5005 e5953008
04-19 12:34:17.330: I/DEBUG(131): 5e8c8f98 e3530000 0a00001a e3540000 0a000009
04-19 12:34:17.330: I/DEBUG(131): 5e8c8fa8 e59f11b0 e1a00004 e08f1001 e2811018
04-19 12:34:17.330: I/DEBUG(131): 5e8c8fb8 ebff5f16 e3500000 0a000005 e3a00a0a
04-19 12:34:17.330: I/DEBUG(131): 5e8c8fc8 e2800004 e8bd81f0 e59f418c e08f4004
04-19 12:34:17.330: I/DEBUG(131): 5e8c8fd8 e2844018 e3a01008 e3a00001 ebff5ef3
04-19 12:34:17.330: I/DEBUG(131): 5e8c8fe8 e1a05000 e1a00004 ebff5f2f e3a03ba2
04-19 12:34:17.330: I/DEBUG(131): 5e8c8ff8 e2833f56 e5870020 e3a00000 e7875003
04-19 12:34:17.338: I/DEBUG(131): 5e8c9008 e8bd81f0 e5903000 e59f1150 e5933018
04-19 12:34:17.338: I/DEBUG(131): 5e8c9018 e08f1001 e12fff33 e3500000 e1a08000
04-19 12:34:17.338: I/DEBUG(131): 5e8c9028 e5850008 0a000042 e5963000 e1a01000
04-19 12:34:17.338: I/DEBUG(131): 5e8c9038 e1a00006 e5933054 e12fff33 e5963000
04-19 12:34:17.338: I/DEBUG(131): 5e8c9048 e59f211c e1a0c000 e5938084 e59f3114
04-19 12:34:17.338: I/DEBUG(131): memory near r4:
04-19 12:34:17.338: I/DEBUG(131): 6088187c 00000010 00000010 5e8d5ec8 5e8d4350
04-19 12:34:17.338: I/DEBUG(131): 6088188c 00000000 5e8e5ec0 5eeed010 60881d74
04-19 12:34:17.338: I/DEBUG(131): 6088189c 00000000 00000000 5e8e614c 5e8e6118
04-19 12:34:17.338: I/DEBUG(131): 608818ac 5e8c8f88 5eeed008 5e8e614c 5e8e6118
04-19 12:34:17.338: I/DEBUG(131): 608818bc 5e8d4350 00000000 5e8b4324 401f7000
04-19 12:34:17.338: I/DEBUG(131): 608818cc 5e8d4350 5d37500c 5d375008 5d375008
04-19 12:34:17.338: I/DEBUG(131): 608818dc 00000001 5c019bc1 60881dd0 41870aa0
04-19 12:34:17.338: I/DEBUG(131): 608818ec 5d36e941 00000001 5e8873ac 5d37500c
04-19 12:34:17.338: I/DEBUG(131): 608818fc 5e8039e5 00000000 5d37500c 5d374ea8
04-19 12:34:17.338: I/DEBUG(131): 6088190c 5d375008 00000001 5d36e2c3 60881928
04-19 12:34:17.338: I/DEBUG(131): 6088191c 5e96226d 60881a00 60881a04 00002c4a
04-19 12:34:17.338: I/DEBUG(131): 6088192c 5d371fbd 00000000 5d374cc8 00000096
04-19 12:34:17.346: I/DEBUG(131): 6088193c 60881a00 000061b6 5d372259 60881a58
04-19 12:34:17.346: I/DEBUG(131): 6088194c 60881b54 60881a00 000061b6 5bf7807c
04-19 12:34:17.346: I/DEBUG(131): 6088195c 5d36eced 60881d51 5d393f00 00000000
04-19 12:34:17.346: I/DEBUG(131): 6088196c 5d393f00 42960000 5d38ede0 60881a00
04-19 12:34:17.346: I/DEBUG(131): memory near r5:
04-19 12:34:17.346: I/DEBUG(131): 5e8e6678 00000000 00000000 00000000 00000001
04-19 12:34:17.346: I/DEBUG(131): 5e8e6688 00000000 00000000 00000000 00000000
04-19 12:34:17.346: I/DEBUG(131): 5e8e6698 00000000 00000000 00000000 00000000
04-19 12:34:17.346: I/DEBUG(131): 5e8e66a8 00000000 00000000 00000000 00000000
04-19 12:34:17.346: I/DEBUG(131): 5e8e66b8 00000000 00000000 00000000 401f722c
04-19 12:34:17.346: I/DEBUG(131): 5e8e66c8 00000000 00000000 00000000 00000000
04-19 12:34:17.346: I/DEBUG(131): 5e8e66d8 00000000 00000000 00000000 00000000
04-19 12:34:17.346: I/DEBUG(131): 5e8e66e8 00000000 00000000 00000000 00000000
04-19 12:34:17.346: I/DEBUG(131): 5e8e66f8 00000000 00000000 00000000 00000000
04-19 12:34:17.346: I/DEBUG(131): 5e8e6708 00000000 00000000 00000000 00000000
04-19 12:34:17.346: I/DEBUG(131): 5e8e6718 00000000 00000000 00000000 00000000
04-19 12:34:17.346: I/DEBUG(131): 5e8e6728 00000000 00000000 00000000 00000000
04-19 12:34:17.346: I/DEBUG(131): 5e8e6738 00000000 00000000 00000000 00000000
04-19 12:34:17.346: I/DEBUG(131): 5e8e6748 00000000 00000000 00000000 00000000
04-19 12:34:17.346: I/DEBUG(131): 5e8e6758 00000000 00000000 00000000 00000000
04-19 12:34:17.346: I/DEBUG(131): 5e8e6768 00000000 00000000 00000000 00000000
04-19 12:34:17.346: I/DEBUG(131): memory near r7:
04-19 12:34:17.346: I/DEBUG(131): 5eeecfe8 00000000 00000000 00000000 00000007
04-19 12:34:17.353: I/DEBUG(131): 5eeecff8 00000000 00000000 00000000 0002cff0
04-19 12:34:17.353: I/DEBUG(131): 5eeed008 00000001 00000001 00004000 0000ac44
04-19 12:34:17.353: I/DEBUG(131): 5eeed018 00000400 00000004 00001501 00001406
04-19 12:34:17.353: I/DEBUG(131): 5eeed028 00000000 00000000 00000100 00000004
04-19 12:34:17.353: I/DEBUG(131): 5eeed038 000000ff 00000001 00000004 00000000
04-19 12:34:17.353: I/DEBUG(131): 5eeed048 00000000 00000000 ffffffff 00000000
04-19 12:34:17.353: I/DEBUG(131): 5eeed058 00000000 00000000 00000000 00000000
04-19 12:34:17.353: I/DEBUG(131): 5eeed068 00000000 00000000 00000000 ffffffff
04-19 12:34:17.353: I/DEBUG(131): 5eeed078 00000000 00000000 00000000 00000000
04-19 12:34:17.353: I/DEBUG(131): 5eeed088 00000000 00000000 00000000 00000000
04-19 12:34:17.353: I/DEBUG(131): 5eeed098 ffffffff 00000000 00000000 00000000
04-19 12:34:17.353: I/DEBUG(131): 5eeed0a8 00000000 00000000 00000000 00000000
04-19 12:34:17.353: I/DEBUG(131): 5eeed0b8 00000000 00000000 00000000 00000000
04-19 12:34:17.353: I/DEBUG(131): 5eeed0c8 00000000 00000000 00000000 00000000
04-19 12:34:17.353: I/DEBUG(131): 5eeed0d8 00000000 00000000 00000000 00000000
04-19 12:34:17.353: I/DEBUG(131): memory near r9:
04-19 12:34:17.353: I/DEBUG(131): 5e8e5ea0 401fb384 5e8cc504 5e8cc50c 5e8cc514
04-19 12:34:17.353: I/DEBUG(131): 5e8e5eb0 401bc161 5e8ce4cc 5e8cd91c 00000000
04-19 12:34:17.353: I/DEBUG(131): 5e8e5ec0 00000000 00000000 00000000 401d5bf5
04-19 12:34:17.353: I/DEBUG(131): 5e8e5ed0 401d5ce9 401bacd1 401bacf9 401cf25c
04-19 12:34:17.361: I/DEBUG(131): 5e8e5ee0 401bace5 401cf081 400d891c 401d86fd
04-19 12:34:17.361: I/DEBUG(131): 5e8e5ef0 401c0285 401cfe25 401d8725 401d062b
04-19 12:34:17.361: I/DEBUG(131): 5e8e5f00 401cf79c 400dbef0 401bacbd 401ba9d0
04-19 12:34:17.361: I/DEBUG(131): 5e8e5f10 401bc064 401d5ff1 401d8289 400d13f8
04-19 12:34:17.361: I/DEBUG(131): 5e8e5f20 401e72f1 401c19c5 401ba780 401ba87c
04-19 12:34:17.361: I/DEBUG(131): 5e8e5f30 401c1531 401d8779 401ba9f0 401c1851
04-19 12:34:17.361: I/DEBUG(131): 5e8e5f40 401d1604 401d365d 401d83e9 401d6b49
04-19 12:34:17.361: I/DEBUG(131): 5e8e5f50 401d8c01 400d4bb8 400da650 400d01c0
04-19 12:34:17.361: I/DEBUG(131): 5e8e5f60 401ba2f0 401bffdd 400ca998 400cb068
04-19 12:34:17.361: I/DEBUG(131): 5e8e5f70 400cb538 400cbc70 401ce4e8 401bb57c
04-19 12:34:17.361: I/DEBUG(131): 5e8e5f80 401bb5d4 401bb688 401bb590 401bbd38
04-19 12:34:17.361: I/DEBUG(131): 5e8e5f90 401bb8a8 401bb9ac 401cdf4c 401c0d85
04-19 12:34:17.361: I/DEBUG(131): memory near sl:
04-19 12:34:17.361: I/DEBUG(131): 5eeecff0 00000000 00000007 00000000 00000000
04-19 12:34:17.361: I/DEBUG(131): 5eeed000 00000000 0002cff0 00000001 00000001
04-19 12:34:17.361: I/DEBUG(131): 5eeed010 00004000 0000ac44 00000400 00000004
04-19 12:34:17.361: I/DEBUG(131): 5eeed020 00001501 00001406 00000000 00000000
04-19 12:34:17.361: I/DEBUG(131): 5eeed030 00000100 00000004 000000ff 00000001
04-19 12:34:17.361: I/DEBUG(131): 5eeed040 00000004 00000000 00000000 00000000
04-19 12:34:17.361: I/DEBUG(131): 5eeed050 ffffffff 00000000 00000000 00000000
04-19 12:34:17.361: I/DEBUG(131): 5eeed060 00000000 00000000 00000000 00000000
04-19 12:34:17.369: I/DEBUG(131): 5eeed070 00000000 ffffffff 00000000 00000000
04-19 12:34:17.369: I/DEBUG(131): 5eeed080 00000000 00000000 00000000 00000000
04-19 12:34:17.369: I/DEBUG(131): 5eeed090 00000000 00000000 ffffffff 00000000
04-19 12:34:17.369: I/DEBUG(131): 5eeed0a0 00000000 00000000 00000000 00000000
04-19 12:34:17.369: I/DEBUG(131): 5eeed0b0 00000000 00000000 00000000 00000000
04-19 12:34:17.369: I/DEBUG(131): 5eeed0c0 00000000 00000000 00000000 00000000
04-19 12:34:17.369: I/DEBUG(131): 5eeed0d0 00000000 00000000 00000000 00000000
04-19 12:34:17.369: I/DEBUG(131): 5eeed0e0 00000000 00000000 00000000 00000000
04-19 12:34:17.369: I/DEBUG(131): memory near fp:
04-19 12:34:17.369: I/DEBUG(131): 60881d54 702e6567 5b00676e abec94a5 60881d84
04-19 12:34:17.369: I/DEBUG(131): 60881d64 5bf78058 5bf7807c 00000001 00000000
04-19 12:34:17.369: I/DEBUG(131): 60881d74 5d38ea5b 0007a120 00000000 00000000
04-19 12:34:17.369: I/DEBUG(131): 60881d84 5bf7807c 41870a80 60881dd0 41870ab0
04-19 12:34:17.369: I/DEBUG(131): 60881d94 5c019bc1 41870a80 5d38f6bb 5d38f6b1
04-19 12:34:17.369: I/DEBUG(131): 60881da4 5c0195ef 00000000 5c019bc7 00000000
04-19 12:34:17.369: I/DEBUG(131): 60881db4 401ba24c 41870a80 41870ab0 400c5f2c
04-19 12:34:17.369: I/DEBUG(131): 60881dc4 00000002 00000078 401ba3e4 60881dd0
04-19 12:34:17.369: I/DEBUG(131): 60881dd4 41870ab0 00000016 403b7e64 00000000
04-19 12:34:17.369: I/DEBUG(131): 60881de4 abec94a5 00000000 00000000 00000000
04-19 12:34:17.369: I/DEBUG(131): 60881df4 00000000 00000000 00000000 00000000
04-19 12:34:17.369: I/DEBUG(131): 60881e04 00000000 00000000 00000000 00000000
04-19 12:34:17.377: I/DEBUG(131): 60881e14 00000000 00000000 00000000 00000000
04-19 12:34:17.377: I/DEBUG(131): 60881e24 41870cf8 5c000e60 00000000 00000000
04-19 12:34:17.377: I/DEBUG(131): 60881e34 5c0002f0 5c0002f0 00000000 5c0033a8
04-19 12:34:17.377: I/DEBUG(131): 60881e44 00000000 00000000 5ed12008 00000000
04-19 12:34:17.377: I/DEBUG(131): memory near ip:
04-19 12:34:17.377: I/DEBUG(131): 113effe0 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.377: I/DEBUG(131): 113efff0 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.377: I/DEBUG(131): 113f0000 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.377: I/DEBUG(131): 113f0010 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.377: I/DEBUG(131): 113f0020 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.377: I/DEBUG(131): 113f0030 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.377: I/DEBUG(131): 113f0040 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.377: I/DEBUG(131): 113f0050 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.377: I/DEBUG(131): 113f0060 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.377: I/DEBUG(131): 113f0070 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.377: I/DEBUG(131): 113f0080 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.377: I/DEBUG(131): 113f0090 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.377: I/DEBUG(131): 113f00a0 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.377: I/DEBUG(131): 113f00b0 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.377: I/DEBUG(131): 113f00c0 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.377: I/DEBUG(131): 113f00d0 ffffffff ffffffff ffffffff ffffffff
04-19 12:34:17.377: I/DEBUG(131): memory near sp:
04-19 12:34:17.377: I/DEBUG(131): 60881878 00000011 00000010 00000010 5e8d5ec8
04-19 12:34:17.377: I/DEBUG(131): 60881888 5e8d4350 00000000 5e8e5ec0 5eeed010
04-19 12:34:17.377: I/DEBUG(131): 60881898 60881d74 00000000 00000000 5e8e614c
04-19 12:34:17.385: I/DEBUG(131): 608818a8 5e8e6118 5e8c8f88 5eeed008 5e8e614c
04-19 12:34:17.385: I/DEBUG(131): 608818b8 5e8e6118 5e8d4350 00000000 5e8b4324
04-19 12:34:17.385: I/DEBUG(131): 608818c8 401f7000 5e8d4350 5d37500c 5d375008
04-19 12:34:17.385: I/DEBUG(131): 608818d8 5d375008 00000001 5c019bc1 60881dd0
04-19 12:34:17.385: I/DEBUG(131): 608818e8 41870aa0 5d36e941 00000001 5e8873ac
04-19 12:34:17.385: I/DEBUG(131): 608818f8 5d37500c 5e8039e5 00000000 5d37500c
04-19 12:34:17.385: I/DEBUG(131): 60881908 5d374ea8 5d375008 00000001 5d36e2c3
04-19 12:34:17.385: I/DEBUG(131): 60881918 60881928 5e96226d 60881a00 60881a04
04-19 12:34:17.385: I/DEBUG(131): 60881928 00002c4a 5d371fbd 00000000 5d374cc8
04-19 12:34:17.385: I/DEBUG(131): 60881938 00000096 60881a00 000061b6 5d372259
04-19 12:34:17.385: I/DEBUG(131): 60881948 60881a58 60881b54 60881a00 000061b6
04-19 12:34:17.385: I/DEBUG(131): 60881958 5bf7807c 5d36eced 60881d51 5d393f00
04-19 12:34:17.385: I/DEBUG(131): 60881968 00000000 5d393f00 42960000 5d38ede0
04-19 12:34:17.385: I/DEBUG(131): code around pc:
04-19 12:34:17.385: I/DEBUG(131): 5e8c8e98 e92d4070 e59f50c0 e24dd008 e28d4008
04-19 12:34:17.385: I/DEBUG(131): 5e8c8ea8 e08f5005 e5950000 e3a06000 e5246004
04-19 12:34:17.385: I/DEBUG(131): 5e8c8eb8 e5903000 e3a02801 e1a01004 e5933018
04-19 12:34:17.385: I/DEBUG(131): 5e8c8ec8 e2822002 e12fff33 e3700002 0a000004
04-19 12:34:17.385: I/DEBUG(131): 5e8c8ed8 e3500000 1a000010 e59d0004 e28dd008
04-19 12:34:17.393: I/DEBUG(131): 5e8c8ee8 e8bd8070 e5950000 e1a01004 e1a02006
04-19 12:34:17.393: I/DEBUG(131): 5e8c8ef8 e5903000 e5933010 e12fff33 e1500006
04-19 12:34:17.393: I/DEBUG(131): 5e8c8f08 1a00000d e5950004 e59d1004 ebff5f69
04-19 12:34:17.393: I/DEBUG(131): 5e8c8f18 e59d0004 e28dd008 e8bd8070 e59f003c
04-19 12:34:17.393: I/DEBUG(131): 5e8c8f28 e59f103c e08f0000 e2800010 e08f1001
04-19 12:34:17.393: I/DEBUG(131): 5e8c8f38 ebffdde8 e3a00001 ebff5fe5 e59f0024
04-19 12:34:17.393: I/DEBUG(131): 5e8c8f48 e59f1024 e08f0000 e2800010 e08f1001
04-19 12:34:17.393: I/DEBUG(131): 5e8c8f58 ebffdde0 e3a00001 ebff5fdd 0001d7e8
04-19 12:34:17.393: I/DEBUG(131): 5e8c8f68 0001abac 0000cda4 0001ab8c 0000cd5c
04-19 12:34:17.393: I/DEBUG(131): 5e8c8f78 e92d41f0 e1a07000 e1a04001 ebffffc3
04-19 12:34:17.393: I/DEBUG(131): 5e8c8f88 e59f51cc e1a06000 e08f5005 e5953008
04-19 12:34:17.393: I/DEBUG(131): code around lr:
04-19 12:34:17.393: I/DEBUG(131): 5e8c8f68 0001abac 0000cda4 0001ab8c 0000cd5c
04-19 12:34:17.393: I/DEBUG(131): 5e8c8f78 e92d41f0 e1a07000 e1a04001 ebffffc3
04-19 12:34:17.393: I/DEBUG(131): 5e8c8f88 e59f51cc e1a06000 e08f5005 e5953008
04-19 12:34:17.393: I/DEBUG(131): 5e8c8f98 e3530000 0a00001a e3540000 0a000009
04-19 12:34:17.400: I/DEBUG(131): 5e8c8fa8 e59f11b0 e1a00004 e08f1001 e2811018
04-19 12:34:17.400: I/DEBUG(131): 5e8c8fb8 ebff5f16 e3500000 0a000005 e3a00a0a
04-19 12:34:17.400: I/DEBUG(131): 5e8c8fc8 e2800004 e8bd81f0 e59f418c e08f4004
04-19 12:34:17.400: I/DEBUG(131): 5e8c8fd8 e2844018 e3a01008 e3a00001 ebff5ef3
04-19 12:34:17.400: I/DEBUG(131): 5e8c8fe8 e1a05000 e1a00004 ebff5f2f e3a03ba2
04-19 12:34:17.400: I/DEBUG(131): 5e8c8ff8 e2833f56 e5870020 e3a00000 e7875003
04-19 12:34:17.400: I/DEBUG(131): 5e8c9008 e8bd81f0 e5903000 e59f1150 e5933018
04-19 12:34:17.400: I/DEBUG(131): 5e8c9018 e08f1001 e12fff33 e3500000 e1a08000
04-19 12:34:17.400: I/DEBUG(131): 5e8c9028 e5850008 0a000042 e5963000 e1a01000
04-19 12:34:17.400: I/DEBUG(131): 5e8c9038 e1a00006 e5933054 e12fff33 e5963000
04-19 12:34:17.400: I/DEBUG(131): 5e8c9048 e59f211c e1a0c000 e5938084 e59f3114
04-19 12:34:17.408: I/DEBUG(131): 5e8c9058 e1a01000 e08f2002 e08f3003 e1a00006
04-19 12:34:17.564: I/BootReceiver(494): Copying /data/tombstones/tombstone_05 to DropBox (SYSTEM_TOMBSTONE)
04-19 12:34:17.572: W/ActivityManager(494): Force finishing activity com.example.sfml/android.app.NativeActivity
04-19 12:34:17.619: D/Zygote(134): Process 4399 terminated by signal (11)
04-19 12:34:17.619: I/WindowState(494): WIN DEATH: Window{41d69978 u0 com.example.sfml/android.app.NativeActivity}
04-19 12:34:17.643: W/InputDispatcher(494): channel '41d69978 com.example.sfml/android.app.NativeActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
04-19 12:34:17.643: E/InputDispatcher(494): channel '41d69978 com.example.sfml/android.app.NativeActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
04-19 12:34:17.643: W/InputDispatcher(494): Attempted to unregister already unregistered input channel '41d69978 com.example.sfml/android.app.NativeActivity (server)'
04-19 12:34:17.775: W/ActivityManager(494): Exception thrown during pause
04-19 12:34:17.775: W/ActivityManager(494): android.os.DeadObjectException
04-19 12:34:17.775: W/ActivityManager(494): at android.os.BinderProxy.transact(Native Method)
04-19 12:34:17.775: W/ActivityManager(494): at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:660)
04-19 12:34:17.775: W/ActivityManager(494): at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:781)
04-19 12:34:17.775: W/ActivityManager(494): at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2505)
04-19 12:34:17.775: W/ActivityManager(494): at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2379)
04-19 12:34:17.775: W/ActivityManager(494): at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2035)
04-19 12:34:17.775: W/ActivityManager(494): at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:9671)
04-19 12:34:17.775: W/ActivityManager(494): at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:9564)
04-19 12:34:17.775: W/ActivityManager(494): at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:10209)
04-19 12:34:17.775: W/ActivityManager(494): at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:9760)
04-19 12:34:17.775: W/ActivityManager(494): at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
04-19 12:34:17.775: I/ActivityManager(494): Process com.example.sfml (pid 4399) has died.
C:\Programacion\C++\Android\SFML-ios_and_android\examples\android>ndk-build
Android NDK: WARNING: APP_PLATFORM android-17 is larger than android:minSdkVersi
on 9 in ./AndroidManifest.xml
[armeabi] Gdbserver : [arm-linux-androideabi-4.8] libs/armeabi/gdbserver
[armeabi] Gdbsetup : libs/armeabi/gdb.setup
[armeabi] Install : libsfml-activity.so => libs/armeabi/libsfml-activity.
so
[armeabi] Compile++ thumb: sfml-example <= main.cpp
jni/main.cpp:1:27: fatal error: SFML/System.hpp: No such file or directory
#include <SFML/System.hpp>
^
compilation terminated.
make.exe: *** [obj/local/armeabi/objs-debug/sfml-example/main.o] Error 1
C:\Programacion\C++\Android\SFML-ios_and_android\src\SFML\Window\JoystickManager
.cpp: In member function 'void sf::priv::JoystickManager::update()':
C:\Programacion\C++\Android\SFML-ios_and_android\src\SFML\Window\JoystickManager
.cpp:94:57: error: 'class sf::priv::JoystickImpl' has no member named 'getIdenti
fication'
item.identification = item.joystick.getIdentification();
^
make[2]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/JoystickManager.cpp.o]
Error 1
make[1]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/all] Error 2
make: *** [all] Error 2
C:\Programacion\C++\Android\SFML-ios_and_android\examples\android>ndk-build
Android NDK: WARNING: APP_PLATFORM android-17 is larger than android:minSdkVersi
on 9 in ./AndroidManifest.xml
Android NDK: ERROR:C:/Programacion/C++/Android/android-ndk/sources/sfml/Android.
mk:sfml-system: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that C:/Programacion/C++/Android/android-ndk/sources/sfml/lib
/armeabi/libsfml-system.so exists or that its path is correct
C:/Programacion/C++/Android/android-ndk/build/core/prebuilt-library.mk:45: *** A
ndroid NDK: Aborting . Stop.
But... why do you use WGL code instead of SFML?
I'm just curious... why do you need to load textures from a separate thread? Unless you load 1000s of textures from your harddisk, it should not even be noticeable unless you have a really crappy harddisk/controller/...
On the other hand, what you can do is load the images in a separate thread and load the images onto the GPU as textures in the main thread. Because of DMA you should not get any performance decrease from doing so, even when comparing to loading from a separate thread.
I really can't stand people who give bad advice such as "using threads makes everything faster" or "use threads so that your UI doesn't freeze when doing something that takes a long time", those people obviously don't have enough experience to understand what they say does not apply universally and hence they shouldn't give such advice until they ask about the circumstances.
OpenGL was not made to take advantage of multiple threads, let alone SMP processors. It might have changed with recent OpenGL, but drivers tend to queue everything and dispatch from a single thread whenever they can. There is only 1 physical PCIe connection per GPU and hence only 1 bus that everything can go over. Trying really hard to do perform 2 OpenGL operations truly simultaneously is just wasted effort.
-- Main Thread:
MainContext: GL_NO_ERROR
LoaderContext: GL_NO_ERROR
ShareList: GL_NO_ERROR
-- Thread:
MakeCurrent Loader: GL_NO_ERROR
---- Thread m_pPictureSel->LoadPictures():
------ LoadTexture() #1:
Gen Textures: GL_NO_ERROR
BindTexture: GL_NO_ERROR
gluBuild2DMipmaps: GL_NO_ERROR
TextParameter MIN_FILTER: GL_NO_ERROR
TextParameter MAG_FILTER: GL_NO_ERROR
TextParameter WRAP_S: GL_NO_ERROR
TextParameter WRAP_T: GL_NO_ERROR
------ LoadTexture() #2:
Gen Textures: GL_NO_ERROR
BindTexture: GL_NO_ERROR
gluBuild2DMipmaps: GL_NO_ERROR
TextParameter MIN_FILTER: GL_NO_ERROR
TextParameter MAG_FILTER: GL_NO_ERROR
TextParameter WRAP_S: GL_NO_ERROR
TextParameter WRAP_T: GL_NO_ERROR
------ LoadTexture() #3:
Gen Textures: GL_NO_ERROR
BindTexture: GL_NO_ERROR
gluBuild2DMipmaps: GL_NO_ERROR
TextParameter MIN_FILTER: GL_NO_ERROR
TextParameter MAG_FILTER: GL_NO_ERROR
TextParameter WRAP_S: GL_NO_ERROR
TextParameter WRAP_T: GL_NO_ERROR
------ LoadTexture() #4:
Gen Textures: GL_NO_ERROR
BindTexture: GL_NO_ERROR
gluBuild2DMipmaps: GL_NO_ERROR
TextParameter MIN_FILTER: GL_NO_ERROR
TextParameter MAG_FILTER: GL_NO_ERROR
TextParameter WRAP_S: GL_NO_ERROR
TextParameter WRAP_T: GL_NO_ERROR
------ LoadTexture() #5:
Gen Textures: GL_NO_ERROR
BindTexture: GL_NO_ERROR
gluBuild2DMipmaps: GL_NO_ERROR
TextParameter MIN_FILTER: GL_NO_ERROR
TextParameter MAG_FILTER: GL_NO_ERROR
TextParameter WRAP_S: GL_NO_ERROR
TextParameter WRAP_T: GL_NO_ERROR
------ LoadTexture() #6:
Gen Textures: GL_NO_ERROR
BindTexture: GL_NO_ERROR
gluBuild2DMipmaps: GL_NO_ERROR
TextParameter MIN_FILTER: GL_NO_ERROR
TextParameter MAG_FILTER: GL_NO_ERROR
TextParameter WRAP_S: GL_NO_ERROR
TextParameter WRAP_T: GL_NO_ERROR
-- Thread:
MakeCurrent NULL: GL_INVALID_OPERATION
Delete Loader Context: GL_INVALID_OPERATION
void LoadPictures(CPictureSelector *pPictureSel)
{
wglMakeCurrent(hdc, loaderContext);
PrintLastCallResult("MakeCurrent Loader: ");
pPictureSel->LoadPictures();
wglMakeCurrent(NULL, NULL);
PrintLastCallResult("MakeCurrent NULL: ");
wglDeleteContext(loaderContext);
PrintLastCallResult("Delete Context: ");
}
MainContext: GL_NO_ERROR
LoaderContext: GL_NO_ERROR
ShareList: GL_NO_ERROR
MakeCurrent Loader: GL_NO_ERROR
MakeCurrent NULL: GL_INVALID_OPERATION
Delete Context: GL_INVALID_OPERATION