Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.