Environment Variables?

General questions regarding the usage of CodeLite
root
CodeLite Enthusiast
Posts: 21
Joined: Tue Jan 21, 2020 4:10 pm
Genuine User: Yes
IDE Question: C++
Contact:

Environment Variables?

Post by root » Wed Jan 06, 2021 4:47 pm

I'm on Linux Mint 20. It comes standard with wxWidgets 3.0. I've installed 3.1.4 and can't figure out how to get CodeLite/wxCrafter to use it. I looked at the system environment variables and there's nothing in them for wxWidgets 3.0, as changing that, I figured, would be the simplest solution. So I'm still using 3.0 but would like to be using 3.1.4. Any help?
Win X Pro / CodeLite 14.0 / wxCrafter 2.9 / wxWidgets-3.1.4 / MinGW-10.2.0

Linux Mint 20.0 / CodeLite 14.0 / wxCrafter 2.9 / wxWidgets-3.0 & 3.1.4 / GCC-9.2.0

DavidGH
CodeLite Plugin
Posts: 699
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Environment Variables?

Post by DavidGH » Wed Jan 06, 2021 9:50 pm

Hi,

Actually, the simplest solution is to edit the project's compiler and linker settings to point to /full/path/to/preferred/wx-config instead of just wx-config. But you could probably do something similar in either the global or the project's environment variables setting.

More generally, Mint is debian-derived and so has update-alternatives available. You can change the default wx by doing, in a terminal:
sudo update-alternatives --config wx-config
then following the instructions. Your project should then automatically use that wx version.

Regards,

David

Post Reply