Code::Blocks Forums
User forums => Help => Topic started 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.
-
I do not think the detection part works for MinGW.
Tim S
-
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.
-
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 :)
-
MinGW 5.1.3 installer was used. It's quite new. What registry keys does it look for?
-
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".
-
Now it is: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall with a key "MinGW"
-
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
-
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).