Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
compiling Linux app for OS X
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="johnny_canuck" data-source="post: 837044" data-attributes="member: 98413"><p>Greetings -</p><p></p><p>I'm a Linux user who has been asked by a small but growing (and typically vocal) group of Mac users to compile a particular technical application I help maintain (mathematical statistics) so it will run under OS X. I don't have access to a Mac (out of the 100+ machines in my department, there are zero Macs...), so I'm looking to see if its possible to flip the right compiler flags (gcc all the way) to compile for Intel-based Macs running OS X. In other words, compile for Intel CPU (-march intel) under Linux, and send the binary to someone to run under OS X. I can do this for Windows, but this is the first time I've had a Mac user make the request. I've poked around a bit, and all I've found is how to do the port/compile *on* a Mac. I don't have that situation. I have a Linux box (many, in fact), and need to comiple a OS X-compatible binary on it. I rather assume its doable, if I statically compile libs into the binary, but I was wondering if there are other things (Mac-specific) I need to consider. Note: this is a 'real' technical application - command line, no GUI, no nothing. So, no issues about Gnome or KDE libs and such. </p><p></p><p>Apologies if this should go in another section of the forum, but this was my first best guess.</p></blockquote><p></p>
[QUOTE="johnny_canuck, post: 837044, member: 98413"] Greetings - I'm a Linux user who has been asked by a small but growing (and typically vocal) group of Mac users to compile a particular technical application I help maintain (mathematical statistics) so it will run under OS X. I don't have access to a Mac (out of the 100+ machines in my department, there are zero Macs...), so I'm looking to see if its possible to flip the right compiler flags (gcc all the way) to compile for Intel-based Macs running OS X. In other words, compile for Intel CPU (-march intel) under Linux, and send the binary to someone to run under OS X. I can do this for Windows, but this is the first time I've had a Mac user make the request. I've poked around a bit, and all I've found is how to do the port/compile *on* a Mac. I don't have that situation. I have a Linux box (many, in fact), and need to comiple a OS X-compatible binary on it. I rather assume its doable, if I statically compile libs into the binary, but I was wondering if there are other things (Mac-specific) I need to consider. Note: this is a 'real' technical application - command line, no GUI, no nothing. So, no issues about Gnome or KDE libs and such. Apologies if this should go in another section of the forum, but this was my first best guess. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
compiling Linux app for OS X
Top