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

Author Topic: #include bug in ALCheck.hpp for iOS  (Read 6428 times)

0 Members and 1 Guest are viewing this topic.

KRMisha

  • Newbie
  • *
  • Posts: 15
    • View Profile
#include bug in ALCheck.hpp for iOS
« on: August 08, 2017, 12:43:15 am »
I believe there is a problem with Audio/ALCheck.hpp when compiling the libs for iOS after building with CMake. Xcode complains that there is no OpenAl/al.h that can be found, at line 33. The only way I got it to work was to rename as follows:
Code: [Select]
#ifdef SFML_SYSTEM_IOS
    #include <OpenAl/al.h>
    #include <OpenAl/alc.h>
#else
Renamed to:
Code: [Select]
#ifdef SFML_SYSTEM_IOS
    #include <AL/al.h>
    #include <AL/alc.h>
#else

By doing this, Xcode was able to successfully compile the libraries. I later used them in an iOS project and I can confirm that audio worked fine. This is only a change that affects ALCheck.hpp for iOS, as it is nested inside the #ifdef SFML_SYSTEM_IOS.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11045
    • View Profile
    • development blog
    • Email
Re: #include bug in ALCheck.hpp for iOS
« Reply #1 on: August 08, 2017, 01:09:23 am »
We currently have nobody maintaining iOS, so feel free to send a pull request our way.
Someone once reported on GitHub that the building of the audio module is disabled for iOS, is that true?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

KRMisha

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: #include bug in ALCheck.hpp for iOS
« Reply #2 on: August 08, 2017, 08:06:52 am »
Nope, it works perfectly fine with that fix. I'll do a pull request when I get around to it. I managed to compile SFML for iOS with the limited info on the forum, and I was thinking of how hard it must be for a newcomer with less experience to debug all the obsucre errors he might encounter, especially since Xcode is super finicky about which options it wants for it to compile. Would it also be useful if I added a wiki entry on how to make an Xcode project for iOS with SFML from scratch, detailed step by step? It would help give SFML visibility as it's a shame many don't realize it can work on iOS.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11045
    • View Profile
    • development blog
    • Email
Re: #include bug in ALCheck.hpp for iOS
« Reply #3 on: August 08, 2017, 08:46:18 am »
I was thinking of how hard it must be for a newcomer with less experience to debug all the obsucre errors he might encounter, especially since Xcode is super finicky about which options it wants for it to compile. Would it also be useful if I added a wiki entry on how to make an Xcode project for iOS with SFML from scratch, detailed step by step? It would help give SFML visibility as it's a shame many don't realize it can work on iOS.
Please do so! :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

KRMisha

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: #include bug in ALCheck.hpp for iOS
« Reply #4 on: August 08, 2017, 09:56:32 pm »
I was thinking of how hard it must be for a newcomer with less experience to debug all the obsucre errors he might encounter, especially since Xcode is super finicky about which options it wants for it to compile. Would it also be useful if I added a wiki entry on how to make an Xcode project for iOS with SFML from scratch, detailed step by step? It would help give SFML visibility as it's a shame many don't realize it can work on iOS.
Please do so! :)

Here it is: https://github.com/SFML/SFML/wiki/Tutorial%3A-SFML-for-iOS

 

anything