NetBeans C++ Looking for make utility in the wrong location - c++

My issue here is that I have all the proper compilers for C, C++, etc installed (MinGW), and they are functioning properly but Netbeans will not acces the make.exe util. I reinstalled NetBeans C++ because my last install became corrupted, and I now get this error whenever I build a project:
"/c/Users/User/Dropbox/C++ Workspace/Project/"C:/MinGW/msys/1.0/bin/make.exe"" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
/bin/sh: /c/Users/User/Dropbox/C++ Workspace/Project/C:/MinGW/msys/1.0/bin/make.exe: No such file or directory
make.exe": *** [.build-impl] Error 127
BUILD FAILED (exit value 2, total time: 303ms)
The solution to this problem seems trivial because NetBeans is looking for the make.exe util in the wrong location. The last part of the url it is searching for is correct, but it appears as though it is appending the project's location to the beginning of it. I may be wrong though. Does anyone know why NetBeans is doing this and/or how I can go about fixing it? Thanks!
Also, I tried the solution posted here, but I was never referencing any other version of the make utility except the MinGW one.

I have exactly the same problem with NetBeans IDE 7.3 and MinGW in that the pathname for the make file is concatenated with the project folder name; as a result the make file can not be found. After much agonizing trial and error, I finally got it working, at least for the Welcome_1 example supplied by NetBeans and my own original project that I was working on.
Remember when you first set up NetBeans it told you that mingw32-make.exe under C:\MinGW\bin is incompatible and asked you to use the make.exe under C:\MinGW\msys\1.0\bin ? It turned out it is the latter that's incompatible. I made a copy of mingw32-make.exe , renamed it make.exe (otherwise NetBeans refuses to use it) , updated the tool collection accordingly and voila it worked "BUILD SUCCESSFUL".
Hope this will help others in the future.
Update: just installed NetBeans IDE 7.3.1 and now "/C/MinGW/msys/1.0/bin/make.exe" works fine. So this appears to be a bug in NetBeans 7.3 that's fixed in 7.3.1. Hope this helps.

I've had excact same problem. Tried the way one post up, but it didn't solve my problem. By the way, main project compiled, but test did not (I use google test 1.7.0). I resolved this problem by downgrading JDK 7 and JRE 7 to update 17. You can download it from Oracle website. Here's a link: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html
Sorry for my English.

Related

why I'm getting error in executing my C++ code

I have installed MinGW 3 times and I've also added path in env. variable but whenever I try to run a code in CodeLight it just gives me the following error:
mingw-32-make.exe: *** [ALL] Error 2
In MinGW installation tutorials there are .exe files in the bin folder but I don't have any .exe file in the bin folder inside MinGW. I've tried installing it 3 and very carefully.
Can someone help me out?
Make sure the compiler and build tools are properly configured in the IDE (CodeLight).
Installing MinGW by itself doesn't tell CodeLight were to find it.
There is a standalone MinGW-w64 personal build available at http://winlibs.com/ that doesn't need installation, just unzip it. On the site there is an explanation on he wot configure Code::Blocks IDE to use this compiler. The steps should be pretty similar in CodeLight.

Eclipse Cpp g++ command not found (MinGW & CDT Installed)

I am very new in using Eclipse as an IDE and I am facing many problems in configuring it. I may also be asking a few problems that may already be on forum but believe me I've tried almost all that I could have. SO coming towards the problem, I made a simple Hello World program for C++ to test out my config and YES I have installed MinGW and CDT. I have also edited the path environment variable for MinGW, and I chose MinGW GCC as toolchain while creating it and still my simple HELLO WORLD is giving me the error:
/bin/sh: g++: command not found make: *** [src/TEST2.o] Error 127
I have no idea what I have missed in between and it would be very helpful if someone would help me out correctly config my Eclipse :)
PS: I don't know if changing the tool(compiler) in Tool chain editor affects the process but I tried it as well...

What do I have to do to set C++ development in eclipse?

