Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to run a small app (TrunkDecrypt) on my Linux box. Unfortunately the app is compiled for Mac OS X, but I am only running linux. I have read somewhere that qemu supports executing code compiled for different architectures, but it seems qemu only works as a "virtual machine", meaning I have to install a virtual OS first. My file is of type "Mach-O 64-bit executable", and I want to just "feed" it to qemu and tell it to execute. Is such a thing possible? Thanks!

share|improve this question

In order to run an executable you need more than just the CPU it runs on. You also need: 1) a loader, to bring it into memory and perform any page fixups required; 2) the appropriate dynamic libraries, so that it can find the functions it uses; and 3) the appropriate ABI, so that the binding with the dynamic libraries can take place. QEmu does not provide those on its own. But once you have those QEmu will be happy to start the executable up for you.

share|improve this answer
what if the app needs no libraries and can execute standalone? would qemu be able to execute the app? If so, do you know how? I have searched the man pages, but it seems the term for this is something I dont recognize... – awayand Aug 23 '12 at 14:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .