We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2208 - SDL_image 2.0 fails to build from source on Mac OS X 10.9
Summary: SDL_image 2.0 fails to build from source on Mac OS X 10.9
Status: RESOLVED INVALID
Alias: None
Product: SDL_image
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: x86_64 Mac OS X (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-03 22:52 UTC by maserfish
Modified: 2013-11-11 16:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description maserfish 2013-11-03 22:52:16 UTC
https://gist.github.com/maserfish/7295753

First tried to build with homebrew, which failed.
(see https://github.com/mxcl/homebrew/issues/23930)

Then tried to build directly from source, which also failed.
Comment 1 Sam Lantinga 2013-11-11 01:26:13 UTC
It looks like there's something wrong with your SDL 2.0 install.
Does this file have the missing symboles?
/usr/local/Attic/SDL/2.0/lib/libSDL2.dylib
Comment 2 maserfish 2013-11-11 16:28:47 UTC
The problem was that I had a previous install in /usr/local/Attic, but I had forgotten to delete one of my symlinks to it in /usr/local/lib.

perigee:/usr/local/lib$ ls -l | grep SDL
libSDL2-2.0.0.dylib -> ../Cellar/sdl2/2.0.0/lib/libSDL2-2.0.0.dylib
libSDL2.a           -> ../Cellar/sdl2/2.0.0/lib/libSDL2.a
libSDL2.dylib       -> ../Cellar/sdl2/2.0.0/lib/libSDL2.dylib
libSDL2.la          -> ../Attic/SDL/2.0/lib/libSDL2.la
libSDL2_test.a      -> ../Cellar/sdl2/2.0.0/lib/libSDL2_test.a
libSDL2main.a       -> ../Cellar/sdl2/2.0.0/lib/libSDL2main.a

I deleted the symlink that pointed to the Attic version, and since there was no corresponding .la file in the Cellar install, I was done.

After that I tried installing again with:
brew install sdl2_image

and everything worked as expected.