Forum > macOS / Mac OS X

Compiling an application using Lua

<< < (2/4) > >>

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?

Yeah, that's my other problem: I can't compile SDL applications, yet ...  I tried different things but nothing was successful.

what FPC version are you using?
what's the error with SDL?

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: (which needs SDL AND Lua)


--- 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.


[0] Message Index

[#] Next page

[*] Previous page

Go to full version