Title: CMake
Description: Cross Makefile Generator
gerstrong - September 12, 2009 08:07 PM (GMT)
Hi, I have been trying to compile my build using cmake and into a lot of troubles. I've looked into the cmakelists.txt file in trunk dir of svn. That file is really a mess! It seems that only GP2X and wiz work.
I will modify this files for my build win32, linux32 and linux64. I hope Pizza can adapt this file for mac users too. It would be very nice. First let me edit it...
Pickle - September 12, 2009 08:55 PM (GMT)
I can add in the linux options that I use to build a linux32 if you want.
gerstrong - September 13, 2009 06:47 PM (GMT)
I really wasn't interested in Cmake, because my method works very well!
Nevertheless, I want to be able to upload SVN executables, so people can download it there in order to test it.
Cmake builds are very flexible for that!
Pickle - September 14, 2009 03:21 PM (GMT)
Yeah i meant Cmake, but anyway I see you got it all working.
Pickle - September 16, 2009 12:27 AM (GMT)
Ok went to build using the new cmake for linux32 and the lines for 32 bit linux SDL lib doesnt work for me, maybe this is a 64 bit way of doing things?
| CODE |
IF(LINUX64) TARGET_LINK_LIBRARIES(commandergenius SDL) ELSE(LINUX64) TARGET_LINK_LIBRARIES(commandergenius SDL-1.2) |
For me SDL-1.2 needs to be SDL, for linux32, wiz, gp2x, pandora.
gerstrong - September 16, 2009 10:47 AM (GMT)
You are right. The Problem is that you are building on a 32-bit machine. 64-bit machines link differently this lib.
Try the new script. In that one you should be able to tell if you are on a 64-bit machine or not.