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

Author Topic: Cmake generation for Android always link(and ignore) OpenAL.frameowork on OSX  (Read 1997 times)

0 Members and 1 Guest are viewing this topic.

PixelPicoSean

  • Newbie
  • *
  • Posts: 3
    • View Profile
I just cloned from official repo and following android configuration guide, but it always showing this warning line and linking to sfml-audio fails while building.

Code: [Select]
WARNING: Target "sfml-audio" requests linking to directory "/Library/Frameworks/OpenAL.framework".  Targets may link only to libraries.  CMake is dropping the item.
I am not familiar with CMake, plz help.

Regards,
Sean

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Sounds like a bug in the script. As the warning suggests, it's okay to ignore this for now.

Edit:

Checked the script and this should be working fine.

Could you open the file src/SFML/Audio/CMakeLists.txt, go to the last line and append the following line?

message("extlibs: ${SFML_OS_IOS}")

Then run CMake again and tell me what's printed in the "extlibs: ..." line.
« Last Edit: December 22, 2015, 09:07:12 am by Mario »

PixelPicoSean

  • Newbie
  • *
  • Posts: 3
    • View Profile
@Mario

It shows "extlibs:" with nothing when I append the line you suggested, but shows "1" if I change that line to:
message("extlibs: ${SFML_OS_ANDROID}")

I guess that's what you need since I want to build for Android instead of iOS :D