Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
General
»
Feature requests
»
find_package(OpenAL) failing with target armeabi and host OSX
Print
Pages: [
1
]
Author
Topic: find_package(OpenAL) failing with target armeabi and host OSX (Read 6320 times)
0 Members and 2 Guests are viewing this topic.
qinqon
Newbie
Posts: 4
find_package(OpenAL) failing with target armeabi and host OSX
«
on:
April 11, 2016, 10:32:35 am »
It's preferring always the OSX OpenAL Framework version, I have to force OPENAL_LIBRARY.
I have open an issue and do a pull
https://github.com/SFML/SFML/issues/1080#issuecomment-208066290
Logged
Hiura
SFML Team
Hero Member
Posts: 4321
Re: find_package(OpenAL) failing with target armeabi and host OSX
«
Reply #1 on:
April 13, 2016, 10:17:56 am »
Please next time include more information about the problem, such as including the error/warning messages you get.
I got this warning when generating the Makefile:
WARNING: Target "sfml-audio" requests linking to directory "/Library/Frameworks/OpenAL.framework". Targets may link only to libraries. CMake is dropping the item.
because I have installed SFML for OS X beforehand. Building SFML then results in tone of undef ref to OpenAL functions.
Is that what you are referring to?
Logged
SFML / OS X developer
qinqon
Newbie
Posts: 4
Re: find_package(OpenAL) failing with target armeabi and host OSX
«
Reply #2 on:
April 15, 2016, 01:38:39 pm »
Yest, this is it.
I did have to change the CMakeLists.txt and do the following:
https://github.com/SFML/SFML/pull/1081/commits/178a5b1ac34686e90f26095616d64338e8bf53a3
It forces OPENAL_LIBRARY:
set(OPENAL_LIBRARY ${CMAKE_LIBRARY_PATH})
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11030
AW: find_package(OpenAL) failing with target armeabi and host OSX
«
Reply #3 on:
April 15, 2016, 04:00:37 pm »
We know what you did, we just don't know why it was required.
What errors did you get?
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Hiura
SFML Team
Hero Member
Posts: 4321
Re: find_package(OpenAL) failing with target armeabi and host OSX
«
Reply #4 on:
April 15, 2016, 05:31:40 pm »
Moreover, this patch doesn't work for me, and shouldn't for you either actually.
CMAKE_LIBRARY_PATH
cannot be assigned to
OPENAL_LIBRARY
like that.
Logged
SFML / OS X developer
qinqon
Newbie
Posts: 4
Re: find_package(OpenAL) failing with target armeabi and host OSX
«
Reply #5 on:
April 17, 2016, 09:12:57 am »
After checking again, As Hiura says, the patch doesn't work, It was something that I did at CMake distribution FindOpenAL.cmake, but I have lose the change.
What could be a solution for this ?
BR
Quique
Logged
Hiura
SFML Team
Hero Member
Posts: 4321
Re: find_package(OpenAL) failing with target armeabi and host OSX
«
Reply #6 on:
April 17, 2016, 11:03:20 am »
I've never used
the hints
and I'm not sure exactly how they can be used, but that might be a lead.
Logged
SFML / OS X developer
qinqon
Newbie
Posts: 4
Re: find_package(OpenAL) failing with target armeabi and host OSX
«
Reply #7 on:
April 18, 2016, 10:55:05 am »
Ok, I will try setting OPENAL environment variable.
Thanks.
Logged
Print
Pages: [
1
]
SFML community forums
»
General
»
Feature requests
»
find_package(OpenAL) failing with target armeabi and host OSX
anything