[hatari-devel] CMake build system
George Nakos
ggn at hol.gr
Sat Jan 23 19:43:20 CET 2010
Hello Thomas,
Saturday, January 23, 2010, 7:28:18 PM, you wrote:
> select() on MinGW... that rings a bell. select is defined in an
> optional library there. Could you please try adding the following code
> somewhere at the end to src/CMakeLists.txt to see whether this helps:
> if(WIN32)
> target_link_libraries(hatari ws2_32)
> endif(WIN32)
That helped.
>> But the second error has me stumped :/ I haven't seen that one as far
>> as I can remember...
> That usually means some problems with libSDLmain.a or SDL_main.h... it
> overrides the main() function to do some additional magic during
> startup.
> I guess it happens because you do not link against libSDLmain.a yet.
> Could you please try these lines in src/CMakeLists.txt :
> if(WIN32)
> target_link_libraries(hatari ${SDLMAIN_LIBRARY})
> endif(WIN32)
> Does it work better in that case?
Also check.
So this is the first time Cmake produced an executable on my system :)
Going to test it when I can...
--
Best regards,
George mailto:ggn at hol.gr
More information about the hatari-devel
mailing list