Code::Blocks Forums

User forums => Help => Topic started by: connexion2000 on August 05, 2007, 04:48:23 pm

Title: Code::Blocks and MinGW
Post by: connexion2000 on August 05, 2007, 04:48:23 pm
Hi!
How does Code::Blocks detect MinGW?
I am asking because I have installed MinGW on my system, but Code::Blocks didn't detec it.
Title: Re: Code::Blocks and MinGW
Post by: stahta01 on August 05, 2007, 05:20:34 pm
I do not think the detection part works for MinGW.

Tim S
Title: Re: Code::Blocks and MinGW
Post by: Biplab on August 05, 2007, 06:12:47 pm
I do not think the detection part works for MinGW.

It works for some standard installation dirs. But it does not work if you use any non-standard path.
Title: Re: Code::Blocks and MinGW
Post by: thomas on August 06, 2007, 09:13:11 am
The present code includes querying the registry as well as looking in "standard" places. Thus, non-"standard" places should work too, if the installer was used.

However, it is of course always possible that the MinGW installer is changed and we don't know :)
Title: Re: Code::Blocks and MinGW
Post by: connexion2000 on August 06, 2007, 09:24:05 am
MinGW 5.1.3 installer was used. It's quite new. What registry keys does it look for?
Title: Re: Code::Blocks and MinGW
Post by: raph on August 06, 2007, 02:19:47 pm
It looks in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall for a key starting with "Minimalist GNU for Windows" and reads the value of "InstallLocation".
Title: Re: Code::Blocks and MinGW
Post by: connexion2000 on August 06, 2007, 06:12:04 pm
Now it is: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall with a key "MinGW"
Title: Re: Code::Blocks and MinGW
Post by: dje on August 10, 2007, 02:17:02 pm
An improvement could be to look in directories pointed by the PATH environment variable (at least on Windows) for the standard MinGW binaries.
I guess there must be equivalent on other OSs.

Dje
Title: Re: Code::Blocks and MinGW
Post by: raph on August 10, 2007, 06:34:11 pm
An improvement could be to look in directories pointed by the PATH environment variable (at least on Windows) for the standard MinGW binaries.
Good idea. I've just submitted a patch (http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=2135&group_id=5358).