MingW Netbeans 6.9.1 problem
Asked Answered
A

4

5

I have one problem with MingW(mingw-get-inst-20110211) and Netbeans 6.9.1. I installed MingW and add it to Netbeans without problem, but when I try to run one simple cpp app, throws this error

mkdir -p build/Debug/MinGW-Windows
make[2]: mkdir: Command not found
make[2]: [build/Debug/MinGW-Windows/main.o] Error 127
make[1]: [.build-conf] Error 2
make: [.build-impl] Error 2
make[2]: Leaving directory '/c/Documents and Settings/Marco/My Documents/NetBeansProjects/CppApplication_1'
make[1]: Leaving directory '/c/Documents and Settings/Marco/My Documents/NetBeansProjects/CppApplication_1'
BUILD FAILED (exit value 2, total time: 1s)

I already write "path", MingW it's installed on "C:\MingW".

Hope someone can tell what's wrong or what I forgot to do.

Thanks

Ashlan answered 7/3, 2011 at 19:38 Comment(0)
A
6

It's was kind of messy but finally get a way.

1° Install MinGW (C/C++ en my particular case)

2° Install MSYS (Answer two or three question at the end of installation, refering where MinGW is installed)

3° Add to Netbeans(Tools>Options>C/C++) the "\MinGW\bin" adress. It should look like this

enter image description here

It should be it regarding installation, but when a new project is created you should add this library to the project folder, it seems to be a problem with dynamic compile(I don't really know the problem but this should fix it).

That's all.

Ashlan answered 8/3, 2011 at 0:59 Comment(2)
Sounds a lot like what I advised you. If my answer was helpful, you should go ahead and vote it.Centimeter
I have a detailed guide hereGondi
K
3

You should add C:\msys\1.0\bin to your system path and restart the IDE. It should solve the problem.

Kendo answered 27/9, 2012 at 16:59 Comment(0)
C
2

follow this guide as making MinGW work under Netbeans requires an additional couple of steps (specifically MSYS' make).

http://netbeans.org/community/releases/68/cpp-setup-instructions.html#mingw

Edit:

Make sure the correct executables are specified in the Toolchain (Tools -> Options -> C/C++).

Centimeter answered 7/3, 2011 at 19:44 Comment(2)
I think this version installs MSYS and I tried that guide but every link to "how to" is brokenAshlan
If you did install MinGW and MSYS' make correctly, make sure the correct executable is specified in the Toolchain (Tools, Options, C/C++). I did an installation of Netbeans 6.9.1 with MinGW few days ago and following that guide, everything worked like a charm.Centimeter
H
0

Add C:\msys\1.0\bin to Windows system path, and please add it at the beginning.

I got the same error when I add it to the tail of the path, then I add it at the beginning, it worked!

Hills answered 13/12, 2012 at 10:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.