How to uninstall wxwidgets?

741 views
Skip to first unread message

na...@centrum.cz

unread,
Oct 6, 2021, 12:35:41 PM10/6/21
to wx-u...@googlegroups.com
Hello,

I installed wxwidgets 3.0.5 from repositories on ubuntu . Now, I want to
uninstall them and install version 3.1.5. Can you recommend me any apt
command how to uninstall the previous version? I do not want to make
uninstallation through apt gui manager, since I could miss some packages
and get into troubles:

https://forums.wxwidgets.org/viewtopic.php?t=43748


Thanks!

Dalibor

Igor Korot

unread,
Oct 6, 2021, 12:44:07 PM10/6/21
to wx-u...@googlegroups.com
Hi,
You don't have to un-install that version.
Just build the new version from sources and when you want to build
your own software
use the appropriate wx-config.

Thank you.

>
>
> Thanks!
>
> Dalibor
>
> --
> Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
> ---
> You received this message because you are subscribed to the Google Groups "wx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to wx-users+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/9c72fe0b-256a-47fc-492f-86454f908b8e%40centrum.cz.

Scott Talbert

unread,
Oct 6, 2021, 1:20:37 PM10/6/21
to wx-u...@googlegroups.com
Like Igor mentioned, multiple wxWidgets versions can coexist just fine.
If you really want to do it, you can do:

sudo apt remove libwxgtk3.0-gtk3-dev

Scott

Dalibor Javůrek

unread,
Oct 6, 2021, 4:08:52 PM10/6/21
to wx-u...@googlegroups.com

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?
>

To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/CA%2BFnnTyLuQBnYRStMb1ZSS4h971ZmWem9%3Dqo6Nvn%2Bd9%3DdQR-Kg%40mail.gmail.com.

Dalibor Javůrek

unread,
Oct 7, 2021, 8:21:06 AM10/7/21
to wx-u...@googlegroups.com

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

Vadim Zeitlin

unread,
Oct 7, 2021, 10:24:00 AM10/7/21
to wx-u...@googlegroups.com
On Thu, 07 Oct 2021 14:21:02 +0200 Dalibor Javůrek wrote:

DJ> I am considering to have two versions of wxwidgets (3.0.5 and 3.1.5) on
DJ> my system (Ubuntu 20.04 recently upgraded from Ubuntu 18.0X). I have
DJ> 3.0.5 version installed from a repository
DJ> (http://repos.codelite.org/wx3.0.5/ubuntu/). If I installed the 3.1.5
DJ> version, I looked up, that I would have to switch between wx-configs by
DJ> wx-config --version=X before building a program. I tried changing the
DJ> used wx-config on my current version of wxwidgets, but unsucessfully.
DJ>  
DJ> First, I listed all configs present by wx-config --list:
DJ>  
DJ> -------------------------------
DJ> dalibor@dalibor-HP-EliteBook-8470p:~$ wx-config --list
DJ>
DJ>     Default config is gtk3-unicode-3.0-unofficial
DJ>
DJ>   Default config will be used for output
DJ>
DJ>   Alternate matches:
DJ>     base-unicode-3.0-unofficial
DJ> -----------------------------------
DJ>  
DJ> I tried to switch the wx-config to base-unicode-3.0-unofficial, just to
DJ> try if that command works:
DJ>  
DJ> ---------------------------------
DJ> dalibor@dalibor-HP-EliteBook-8470p:~$ wx-config --version=base-unicode-3.0-unofficial

The argument to --version should be just the version, i.e. 3.0 or 3.0.5
(I'm not completely sure myself which one, to be honest), not the full spec
string.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Reply all
Reply to author
Forward
0 new messages