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

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

0 Members and 2 Guests are viewing this topic.

Sonkun

  • Full Member
  • ***
  • Posts: 241
    • View Profile
Re: Android and iOS ports available for testing
« Reply #180 on: April 29, 2014, 07:49:54 pm »
I forgot to mention I also had to move the clear/draw/display calls to the top of the main loop. Probably something goes wrong when calling them after the window has closed.
Interested in using SFML with Python ? Try out its Python binding!

cloudncali

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • http://jakesmakes.tumblr.com/
Re: Android and iOS ports available for testing
« Reply #181 on: April 30, 2014, 06:52:03 am »
I am currently getting compile errors on the Rpi with the latest SFML build

http://pastebin.com/Be4jJjUs


Sonkun

  • Full Member
  • ***
  • Posts: 241
    • View Profile
Re: Android and iOS ports available for testing
« Reply #182 on: May 03, 2014, 06:26:08 pm »
I am currently getting compile errors on the Rpi with the latest SFML build

http://pastebin.com/Be4jJjUs
Thanks, I fixed it locally with another bug. I'll push everything shortly.

@nero81af: I don't understand the changes you made in the EGL implementation. Why would you need that ? As you said, SFML currently only supports version 1.x of OpenGL ES so it shouldn't be necessary.. unless you can't get Ogre working with SFML without it ?
Interested in using SFML with Python ? Try out its Python binding!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Android and iOS ports available for testing
« Reply #183 on: May 03, 2014, 06:37:15 pm »
Quote
Thanks, I fixed it locally with another bug
Make sure you're in sync with this commit in another branch.
Laurent Gomila - SFML developer

Sonkun

  • Full Member
  • ***
  • Posts: 241
    • View Profile
Re: Android and iOS ports available for testing
« Reply #184 on: May 06, 2014, 02:44:43 pm »
Make sure you're in sync with this commit in another branch.
Don't worry, I am ;)

Sorry for those who are waiting for the changes I announced. I'm delayed because since I rewrote the Android CMake toolchain I can't get libsfml-activity.so to work >.< The audio module is fixed (I managed to compile OpenAL-Soft for Android properly) but I want to recompile libopenal.so again once the toolchain is fixed. There are also small fixes (Raspberry Pi compilation, EGL display is equal to EGL_NO_DISPLAY, etc.) on top of that and I don't want to push before everything works out of the box.
Interested in using SFML with Python ? Try out its Python binding!

dk123

  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: Android and iOS ports available for testing
« Reply #185 on: May 06, 2014, 03:34:48 pm »
I just want to ask about the feasibility of waiting for libsndfile license changes for iOS.

I remember someone mentioning this in a previous post, but here's the post 2 years ago from Stack Overflow where the person who calls himself the main maintainer of libsndfile states:

Quote
Unfortunately libsndfile has lots of copyright holders and I simply don't have the patience to track them all down and ask them if its ok

https://stackoverflow.com/questions/4939268/can-the-libsndfile-library-be-used-on-the-iphone-ios

