Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Android and iOS ports available for testing  (Read 337946 times)

0 Members and 5 Guests are viewing this topic.

BlueCobold

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: Android and iOS ports available for testing
« Reply #345 on: April 05, 2015, 07:25:24 pm »
Audio on mobile devices is not included in the 2.2 download version. It is available in the master-version from github though. Although I'm not entirely sure about this on Android, on iOS however libsndfile was not allowed to be linked statically which resulted in the iOS version to be without any sound support at all.
« Last Edit: April 05, 2015, 07:27:53 pm by BlueCobold »

Zax37

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Android and iOS ports available for testing
« Reply #346 on: April 05, 2015, 08:52:16 pm »
Well, I built everything with the official instructions, from the newest master version and used the android example as a base. There was sound file and music with that example, none of them worked.

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Android and iOS ports available for testing
« Reply #347 on: April 06, 2015, 03:49:19 pm »
Any more details you can provide? Like your NDK revision, your target NDK/API level, target SDK level, etc.?

Zax37

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Android and iOS ports available for testing
« Reply #348 on: April 12, 2015, 12:42:23 am »
Thanks for Your responses. I'm using newest NDK avaible(r10d), 4.4.2(19) as a target, 9 as min(I guess that's standard config from example), nothing fancy. Also - sometimes the SFML window just don't get open - app stucks on the default theme background; sometimes it even crashes whole android. Any ideas?

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Android and iOS ports available for testing
« Reply #349 on: April 12, 2015, 08:32:29 am »
Not right now. What Android version does it crash on? Any logcat output you can share?

Zax37

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Android and iOS ports available for testing
« Reply #350 on: April 12, 2015, 09:38:16 am »
Yeah, well it shows some "Failed to activate window's context" and "called unimplemented OpenGL ES API"(even when it works just fine). It usually crashes when i close my app and try to run it again in short period of time. And sound is still not working ;p

I'm using my device(Samsung Galaxy SIII with Android 4.1.2(16) directly by usb cable. Even tried downgrading target level to 16, but I guess it doesn't even make any sense to do so.

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Android and iOS ports available for testing
« Reply #351 on: April 12, 2015, 09:46:03 am »
Which "unimplemented OpenGL ES API"? Any more details? The context errors/warnings are fine.

Zax37

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Android and iOS ports available for testing
« Reply #352 on: April 12, 2015, 10:05:02 am »
How can I check it? It doesn't say in the LogCat.

BTW I'm getting "Fatal signal 11 (SIGSEGV) at 0x00000028 (code=1), thread 26308" when I close the app.

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Android and iOS ports available for testing
« Reply #353 on: April 12, 2015, 10:30:24 am »
Those might all be related in some way, we're still talking about SFML's example app?

Zax37

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Android and iOS ports available for testing
« Reply #354 on: April 12, 2015, 10:44:21 am »
Yep, nothing changed over here.

AlexxanderX

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • AlexanderX
Re: Android and iOS ports available for testing
« Reply #355 on: May 11, 2015, 07:29:59 pm »
Now I'm getting beside the sigsegv these errors:
Quote
05-11 20:26:11.019    4777-4792/com.example.sfml E/Adreno200-ES20﹕ <get_simple_queries:1021>: GL_INVALID_ENUM
05-11 20:26:11.019    4777-4792/com.example.sfml E/Adreno200-ES20﹕ <get_simple_queries:1021>: GL_INVALID_ENUM
05-11 20:26:11.029    4777-4792/com.example.sfml E/Adreno200-ES20﹕ <get_simple_queries:1021>: GL_INVALID_ENUM
05-11 20:26:11.029    4777-4792/com.example.sfml E/Adreno200-ES20﹕ <get_simple_queries:1021>: GL_INVALID_ENUM
05-11 20:26:11.039    4777-4792/com.example.sfml E/Adreno200-ES20﹕ <get_simple_queries:1021>: GL_INVALID_ENUM
05-11 20:26:11.039    4777-4792/com.example.sfml I/sfml-error﹕ Failed to activate the window's context
05-11 20:26:11.039    4777-4792/com.example.sfml I/sfml-error﹕ Failed to activate the window's context
05-11 20:26:11.079    4777-4792/com.example.sfml E/Adreno200-ES20﹕ <get_simple_queries:1021>: GL_INVALID_ENUM
05-11 20:26:11.079    4777-4792/com.example.sfml E/Adreno200-ES20﹕ <get_simple_queries:1021>: GL_INVALID_ENUM
05-11 20:26:11.089    4777-4792/com.example.sfml E/Adreno200-ES11﹕ <qglDrvAPI_glTexImage2D:1913>: GL_INVALID_ENUM
05-11 20:26:11.089    4777-4792/com.example.sfml E/Adreno200-ES11﹕ <qglDrvAPI_glTexSubImage2D:2055>: GL_INVALID_ENUM
05-11 20:26:11.109    4777-4792/com.example.sfml E/ExtendedExtractor﹕ Failed to open MM_PARSER_LIB, dlerror = Cannot load library: reloc_library[1314]:   129 cannot locate '_ZN7android11MediaSource13getBufferInfoERNS_2spINS_7IMemoryEEEPj'...
05-11 20:26:11.109    4777-4792/com.example.sfml E/ExtendedExtractor﹕ Failed to open MM_PARSER_LITE_LIB, dlerror = Cannot load library: load_library[1120]: Library 'libmmparser_lite.so' not found
05-11 20:26:11.119    4777-4792/com.example.sfml I/sfml-error﹕ Failed to open sound file "canary.wav" (format not supported)
( errors are from the example, only changed the android-9 to android-15( and also in the manifest) and targetSdkVersion to 22.)
Here you can find my blog and tutorials about SFML - http://alexanderx.net/ (died...) - http://web.archive.org/web/20160110002847/http://alexanderx.net/

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Android and iOS ports available for testing
« Reply #356 on: May 11, 2015, 07:46:59 pm »
Haven't had any time to build or test the library lately, hopefully will be able to do so later this week (along with finally trying to fix some of the open issues). Which version were you using? Latest master? If not (or even if so), which revision/commit?

AlexxanderX

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • AlexanderX
Re: Android and iOS ports available for testing
« Reply #357 on: May 11, 2015, 08:00:58 pm »
Lastest master, 80214d1cb916ae5f49c63ade4c167369faab9b9e .
Here you can find my blog and tutorials about SFML - http://alexanderx.net/ (died...) - http://web.archive.org/web/20160110002847/http://alexanderx.net/

dontworry

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Android and iOS ports available for testing
« Reply #358 on: May 12, 2015, 04:29:28 am »
I'm also getting this error trying to run the example on a virtual android device.

05-11 22:12:43.950: E/libEGL(863): called unimplemented OpenGL ES API

I'm running archlinux and have the 32-bit and the regular libEGL library. The app doesn't crash and it seems to work fine except that the image is a white square.

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Android and iOS ports available for testing
« Reply #359 on: May 12, 2015, 10:03:26 am »
So just tried on my Nexus 5. Except being unable to load the canary.wav file, the app runs fine. Maybe it has to do with Android 4.x...

Could you try applying the following commit, then recompiling everything and trying again?

https://github.com/fizixx/SFML/commit/39e8d5fd611c91674e0bf2219153676e2f0dc730

This might  fix some of the sigsegs, but probably won't change anything regarding the EGL error.

 

anything