I build the Mac SDL.framework for 3 architectures: ppc, x86, x86_64.
ppc and x86 were build for 10.4 and greater, x86_64 built for 10.6 and
greater. I made changes to the stock Xcode project distributed with
SDL 1.2.15 using Xcode 3.2 .
My project is here if you want to take a look:
One thing I had to do was change the framework ‘Installation
Directory’ to ‘@executable_path/…/Frameworks’
Hope this helps,
DOn Tue, Feb 28, 2012 at 6:35 AM, Bl0ckeduser wrote:
Thanks for suggesting fink, I installed all of the SDl related packages and ran your command with my file: ~/Desktop/lesson01 aaron$ gcc $(sdl-config --libs --cflags) lesson01.cpp
However I got this output:
/usr/bin/ld: Undefined symbols:
___gxx_personality_v0
collect2: ld returned 1 exit status
**
Thanks for suggesting fink, I installed all of the SDl related packages
and ran your command with my file: ~/Desktop/lesson01 aaron$ gcc
$(sdl-config --libs --cflags) lesson01.cpp
However I got this output:
/usr/bin/ld: Undefined symbols:
___gxx_personality_v0
collect2: ld returned 1 exit status
Which makes no sense to me at all. [image: Confused]
I compiled sdl on ubuntu (linux) using terminal. I navigate to my
project directory and issue the following command:
g++ myprogram.cpp -lSDL
BTW, g++ myprogram.cpp sdl-config --cflagssdl-config --libs is the
recommended portable way of compiling from the command line. In certain
cases, writing only -lSDL won’t do. (For example, you might have to link
in other libraries; indeed, I believe on some Linux variants it is
necessary to link libpthread).