Hello Igor,
thank you for your reply. I am not en experienced user of ubuntu. Therefore, I prefer to install packages from repositories.
Is it possible to install version 3.1.5 from repository along with the version 3.0.5 (installed as well from repo)? How can I choose the version of the wxwidgets library in my makefiles? Now, I simply include `wx-config --cxxflags` to compilation flags and `wx-config --libs` to linked libraries during the linking process.
Thanks,
Dalibor
______________________________________________________________
> Od: "Igor Korot" <ikor...@gmail.com>
> Komu: wx-u...@googlegroups.com
> Datum: 06.10.2021 18:44
> Předmět: Re: How to uninstall wxwidgets?
>
Hello,
I am considering to have two versions of wxwidgets (3.0.5 and 3.1.5) on my system (Ubuntu 20.04 recently upgraded from Ubuntu 18.0X). I have 3.0.5 version installed from a repository (http://repos.codelite.org/wx3.0.5/ubuntu/). If I installed the 3.1.5 version, I looked up, that I would have to switch between wx-configs by wx-config --version=X before building a program. I tried changing the used wx-config on my current version of wxwidgets, but unsucessfully.
First, I listed all configs present by wx-config --list:
-------------------------------
dalibor@dalibor-HP-EliteBook-8470p:~$ wx-config --list
Default config is gtk3-unicode-3.0-unofficial
Default config will be used for output
Alternate matches:
base-unicode-3.0-unofficial
-----------------------------------
I tried to switch the wx-config to base-unicode-3.0-unofficial, just to try if that command works:
---------------------------------
dalibor@dalibor-HP-EliteBook-8470p:~$ wx-config --version=base-unicode-3.0-unofficial
Warning: No config found to match: /usr/bin/wx-config --version=base-unicode-3.0-unofficial
in /usr/lib/x86_64-linux-gnu/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
dalibor@dalibor-HP-EliteBook-8470p:~$
----------------------------------
As you can see, the config was not found. But it exists in the /usr/lib/x86_64-linux-gnu/wx/config folder:
-----------------------------------
dalibor@dalibor-HP-EliteBook-8470p:~$ ls /usr/lib/x86_64-linux-gnu/wx/config
base-unicode-3.0-unofficial gtk3-unicode-3.0-unofficial
------------------------------------
I do know what I am doing wrong here. Can anybody give me a hint how to successfully switch between the configs?
Thank you,
Dalibor