Re: [tsc-devel] First try at porting to Mac, and a linker error

Quintus | Wed, 16 Sep 2015 21:45:17 UTC

Hi Tobbi,

Tobbi <…r@f…> writes:
> I am trying to get TSC running on Mac (without Wine), and have started
> porting it.

Thank you for your efforts. We are missing a Mac developer, and if you
think you can fill that gap that’d be great :-)

> In any case: I keep getting a linker error, that looks like this:
> [  1%] Linking CXX executable tsc
> ld: library not found for -lSDLmain
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)

That error indicates you are missing the SDL library SDLmain. You’ll need
to download and compile SDL1 (*not* SDL2, we do not support that yet)
for your platform and ensure it installs somewhere the build script
finds it. It might be that SDL names itself different on Macs, but as
TSC uses CMake’s SDL finding module AFAIK that should take care of
that. As it stands, the linker tells you simply that the file
"SDLmain.so" is missing.

I will take a look at your changes when I am back from holidays next
week.

Vale,
Quintus

-- 
#!/sbin/quintus
Blog: http://www.guelkerdev.de

GnuPG key: F1D8799FBCC8BC4F