-
Notifications
You must be signed in to change notification settings - Fork 147
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
[SDL2] Xcode does not add optional frameworks to dmg #638
Comments
Here are the build.xcconfig files I use for the satellite libraries. SDL_image 2.0:
SDL_image 3.0:
SDL_mixer 2.0:
SDL_mixer 3.0:
|
Is this build procedure correct?
|
I think you can skip step 1, if you've already downloaded the code to the external directory, Xcode will see the dependencies and build them. |
You're right. |
Yep, that's fine. |
Is the Xcode project of SDL3_image up-to-date or does it need other/extra arguments? Running it with the arguments:
fails catastrophically like this. (After copying |
I'm not seeing the build error in that massive spew? |
That's the thing. I don't know what's going wrong :) |
Okay, this is necessary to build the projects, and I have a couple more fixes coming: |
Okay, I pushed avif build fixes, try now? |
Yes! It successfully builds! Great job! |
How do I build only the core SDL3_image dmg archive without the external modules? I'd like to build a lean SDL3_image.dmg to test the CMake scripts with quick feedback. |
You do need SDL, but the other external modules are optional. |
FYI, I had the SDL_mixer build configs swapped, I've updated them above. |
Thanks, I've updated them. Building SDL3_mixer on ci, I see these link errors:
https://github.com/madebr/SDL_mixer/actions/runs/11243964073/job/31261052550 |
Can you also look at this SDL_ttf xcode error?
https://github.com/madebr/SDL_ttf/actions/runs/11247126037/job/31270084242#step:8:2195 |
This looks like the native MIDI stuff is being enabled on iOS, which shouldn't happen because of the |
Fixed! |
Thanks! Everything's building. Is that expected? |
That's not expected, and I'm seeing that here as well. Digging in... |
Fixed! |
I've been told the ogg xcframework also needs to be part of the dmg because opus depends on it.
SDL3_Mixer's xcode project contains |
That's correct.
Nope, that's unintentional. I can add them. |
Also:
In CMake, when loading the dependencies using |
Yes, the Xcode project handles it differently. In that case we don't dynamically load them, instead we link them as a weak framework, which allows it to be optional. |
Can you have a look at the SDL_mixer project?
About the logs:
|
I will look at the SDL_mixer project next week. We'll have the next SDL prerelease on November 1, and SDL_ttf won't be ready by then, so we're fine. |
Okay, I double checked and the FLAC and MP3 support are using the mini-versions included in the codecs directory, so we're good to go here. |
This is the current situation:
vorbis support is provided by stb_vorbis, mp3 by minimp3.h and FLAC by dr_flac. Isn't ogg needed as a dependency for opus? |
Yes, it is. Note that opus framework here in SDL_mixer(s Xcode is a combination of opus and opusfile, possibly for simplicity as decided by @slouken. Maybe we can merge libogg into that for further simplicity? |
The
Create DMG
target of SDL2_mixer's Xcode creates a dmg without the optional gme/ogg/opus/wavpack/xmp frameworks.The dmg of official releases weights around 1.86MB,
whereas a dmg created by xcode weight only 274kB.
SDL3_mixer might have the same issue.
This issue applies to SDL_image as well.
The text was updated successfully, but these errors were encountered: