Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cross-compiler for Linux on Mac OS X?

Tags:

People also ask

Can GCC compile for Mac?

Often times, you need c or gcc compiler to compile open source projects in Mac OS X. The problem is Mac OS X doesn't install the gcc compiler by default. In terminal, type “ gcc “, you will get message “command not found”.

Can you run Linux code on Mac?

Conclusion. If you want to have the best of both Mac OS and Linux on your MacBook, you will have to install and run Linux on your Mac. The fastest way to install Linux on Mac is through the use of reliable virtual desktop software, such as Parallels.

What is GCC cross-compiler?

Generally speaking, a cross-compiler is a compiler that runs on platform A (the host), but generates executables for platform B (the target). These two platforms may (but do not need to) differ in CPU, operating system, and/or executable format.


I've been reading lots of documents on the internet about creating a cross compiler for linux on mac os x but can't seam to get any to work.

It seams as if no one can help me with the question: Getting GMP to work with GCC 4.5.2

Is there any easy'er way to create a cross compiler?