new install, wxwidgets, wx/setup.h missing

CodeLite installation/troubleshooting forum
dlh
CodeLite Enthusiast
Posts: 24
Joined: Wed Oct 07, 2009 8:41 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: new install, wxwidgets, wx/setup.h missing

Post by dlh » Wed Oct 07, 2009 9:03 pm

1)Can those tool pane items contain pathname prefixes (e.g. "c:\MinGW-3.4.5\bin\g++", "c:\MinGW-3.4.5\bin\windres", etc.)?

2)Even if (1) allows path prefixes, would another edit field providing for a base location path to be used if none is present be useful, and remove dependencies on paths, such as the one that was causing me trouble? (This would allow a single item change to select a different tool set instance, rather than having to edit each item, as well as providing a means to eliminate general path fluctuations or changes.)

User avatar
eranif
CodeLite Plugin
Posts: 5934
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: new install, wxwidgets, wx/setup.h missing

Post by eranif » Wed Oct 07, 2009 9:23 pm

dlh wrote:1)Can those tool pane items contain pathname prefixes (e.g. "c:\MinGW-3.4.5\bin\g++", "c:\MinGW-3.4.5\bin\windres", etc.)?
The best way to do this is:
1) define a new environment variable from Settings | Environment Variabels, for example, MINGW and set it to the correct path of your MINGW bin directory
2) in the 'Tools' of the compiler prepend it like this: g++ will now become $(MINGW)/g++ and so on
dlh wrote:2)Even if (1) allows path prefixes, would another edit field providing for a base location path to be used if none is present be useful, and remove dependencies on paths
In the Settings | Build Settings | Compiler tab, under 'Tools', there is another text field: PATH. Here you can modify the PATH variable which is used to locate binaries on ALL OSs.
Be careful: always append the content the $(PATH).

For example, if you installed your mingw under C:\MinGW-3.4.5\, you can do this:
WIndows:

Code: Select all

PATH: C:\MinGW-3.4.5\bin;$(PATH) 
Linux:

Code: Select all

PATH: C:\MinGW-3.4.5\bin:$(PATH) 
This way, MinGW-3.4.5\bin path is searched first and the correct tools are used.
Eran
Make sure you have read the HOW TO POST thread

Post Reply