I am currently trying to set my eclipse so that I can start c++ development on my Windows computer. However, I am stuck with some errors. But first, here is what I did so far:
Installed the CDT for Eclipse
Installed Cygwin (with the additional packages gcc, gcc and make)
Added all "paths for headers" in Eclipse
The problem is that when I try to run my Hello World program, I get Launch failed. Binary not found.
I already build and rebuild the project but the program is still not running. It must be because of these errors that I have:
/bin/sh: g++: command not found
make: ***[src/HelloWorld.o] Error 127
What can I do to solve these errors?
Try running the Cygwin setup.exe again and select the packages for g++. Search for that and make sure those are installed. It should be under the name gcc-g++. The C++ compiler is installed separately from the C compiler.
Ok, I figured it out by myself. Since this really freaked me out, I want anyone else who has this problem to know how I solved it.
So apparently, since I had g++, gcc and all that installed, it had to be a problem with the path.
So what I did was check my path. If you don't know how to edit it, check this link http://www.computerhope.com/issues/ch000549.htm
So in there, I chose Path under the System variables and clicked on Edit.... What I noticed was that instead of C:\cygwin64 it said C:\cygwin. All I did was append the 64 (since I had installed the 64-bit version of cygwin) and I was done.
I restarted Eclipse, cleaned and built the project and the errors where gone!

Netbeans C++ trys a relative path for make.exe

I recently reinstalled Windows on one PC but I'm failing in reinstalling Netbeans C++ with MinGw/Msys and Qt 4.8.3. Everytime I try to build a error message like this comes up:
"/d/Eigene Dateien/Dokumente/NetBeansProjects/Test_1/"C:/msys/1.0/bin/make.exe"" -f nbproject/Makefile-Debug.mk QMAKE=/C/Qt/4.8.3/bin/qmake.exe SUBPROJECTS= .build-conf
/bin/sh.exe: /d/Eigene Dateien/Dokumente/NetBeansProjects/Test_1/C:/msys/1.0/bin/make.exe: No such file or directory
make.exe": *** [.build-impl] Error 127
BUILD FAILED (exit value 2, total time: 964ms)
It seems for me that it trys to execute the commands relativly to the project path. On my laptop I did everything same when I installed Netbeans 7.2.1 (now it's 7.3, maybe cause of that?) and hadn't this issue.
This is a bug caused by Java 7u21 in Netbeans 7.3. See https://netbeans.org/bugzilla/show_bug.cgi?id=228730. One workaround, if you do not want to upgrade (although I don't see why anyone would not want to upgrade) is to add msys' bin directory to the path, and then use make.exe as the command for make (as opposed to C:\msys\bin\make.exe or wherever it is installed).
That being said, the best solution is to just upgrade to Netbeans 7.3.1, where the bug seems to be fixed, along with many more bugs.
If there is no make.exe in C:\msys\1.0\bin you should use ?:\minGW\bin\make.exe.
ALso your Netbeans Options should have the path to the make exe.
If you have your path rigth configured (you can open your console and execute make.exe form anywhere on the path) you can put just "make.exe" (without path) on "Make Command" option in C/C++ netbean configuration.

Failed to clean when building wxwidgets using MinGW

I have a problem when cleaning wxwidget using MinGW. The last error is like this :
make (e=2):system cannot find the file specified.
mingw32-make : *** [clean] error 2
and it seems like all of the errors are the same as the one I posted above, and that errors can be seen from the start of cleaning process (after typing mingw32 clean instruction).
Do you know how to solve this?
I have already followed every step mentioned in wxwidgets wiki and any other wiki that explain the way to install this. Of course I didn't install MSYS or anything mentioned in the wiki, just minGW only (and Code::Blocks, but both of them are installed separately).
BTW, I am using the latest stable minGW (3.8x) and the version of the wxwidgets I am getting problem with is 2.9.4.
Any help would be appreciated. sorry for my bad english :)