Forum > macOS / Mac OS X
Compiling an application using Lua
Laksen:
Try to look at the SDL units. For Darwin they have to use a linklib directive, it could be that you have the same problem?
cybermonkey342:
Yeah, that's my other problem: I can't compile SDL applications, yet ... I tried different things but nothing was successful.
skalogryz:
what FPC version are you using?
what's the error with SDL?
cybermonkey342:
FPC 2.4.0
I installed now SDL from source - at last Mac OS finds SDL now (which wasn't true with the framework), but:
--- Quote ---Linking sdltest
ld: library not found for -lX11
An error occurred while linking
Error: Error while linking
Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/local/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
--- End quote ---
Why in good heavens does SDL need X11 on a Mac??
To be frankly I want to compile my EGSL interpreter which can be found on: http://egsl.wikidot.com (which needs SDL AND Lua)
Leledumbo:
--- Quote ---Why in good heavens does SDL need X11 on a Mac??
--- End quote ---
Ask SDL developers :D
Perhaps because SDL was written before Carbon and Cocoa appear (CMIIW), and the developers thought that X11 will stay as Mac's windowing system.
Navigation
[0] Message Index
[#] Next page
[*] Previous page