NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
zorphon
Joined: 07 Apr 2011 Posts: 10
|
Posted: Thu Apr 07, 2011 11:12 pm Post subject: C/C++; setting up MinGW and MSYS |
|
|
Posted this in the general NetBeans Users forum but I saw this and thought it would be more appropriate here, so here goes:
I clearly set them up wrong, because I get this when I try to build the Welcome_1 sample project within NetBeans:
| Code: |
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/c/Users/bl/Documents/NetBeansProjects/Welcome_1'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/welcome_1.exe
make[2]: Entering directory `/c/Users/bl/Documents/NetBeansProjects/Welcome_1'
make[2]: mkdir: Command not found
make[2]: *** [build/Debug/MinGW-Windows/welcome.o] Error 127
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
mkdir -p build/Debug/MinGW-Windows
make[2]: Leaving directory `/c/Users/bl/Documents/NetBeansProjects/Welcome_1'
make[1]: Leaving directory `/c/Users/bl/Documents/NetBeansProjects/Welcome_1'
BUILD FAILED (exit value 2, total time: 1s) |
What does this mean, and how do I fix it? |
|
| Back to top |
|
 |
gaich
Joined: 12 Feb 2011 Posts: 7
|
Posted: Sat Apr 09, 2011 12:53 pm Post subject: |
|
|
| MinGW has a subdirectory msys\1.0\bin with unix-fashion tools. Add this path to your PATH variable and mkdir should be found. |
|
| Back to top |
|
 |
zorphon
Joined: 07 Apr 2011 Posts: 10
|
Posted: Sun Apr 10, 2011 7:53 pm Post subject: |
|
|
| gaich wrote: | | MinGW has a subdirectory msys\1.0\bin with unix-fashion tools. Add this path to your PATH variable and mkdir should be found. |
I had that in my PATH environmental variable. The only way it works though is when I remove all dependencies, so it doesn't depend on any .dll's anymore. Will this hurt me in the future? |
|
| Back to top |
|
 |
gaich
Joined: 12 Feb 2011 Posts: 7
|
Posted: Mon Apr 11, 2011 12:33 pm Post subject: |
|
|
| What are the dependencies you have to remove ? |
|
| Back to top |
|
 |
Rommeliser
Joined: 18 Sep 2011 Posts: 1
|
Posted: Sun Sep 18, 2011 9:36 pm Post subject: Set Path in windows 7 - Had same problem |
|
|
Had the same problem, couldn't find the mkdir command on build. Solution is to set the PATH variable. Right click on MY COMPUTER,Click Properties,Highlight the PATH variable in the lower box,press edit,arrow to the end of the line and insert a semicolon then add H:\MinGW\msys\1.0\bin\ . For some reason it did not work on my machine until I added the final " \ " . Now it works. I think my problem was also related to using a quad boot system, booting windows 7 from the H drive. PS dont delete any info from the PATH variable, otherwise other programs may not work !(Press cancel if you do accidentally).  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|