URL87
URL87

Reputation: 11012

mingw-w64-v2.0.6.tar.gz - define environment variables path

I download the latest version of minGW - mingw-w64-v2.0.6.tar.gz . Then I extract in into C:\MinGW . As I saw in some articles, now I have to define the path under environment variables . In C:\MinGW now have -

enter image description here

I tried to set the variable value of path as C:\MinGW , but when I do in eclipse juno build path for some project I get -

make all 
Cannot run program "make": Launching failed

Error: Program "make" not found in PATH

EDIT:

I downloaded GCC+binutils 64-bit ,exctract to c:\mingw64 , change the path to c:\mingw64\bin and changed the build command to mingw32-make. Now when I build the project I get error -

mingw32-make all 
mingw32-make: *** No rule to make target `all'.  Stop. 

2nd EDIT :

finally I succeeded to run a project by chose -

enter image description here

Note that it must uncheck the show project type and toolchians only if they are supported on the platform otherwise it not let to chose Executable Project type . In addition the build command should be stay on "Use default build command" .

Upvotes: 1

Views: 3875

Answers (1)

rubenvb
rubenvb

Reputation: 76519

You downloaded the source package.

You need a toolchain (GCC+binutils and maybe make/gdb). Those are located here:

I recommend my (rubenvb) Personal builds. They are tidy, full-featured and up to date.

After extracting the toolchain anywhere (say, D:\), add D:\mingw64\bin or D:\mingw32\bin to PATH. Or double-click on the batch scripts I include with my latest builds and it'll be done for you.

Note that you'll need to set up Eclipse for MinGW compilation, which means using mingw32-make, not make.

Lastly, I also suggest using MinGW-w64's support channels (forum and mailing list; please subscribe before posting to mingw-w64-public) in the future. I linger there, among other generally nice and helpful people.

Upvotes: 7

Related Questions