Compiling for 2 Operating Systems
Posted: Thu Feb 26, 2009 7:19 pm
Hey guys!
I have some code which I would like to get compiled and running on Linux (Mac OS X soon!) but I'm having some problems. I'm using Visual Studio to compile my code on Windows. Previously I would just use G++ and compile that one main.cpp file. But now since the game's code has grown, I don't know what the best way for compiling on Linux would be.
I was using CodeBlocks but I figured it would be kinda difficult for maintaining two different project files for different IDEs.
I also tried CMake and SCons but I couldn't get those to work either.
If anyone has some first hand experience (Wolfire guys and other devs) or anyone has any tutorials that can put me in the direction, it would be awesome if you guys can share them with me.
BTW: I'm using SDL so I'm pretty sure that the code will compile with/without some minor changes.
Thanks,
YellowShadow
I have some code which I would like to get compiled and running on Linux (Mac OS X soon!) but I'm having some problems. I'm using Visual Studio to compile my code on Windows. Previously I would just use G++ and compile that one main.cpp file. But now since the game's code has grown, I don't know what the best way for compiling on Linux would be.
I was using CodeBlocks but I figured it would be kinda difficult for maintaining two different project files for different IDEs.
I also tried CMake and SCons but I couldn't get those to work either.
If anyone has some first hand experience (Wolfire guys and other devs) or anyone has any tutorials that can put me in the direction, it would be awesome if you guys can share them with me.
BTW: I'm using SDL so I'm pretty sure that the code will compile with/without some minor changes.
Thanks,
YellowShadow