Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse mac osx: Launch failed, binary not found

Just installed eclipse on my mac cannot run my projects when i build and run i get the following message: launch failed, binary not found. I've set on project setting \macosx gcc\ and linker\miscellaneus\flags -arch i686 doesnt work, i am pretty stuck.

like image 876
im7xs Avatar asked Nov 04 '11 09:11

im7xs


2 Answers

Hi I ran into a similar problem. I am using the following build :

Eclipse IDE for C/C++ Developers Version: Juno Service Release 2

The fix go into Project > Properties > C/C++ Build > Settings > Binary Parsers : Make sure "Mach-O 64 Parser is selected"

This thread helped me out: "Launch Failed. Binary Not Found." Snow Leopard and Eclipse C/C++ IDE issue "THE PROBLEM: is that GCC 4.2 (the GNU Compiler Collection) that comes with Snow Leopard compiles binaries in 64-bit by default. Unfortunately, the linker that Eclipse uses does not understand 64-bit binaries; it reads 32-bit binaries. There may be other issues here, but in short, they culminate in no binary being generated, at least not one that Eclipse can read, which translates into Eclipse not finding the binaries. Hence the error."

like image 118
Lycan22 Avatar answered Nov 08 '22 20:11

Lycan22


The fix go into Project > Properties > C/C++ Build > Settings > Binary >Parsers : Make sure "Mach-O 64 Parser is selected"

I made sure this was correct, and still recieved an error, so I would say the best solution is to do this step...then, BUILD the project, then press the "play" button and it should work (that is what fixed my problem)

like image 28
Coty Embry Avatar answered Nov 08 '22 20:11

Coty Embry