SFML community forums
Help => General => Topic started by: ng90 on November 02, 2014, 10:59:37 pm
-
I have built a game for windows using sfml, however I am having a hard time grasping how to build SFML for iOS so I can port it. I have read about cmake xcode generator and using the master repository, however I am still lost on how to approach it. If someone could provide a step by step guide on how I can build SFML for iOS it be greatly appreciated. I am quite the newbie, as a first year CS student lol
-
Have you read this?
http://en.sfml-dev.org/forums/index.php?topic=13716.0
-
I have read that, however I am still having a tough time grasping the concept, using the cmake gui I build sfml from master repo and create a Xcode generator using the iOS Boolean set to true. However I don't know the next step
-
The next step is to open the XCode project and compile SFML.
-
I attempt to compile the code, however I get an error
In GIContext.cpp I get 5 different "parse issue"
Each saying that "Unknown type name 'ContextType'
-
bump
-
I attempt to compile the code, however I get an error
In GIContext.cpp I get 5 different "parse issue"
Each saying that "Unknown type name 'ContextType'
I've run into this also. Have you figured out the problem?
Looking at SFML/sfml-window/GlContext.cpp it looks like SFML_OPENGL_ES needs to be defined in order for the SFML_SYSTEM_IOS conditional code to be reached and ContextType to get defined (for iOS). I went back to my cmake-gui window under the SFML options and enabled "SFML_OPENGL_ES". Pressed "Configure" then "Generate". After that, Xcode was able to successfully build every "sfml-" target except for sfml-audio. In the November 29, 2013 post that Laurent referenced, he says: "There's no audio module on iOS". Apparently that's still the case.
Hope this helps.
@Laurent, any update on the audio module for iOS? Back when you posted (back in 2013), you'd said you were waiting for libsndfile to add a license exception for iOS.
-
@Laurent, any update on the audio module for iOS? Back when you posted (back in 2013), you'd said you were waiting for libsndfile to add a license exception for iOS.
sfml-audio works fine now on iOS.