LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-11-2011, 07:34 PM   #1
Four
Member
 
Registered: Aug 2005
Posts: 298

Rep: Reputation: 30
whats the best way to maintain a cross platform SDL/OpenGL project


I have made a game for Linux and want to release it soon (on linux & windows). Since its SDL/OpenGL and I dont do any special things it shouldn't be much porting to windows.

Problem: Maintaining
I have the game in code::blocks SDL project on Linux. So I got wine and installed wined Code::Blocks with MingW so I can cross compile on Linux.

For another game I made, I used a Makefile which has "if" statements to set up compile variables. And everything else is totally identical to windows & linux (code, source files and etc...)

With codeblocks I got used to not having to worry about makefiles and it did well and I better focused on making the game rather than everytime a new file is added editing the makefile and etc...

Is there some nice ways to have a cross platform environment to make it easy to make games for Linux and windows.

I'm thinking of making my own system of auto-generating a makefile (essentially upgrading the setup I have for my previous game to auto add entry's to the makefile & some other stuff). I'm hoping something out there exists already thats simple.

Thank you.
 
Old 02-12-2011, 02:52 PM   #2
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
For a SDL/OpenGL game I did last year I used CMake to deal with platform build quirks. CMake generates Visual Studio solutions, which was awesome for the team members on Windows and a lot more natural to deal with than MinGW.
 
Old 02-13-2011, 12:54 PM   #3
Four
Member
 
Registered: Aug 2005
Posts: 298

Original Poster
Rep: Reputation: 30
I heard of cmake but didn't exactly know what it was. I already made a build script to do things for windows. Next time I'm going to try cmake.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Whats the best cross-platform GUI kit for developing opengl programs? chutsu Programming 4 04-18-2008 03:27 PM
best way to maintain a project from multiple perspectives? ta0kira Programming 5 11-24-2007 01:42 AM
LXer: Leading Open-Source, Open-Standard DRM Project OpenIPMP Announces New Version, Boasting Cross-Platform OMA, ISMAcryp, MPEG-2 and MPEG-4 Support LXer Syndicated Linux News 0 07-17-2006 10:33 PM
How to meet these cross-platform C++ project goals? mattengland Programming 0 04-02-2006 04:44 PM
[SDL] Platform game Cornholio Programming 5 03-17-2005 03:39 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration