[fpc-pascal] Help needed with (JEDI-)SDL on Mac OS X with FPC 2.0.4 powerpc
Tom Verhoeff
T.Verhoeff at tue.nl
Fri Aug 17 17:17:26 CEST 2007
I try to compile a little demo program for SDL, but it still fails.
I use fpc 2.0.4 on powerpc Mac OS X with sdl 1.2.7 installed through fink
(also tried it with SDL installed in /Library/Frameworks).
I consulted the wiki <http://wiki.freepascal.org/index.php/FPC_and_SDL>
and <http://userpage.fu-berlin.de/~molski/fpsdl/>.
The problem is in the linking phase (compile and assemble are OK).
It gives me some warnings like
/usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding may result in
errors or different symbols being used
symbol _acosl used from dynamic library /usr/lib/libstdc++.6.dylib(single module
) not from earlier dynamic library /usr/lib/libSystem.B.dylib(ld64.o)
but what is worse it stops at
_HIPointConvert referenced from QuickTime expected to be defined in Carbon
demo02.pp(114,1) Error: Error while linking
Error: /usr/local/bin/ppcppc returned an error exitcode (normal if you did not s
pecify a source file to be compiled)
Any idea what I messed up?
This is what my command line looks like:
fpc -Fu/Users/wstomv/Download/JEDI-SDLv1.0/SDL/Pas -Fl/usr/X11R6/lib -XMSDL_main -k-L/sw/lib -k-lSDL -k-framework -kOpenGL -k-framework -kCocoa -Mdelphi demo02
The program demo2.pp contains
{$linklib gcc}
{$linklib SDLmain}
Uses SDL, crt;
This program was grabbed from <http://userpage.fu-berlin.de/~molski/fpsdl/>
and then adapted according to <http://wiki.freepascal.org/index.php/FPC_and_SDL>
Your advice would be greatly appreciated,
Tom
--
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE: +31 40 247 41 25 | Technische Universiteit Eindhoven
FAX: +31 40 247 54 04 | PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/ | The Netherlands
More information about the fpc-pascal
mailing list