I'm just wondering if looking into other c++ audio libraries may be more practical.
Here's one I've found while googling that seems to support OSX and iOS (I'm sure there are also others):

https://github.com/sbooth/SFBAudioEngine


Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Android and iOS ports available for testing
« Reply #186 on: May 06, 2014, 04:05:04 pm »
E-mail from Erik, 8 months ago:

Quote
Hi Laurent,

Dealing with this issue is high on my todo list.

I intend to email all the people who have significant contributions
to libsndfile and ask them if they are OK with a modification to
libsndfile's license.

That modification would be to change libsndfile to LGPL with a
static linking exception on iOS and any other OS which does not
provide support for dynamic linking.

This change keeps the spirit of the LGPL and fixes the issue with
iOS.

Cheers,
Erik

Nothing else since then.

libsndfile is not an audio player. It's just an audio file reader/writer. And no other library does that.

If I redesigned the audio module so that it is more abstract, I could plug other file backends, and easily provide support for at least OGG, WAV and Apple's audio format(s) on iOS.
« Last Edit: May 06, 2014, 04:09:06 pm by Laurent »
Laurent Gomila - SFML developer

Cranberry

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Android and iOS ports available for testing
« Reply #187 on: May 07, 2014, 09:17:43 pm »
Would you say that this project has already reached a state where I can "easily" port my current game project to Android or are there still to many bugs to publish a real game in the Play Store?

dk123

  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: Android and iOS ports available for testing
« Reply #188 on: May 08, 2014, 03:30:15 am »
E-mail from Erik, 8 months ago:

Quote
Hi Laurent,

Dealing with this issue is high on my todo list.

I intend to email all the people who have significant contributions
to libsndfile and ask them if they are OK with a modification to
libsndfile's license.

That modification would be to change libsndfile to LGPL with a
static linking exception on iOS and any other OS which does not
provide support for dynamic linking.

This change keeps the spirit of the LGPL and fixes the issue with
iOS.

Cheers,
Erik

Nothing else since then.

libsndfile is not an audio player. It's just an audio file reader/writer. And no other library does that.

If I redesigned the audio module so that it is more abstract, I could plug other file backends, and easily provide support for at least OGG, WAV and Apple's audio format(s) on iOS.

Thanks for quoting the email, it's good to see the reply.

This is just my person opinion, but if libsndfile's license change is something that still doesn't have an estimated date, it might be more worthwhile to, as you've said, first redesign the audio module to allow users to play at least OGG, WAV, and Apple's audio format(s) on iOS.

I feel users' first priority is in actually getting audio to play - most games are nothing without sound, and if the price to pay is some abstraction, I feel that most would comply than go without an entire audio module which in many cases prevents development completely.

If some time afterwards libsndfile does make the license change, then we could perhaps revert back to the original code at that point and remove the abstraction layer.

All in all, I feel this is more a time issue - if libsndfile's license change is unpredictable then I sense that abstracting the audio module to provide users with basic sound play, and reverting the code after libsndfile's license change (whenever that may be) may be a more attractive stance to take.

It may perhaps be worthwhile to send Erik another email to ask if there's been process over the last 8 months.



eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11038
    • View Profile
    • development blog
    • Email
AW: Re: Android and iOS ports available for testing
« Reply #189 on: May 08, 2014, 07:47:38 am »
It may perhaps be worthwhile to send Erik another email to ask if there's been process over the last 8 months.
Already happened.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Gammenon

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Android and iOS ports available for testing
« Reply #190 on: May 08, 2014, 07:24:49 pm »
My vote for that change to support WAV, OGG and iOS's formats getting rid of libsnd

nottrulyevil

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Android and iOS ports available for testing
« Reply #191 on: May 11, 2014, 10:10:20 pm »
Should a new sub-forum be opened for these ports?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Android and iOS ports available for testing
« Reply #192 on: May 11, 2014, 11:12:46 pm »
Quote
Should a new sub-forum be opened for these ports?
Why? Is there a Linux, Windows or Mac OS X sub-forum? ???
Laurent Gomila - SFML developer

math07

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Android and iOS ports available for testing
« Reply #193 on: May 15, 2014, 09:40:19 pm »
I've found a bug on Android with texture repeating (using the example) :


The sprite should be exactly 4 SFML logos

Here is the code :
(click to show/hide)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Android and iOS ports available for testing
« Reply #194 on: May 15, 2014, 10:51:05 pm »
This is not a bug, only a limitation of your GPU, as stated in the doc:

Quote
Warning: on very old graphics cards, white pixels may appear
when the texture is repeated. With such cards, repeat mode
can be used reliably only if the texture has power-of-two
dimensions (such as 256x128).

Admitedly, it's not a "very old graphics card", and pixels are not white. But anyway, your platform (don't know if it's your GPU or the GL ES 1.1 spec) doesn't support non-power-of-two texture sizes. So you can't use texture repeating on such textures.
Laurent Gomila - SFML developer