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

Author Topic: Would like to port windows game to iOS  (Read 2005 times)

0 Members and 1 Guest are viewing this topic.

ng90

  • Newbie
  • *
  • Posts: 4
    • View Profile
Would like to port windows game to iOS
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Would like to port windows game to iOS
« Reply #1 on: November 03, 2014, 07:55:15 am »
Laurent Gomila - SFML developer

ng90

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Would like to port windows game to iOS
« Reply #2 on: November 03, 2014, 08:41:43 pm »
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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Would like to port windows game to iOS
« Reply #3 on: November 03, 2014, 08:43:13 pm »
The next step is to open the XCode project and compile SFML.
Laurent Gomila - SFML developer

ng90

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Would like to port windows game to iOS
« Reply #4 on: November 06, 2014, 08:39:14 am »
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'

ng90

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Would like to port windows game to iOS
« Reply #5 on: November 09, 2014, 07:43:12 pm »
bump

phoenix4sfml

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Would like to port windows game to iOS
« Reply #6 on: January 18, 2016, 02:28:37 pm »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Would like to port windows game to iOS
« Reply #7 on: January 18, 2016, 02:55:55 pm »
Quote
@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.
Laurent Gomila - SFML developer