LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 10-17-2003, 02:43 PM   #1
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
Porting games to Linux


How hard would it be to port a game from OSX to Linux?
I know a lot of games support the latter but don't support the former?
Given the source, are there major differences between the two platforms (given that the compiler is probably the same, I'm asuming OSX also uses gcc)
I have plenty of Linux & x86 programming expirience, and I'm just curious at to what it would take to get games or applications to run on both platforms? (I know there would be some serious differences because of the architecture.. but I have no clue what those would be, never looked into macs)
 
Old 10-17-2003, 02:50 PM   #2
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
The main problem would be to get the code for the given games, in order to port them... and that should come at a cost (if the owner decides to lend the code for others to port). I suppose the problem would be (as you already stated) the architecture specifics of both x86 and PPC's, however I guess that depending on what language the code is written in, the compiler would take care of the architecture intrinsics, orhterwise stated in the code, of course... And being that the main problem with games being ported to mac is the OGL renderer, that should not be a problem in Linux, since the port has already been done.
 
Old 10-17-2003, 10:32 PM   #3
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Original Poster
Rep: Reputation: 30
Besides getting the code.. how complicated is it to port.. say C/C++ code from Mac to Linux?
 
Old 10-18-2003, 12:49 AM   #4
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
I think that should depend on how the code was really programed, i. e. if the original programmers coded with POSIX in mind or not, to make it easier to port

However, I see your point. But I'm affraid that could only be determined once you take a first look at the code itself.
 
Old 10-18-2003, 04:31 AM   #5
sNicker
Member
 
Registered: Oct 2003
Location: Italy
Distribution: Slackware 9.1, Slackware 10
Posts: 33

Rep: Reputation: 15
The code itself if the same... the problem are the libraries used to manage the machine's hardware: if i code in windows a game and i use directX, the porting will be harder than the programmer who used SDL to code his game (actually SDL exists for Win AND for Linux... almost no problems here!).

With the right exceptions, the main problem are the system libraries used

brr, i have to study english grammar... -_-''
 
Old 10-18-2003, 07:13 AM   #6
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
if windoze didnt use directx, or we would have a native port of directx, then i dont think winex would be nessesary. we would only need wine.
 
Old 10-18-2003, 08:05 AM   #7
sNicker
Member
 
Registered: Oct 2003
Location: Italy
Distribution: Slackware 9.1, Slackware 10
Posts: 33

Rep: Reputation: 15
Quote:
Originally posted by LavaDevil94
if windoze didnt use directx, or we would have a native port of directx, then i dont think winex would be nessesary. we would only need wine.
winex is only a trick, or a placebo (uh, does the term "placebo" exist in english?ARGH, memory leak...)... you are not playing native linux games using winex! if linux had directx, it would be windows... O_o

I don't have any OSX experience, but i think the problem of porting is similar to the windows->linux porting problem: the low level libraries used by the game (graphics, sound... actually, the things managed by the Operative System).
 
Old 10-18-2003, 08:20 AM   #8
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
btw, at icculus.org , check out black shades. its a game availible only by cvs and it was ported from the mac.
 
Old 10-18-2003, 10:13 AM   #9
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Original Poster
Rep: Reputation: 30
directx is just a very small part of the overall picture in windows.
Even if you implemented it all 100% nothing would run
Look at what wine implements to run just 1 game (the calls that the game makes)
 
  


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
HP-UX to linux porting arunprakash Other *NIX 2 03-01-2005 10:53 PM
Porting C++ from HP-UX 11.0 to Linux paul sachs Other *NIX 2 01-10-2005 05:37 PM
Porting linux games amnesty_puppy Linux - General 1 11-01-2004 04:40 PM
Games support: will my 3D games work on Linux OS? COOLER_KING Linux - Newbie 2 03-25-2004 09:50 PM
Porting to Linux?? 00-00-00 Linux - General 1 05-27-2002 09:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 11:19 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