Skip to main content
GameDev.net gamedev.net
🔒 Locked

Cross Platform Programming

Started by akinak Feb 6, 2010 at 12:42 PM 2 replies 1k views
Original Post
akinak
akinak
hi there everybody. we have released our first game called (L!ght deluxe) a few weeks ago under windows. its a logical puzzle game ( http://www.nemo-games.com/ ) now as the programmer i'm searching to prepare every thing for next game the problem is, next one should be a Mac and Windows game after a lot of searching i found that if i want to write the program once and compile it under mac and windows i have to use either 1) cross compiling ( it seems i cant, there is no way compiling on windows or linux for mac ) 2) compiling on platforms with good cross platform code ( good way, but i have some problems with IDE, i cant find any IDE as good as VS, eclipse netbeans ... they even don't support for precompiled headers ) 3) a cross platform engine like Unity or Blitzmax ( our game is 2D ) so, is there any other solutions for us. can you get me some tutorials, articles on cross platform | cross compile | cross code topics.. thanks 2 u all and sorry for bad english :)
twistedjoe
twistedjoe
Go with 2.

Take your code, create an Xcode project (os X) setup your project, adjust your code a bit, then compile.

Xcode does support precompile header.

On linux if you can't find a good IDE, it's cause you are not searching enough.

But, the best way here, (I think) is to compile it without IDE, create yourself some makefile and you will be on track.

Its WAY more flexible this way, and it's usually what you will see in other "unix-like versions" of projects.
twistedjoe
twistedjoe
In 2 months (if you did not made it at this point :-P), we are supposed to released the code of our 2d engine (windows/linux/osx/iphone) and it will soon run on some console too.
akinak
akinak
for me the best choice is 2,
but i don't want to experience everything myself so i have to find some excellent articles about cross platform coding.

for example how SDL or boost are developed like that? its very simple to compile them under linux, mac or windows. they have lots of config files witch take care of everything, how these files are written...

but i still got option 3, it will be much easier and faster...

any articles on Cross Platform Cpp Coding ??

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.