New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find OpenAL correctly on iOS #1376
Conversation
Does this find the OpenAL framework in macOS SDK, or iOS SDK, or the headers provided by SFML? In my opinion the best would be to use the framework from iOS SDK but I don’t think current code with find_host_package() does this. And actually there is most likely no search to do, just using flag «-framework OpenAL » should use the correct headers (from iOS SDK). |
For me, it finds the openAL framework in the iOS sdk: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/OpenAL.framework if I just manually link the framework it doesn't seem to find any of the headers |
Ok.. then I really don’t understand the purpose of find_host_package() which is made (from what I understand) specifically to NOT find dependencies for the target system but for the host... Can check what I get with your branch on my PC in ~2 days if you want to wait. |
Sure, we can hold off for a bit. In the original PR for the toolchain it was mentioned that find_host_package was just taken from the android toolchain, so it may well be redundant... |
I think the intention is that find_package should only search in the relevant sdk, and find_host_package uses all the standard search paths? If that's correct, then it should probably be find_package for openAL, instead of find_host_package? |
This is also my understanding… but hey, good luck getting it to work with just find_package() :) |
I just tried using find_package() for openAL, and it seems to still work as expected. It's the other 3rd party libs which don't like find_package(), because they aren't installed in the sdk, as expected. Are you able to do a quick test using find_package for openAL and confirm it still works for you too? |
find_package() indeed works fine for OpenAL, which makes sense indeed… so it could be fixed (at least for this dependency). As a sidenote, it is however possible to wait for #1335 to be merged before this PR? #1335 assumes that all find_package() on iOS actually are find_host_package() so they were all factorized in sfml_find_package(). If we introduce an exception for OpenAL, it'll require significant changes in the already long-waiting PR :( |
See https://github.com/SFML/SFML/pull/1335/files#diff-6e3aba620b5d5027b0b256ccb9ad1063 |
No worries, this is a super simple fix, so let's just pop it on hold, and I'll update once #1335 is merged. |
Merged in f963faa |
Following on from #1263
This removes the conditional checks which were stopping openAL being found properly on iOS, and updates the relevant includes