pouët.net

Porting Linux 2 Mac

category: general [glöplog]
 
Since macos is yet another linux is it complicated to get something working on mac (read porting) that already works on linux?
Note that I don't have a mac.
added on the 2011-02-08 16:43:06 by xernobyl xernobyl
MacOS isn't Linux. But it's UNIX-ish, like Linux. How easy it is to port stuff depends a lot on the application.
added on the 2011-02-08 16:50:21 by kusma kusma
There is a lot of ported unix stuff available at MacPorts. The standard packages are all there, and OSX has GCC.
added on the 2011-02-08 17:06:49 by trc_wm trc_wm
cross-compile a linux hosted gcc for mac os x.
added on the 2011-02-08 17:43:27 by decipher decipher
look at cmake, if you do it once you make porting a lot easier
added on the 2011-02-08 18:45:02 by jaw jaw
and don't forget to visit the clue shop!
Mac OS X is a graphical layer over a BSD system, which conforms to POSIX. As GNU/Linux is mostly POSIX compliant, one cane be quite confident that he will easily find GCC and all the necessary libs to make a Linux to Mac port as easy as 1) Installing the required libs if necessary (SDL, ...) and 2) typing "make" in a terminal window...
added on the 2011-02-08 23:51:43 by flure flure
it just depends on what libraries people used. porting from linux to mac is pretty straight forward usually. very easy if you used SDL. i prefer premake to cmake. you just need the osx install cd's for the dev tools.
I ported a dos/win32 demo to osx, you can get the code here: http://adrianboeing.blogspot.com/2011/02/despaire-by-iguana-ported-to-mac-osx.html
added on the 2011-02-09 13:13:30 by e64 e64
You don't really need MacPorts if you know how to compile things (MacPorts doesn't seem to be maintained very well). But basically installing the dependencies and typing 'make' will do.
added on the 2011-02-09 13:57:13 by joooo joooo

login