Eclipse mac osx: launch failed, binary not found

The newly installed eclipse on my mac cannot start my projects, when I build and run, I get the following message: start failed, the binary was not found. I set the project setup \ macosx gcc \ and linker \ miscellaneus \ flags -arch i686 does not work, I'm pretty stuck.

+4
source share
5 answers

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

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

Correction go to Project> Properties> C / C ++ Build> Settings> Binary Parsers: make sure that the "Man-O 64 Parser is selected"

This thread helped me: "Startup failed. Binary not found." The problem with Snow Leopard and the Eclipse C / C ++ IDE "PROBLEM: this is that the GCC 4.2 (GNU compiler compilation) that comes with Snow Leopard compiles binary files into 64-bit by default. Unfortunately, the linker that uses Eclipse does not understand 64-bit binaries, it reads 32-bit binaries, there may be other problems, but unfortunately they do not cause any binary generation, at least not that Eclipse can read that causes Eclipse to not find binaries, hence an error.

+10
source

To fix, go to Project> Properties> C / C ++ Build> Settings> Binary> Parsers: Make sure "Parser-Mach 64" is selected

I made sure that it was correct and the error message was still received, so I would say that the best solution is to take this step ... then, BUILD the project, then click the play button and it should work (that’s what what fixed my problem)

+4
source

You must create it first and then run. Then it will be good.

0
source

You need to select the correct binary parser so that Eclipse can recognize the executable:

Select a project, then

Project-> Properties-> C / C ++ Build-> Settings-> Binary Parsers

For the macro, select Mach-O Parser.

I would like CDT to just appear with these selected, and that was a simple plug-n-play setup. If there was nothing, they could add a hint in the error text.

0
source

I had the same problem, although I changed the parser as above, it does not work, and I got the same error.

In addition, when creating a project through the menu, the problem was solved:

Project>Build All 

I think that the very first code execution with eclipse makes it necessary to create the code separately before clicking the green launch button (since I assumed that this would at least compile the code).

0
source

Source: https://habr.com/ru/post/1379617/


All Articles