Today I tried to compile a c++ program in Eclipse CDT for the first time, and the error that is came up was Program "make" not found in PATH , so I searched on google for the problems and I have found many similar solution to my problem, but no problem was like my one.
First I tried to reset the enviroment variables, but nothing changed, and then I uninstalled Mingw and reinstalled following this instruction, and using the command gcc --version it says that it is well installed. the next step is installing MYSYl, and checking the installation with the command mingw32-make gives
mingw32-make: *** No targets specified and no makefile found. Stop.
Instead of No Target Specified, but in an other answer on stackoverflow it's said that this means that it works. So I continued following the guide, and at the end, when I build my helloword project I get two errors:
mingw32-make: *** [all] Error 1
recipe for target 'all' failed
I can't find where I did wrong searching on google, can you suggest it me?
Another thing, if I go on Eclipse in Window->Preference->c/C++->Build->Enviroment there are no variable there, how can I add Mingw there?
Related
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.
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.
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 :)
EDIT: It seems I can use the nmake from \Microsoft Visual Studio 10.0\VC\bin\nmake.exe, but it would be nice (and much more user-friendly) if the "Qt 4.8.1 for Desktop" took care of this automatically.
I installed Qt SDK under Windows 7, 64 bit, using the online installer. I used the default installation options.
Now I am trying to build the Notepad app under \QtSDK\Examples\4.7\tutorials\gettingStarted\gsQt. I am using the supplied "Qt 4.8.1 for Desktop" command line.
For the first two steps of the build, qmake runs perfectly, but then nmake cannot be found in my installation. It's not a problem of setting a path -- I cannot find nmake.exe (or anything resembling nmake) anywhere in the QtSDK folder and subfolders.
If I use make or mingw32-make, I get the famous missing separator error:
c:/qtsdk/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Workspace/qt_notepad'
Makefile.Debug:59: *** missing separator. Stop.
mingw32-make[1]: Leaving directory `C:/Workspace/qt_notepad'
mingw32-make: *** [debug] Error 2
Is this a buggy installation, or am I overlooking something?
nmake is release with MSVC toolchain. Hence, you can not find it in the QtSDK.
This is for you reference.
I want to build and run my project in Netbeans. I generated a simple class (nothing edited) and did run it.
This is what was shown in the output:
make: *** [.validate-impl] Segmentation fault
nbproject/Makefile-impl.mk:90: recipe for target `.validate-impl' failed
BUILD FAILED (exit value 2, total time: 678ms)
I already installed Cygwin and the C++ compiler is set.
I hope you could help me!
You seems to not have the binary needed to execute make.
Try this :
install MSYS or Cygwin
Then :
In netbeans go to Tools --> options
Go in C/C++ pane, and here set your g++ compiler (you find it in the install directory of above tools) and your make command