No binary built in eclipse cdt - eclipse-cdt

I have a c++ project in eclipse cdt. source files are put in folder 'srt-lsh'. However, I can not build the project successfully. No Binary is shown after I hit the 'build all' button. When I try to run it, 'launch failed, no binary found' dialog pops up.
Any ideas are appreciated.

Related

Unable to start program VS2015 | Access denied | system cannot find the file specified

I am trying to configure VTK with VS 2015 on win10 x64 . I downloaded VTK-8.1.0 source, created VS2015 project with cmake and build it with Visual Studio IDE. To test, I downloaded the sphere visualization code and created a VS2015 project with cmake and build it with VS2015 IDE. Everything is successfull. I run the .exe created from vtkproject/build/debug/.exe and I get the output as expected. Its displays a sphere. But when I run the program from the IDE, it gives runtime error as shown below:
I also tried using the pre-built VTK-7.0 binaries which were a part of PCL pre-built x64 binaries for VS2015 from this blog and tested the above mentioned sphere visualization program. Build seems to work and again I get the expected output from running the .exe created in vtkproject/build/debug/.exe but I get another runtime error when trying to run program from VS IDE as shown below:
.
I saw a similar post here but the accepted answer doesn't work for me.
Kindly help me regarding this issue.
I solved the problem thanks to Jesper Juhl hint. CWD was correct but it was none the less a directory path problem.
The first error occurred because in project
properties->configuration manager, the build option against ALL_Build
was unchecked.
The second error occurred because in ALL_BUILD project properties-> configuration properties->Debugging->Command was set to x64/Debug/ALL_BUILD. It should be set to Debug/Sphere.exe (Debug in the solution folder, not in x64)

Visual C++ 2010 error. The system cannot find the file specified when running LibICP

There is a code for running libIcp for Andreas Geiger. I downloaded the code, and build the sln based on CMAKELISts.txt. Everything good so far.
According "readme.txt" I Opened the resulting Visual Studio solution with Visual Studio and Switched to 'Release' mode, build all and run the demo program. but 1st this window came up:
And Then I got this error:
Any help is appreciated.
You can not run the ALL_BUILD target it does not create an executable. It is there to force building the entire solution. Select an application target from the solution in Solution Explorer. Right click on that target and click set as start up project. This option should be around in the middle of the popup menu.

Debugger with GUI for C++ on Linux

Currently I am doing C++ Development on Windows and Mac using Visual Studio and XCode respectively and planning to start on Linux too.
I know just a little about Linux, gcc/g++, gdb, Makefile.
Can one who works on large GUI development, how they debug it, as using gdb command-line tool for debugging will be difficult, as I have been in comfort of visual studio / xcode(front-end) debugger?
I see only Makefile for project on linux, is eclipse ide make project on basis of makefile?
Thanks
Eclipse will do all of that stuff for you, including creating your makefile. Before you compile for the first time, just press ctrl+B and it will build your project for you.
All of your library linking can be done by clicking on the "project" menu, then under C/C++build, click "settings". There should be a setting on there somewhere that says "libraries", which is listed under GCC/C++ linker.
It's simple to work on project with existing makefile in Eclipse.
Just go to File -> Import -> C/C++ -> Existing code as Makefile project.
This will let you build your project from IDE. To debug it just go to Run -> Debug. If default launch generated this way is not ok for you, you can customized Launch configuration in Run -> Debug configurations.
There are several IDE for linux as
CodeBlocks
Codelite
which may also use custom makefile.

How can I run qwt examples using Visual Studio 2010?

I'm trying to run Qwt examples using VS2010. I've installed the Qt plugin for Visual Studio. I then open the .pro file of Qwt and the build succeeds. But I have no clue what to do next. Whenever I click run, it gives me a dialog which says
unable to start programe E:\qwt-6.0.1\src..\lib\qwtd.dll
Does anyone have an idea what might cause this?
I just managed to get the examples compiled using the command line tools. Key steps included:
Add the bin dir of qt and the lib dirs of qt and qwt to the path
Dont forget to run vcvars32.bat from Visual Studios bin directory
VC\bin should be in the path too
then follow the INSTALL instructions from qwt
After this I had a set of running examples in examples/bin of qwt. It's also easy to open one of them in Developer Studio with the "Open Qt Project File" option in the Qt Menu.
From the information you're giving us, it seems you have the project generating your DLL set at the StartUp project. So whenever you click on run/debug, it will try to run the output of that project, in this case a DLL. Of course this won't work.
If there is a project for the example you want to run, right click on that project within the Solution Explorer and select "Set as StartUp Project". Now when you click on run/debug, it will run the output (the executable) of the project you selected.

Problems with Eclipse cdt plugin

I have pre-installed Eclipse Gallileo for Java Developers on my PC and recently downloaded cdt plugin for it, using eclipse's Install Wizard.
My problem is that firstly when I was trying to build C/C++ project, IDE didn't find mingw32-make.exe. After I changed C/C++ project properties in C++ Build, renaming command to build project, it became to work well. But then when I try to Run project I get "Launch failed. Binary not found" message.
What did I miss in Eclipse congiguration?
You should add "c:\MinGW\bin" to the Windows path and restart Eclipse.
In windows7 you can right click on "My Computer" hit properties , in "Advanced system settings" then in "Environment variables" then in "System variables" section add ";c:\MinGW\bin" notice the semicolon.
In Windows XP the "Advanced system settings" is not needed.