Skip to content
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

SDL_image does not compile as a static library on macOS (easy fix included) #129

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

SDLBugzilla commented Feb 11, 2021

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: unspecified
Reported for operating system, platform: Mac OS X (All), x86_64

Comments on the original bug report:

On 2018-05-08 12:51:55 +0000, Pauli Jokela wrote:

Created attachment 3242
Screenshot of IMG_svg.c not being included with the Static Library target.

The Xcode project for SDL_image does NOT include IMG_svg.c with static library builds, but DOES include every other file. This is very likely done by accident, and nobody’s noticed it, until now.

The fix is to simply toggle the IMG_svg.c file to be a part of the Static Library target, otherwise it's simply not included with the binary, resulting in compilation errors when including/calling the library from another project.

Attached is a screenshot of the issue (box not ticked).

More information is also available here: https://discourse.libsdl.org/t/cant-build-sdl-image-after-svg-support-was-added/24377

On 2018-05-09 03:45:24 +0000, Sam Lantinga wrote:

Fixed, thanks!
https://hg.libsdl.org/SDL_image/rev/887b1e03cad1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant