Codeblocks install with wxwidgets 3.1.4

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
martynwheeler
In need of some credit
In need of some credit
Posts: 8
Joined: Thu Feb 11, 2021 7:53 pm

Codeblocks install with wxwidgets 3.1.4

Post by martynwheeler »

Hi,

I am just starting out with wxwidgets and I have a couple of questions.

I am ubuntu 20.04 and I have compiled 3.1.4 of wxwidgets and installed it successfully. This has got rid of loads of compiler warnings from g++ which is good. I would like to use codeblocks as a RAD to speed up the design of the ui. I have tried to download the latest version and install the deb files but they fail due to dependency issues.

So, my questions are:

1. What is the simplest way to install codeblocks if I have wxwidgets 3.1.4 as my library? Do I have to install from sources?

2. Can I have two versions of wxwidgets on my system without causing problems? How would I do this?

Sorry if these are silly questions but I am a bit stuck?

Thank you
Martyn
New Pagodi
Super wx Problem Solver
Super wx Problem Solver
Posts: 466
Joined: Tue Jun 20, 2006 6:47 pm
Contact:

Re: Codeblocks install with wxwidgets 3.1.4

Post by New Pagodi »

The deb files for codeblocks need to use the system's wxWidgets package. So you'll need to install that if you want to use codeblocks.

wxWidgets can work with different versions installed. However the project files for codeblocks will use the system package by default and you'll need to change some options to use the your installation of 3.1.4. I forget exactly how to do that.
martynwheeler
In need of some credit
In need of some credit
Posts: 8
Joined: Thu Feb 11, 2021 7:53 pm

Re: Codeblocks install with wxwidgets 3.1.4

Post by martynwheeler »

Ah, that explains it. I will have a dig around. Could I install the system wxwidgets libs and use

>update-alternatives --config wx-config

To make 3.1.4 the default after I install codeblocks or will that break codeblocks.

I have just installed codelite, it seems quite nice so I may just go with that (I am new to Linux IDEs - I have been using vs code up until now - is codelite similar in operation/features to codeblocks?).

Thank you again for your help
Martyn
New Pagodi
Super wx Problem Solver
Super wx Problem Solver
Posts: 466
Joined: Tue Jun 20, 2006 6:47 pm
Contact:

Re: Codeblocks install with wxwidgets 3.1.4

Post by New Pagodi »

I've only ever used codeblocks, so I don't know.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Codeblocks install with wxwidgets 3.1.4

Post by ONEEYEMAN »

Hi,
There is a 3rd alternative - Anjuta.
This IDE can use any wxWidgets version - installed or not.
Let me know if you need help with it.

Thank you.
DavidHart
Site Admin
Site Admin
Posts: 4252
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: Codeblocks install with wxwidgets 3.1.4

Post by DavidHart »

Hi,

I use (and help out on) CodeLite. You could install a deb from its repo which will have a self-contained wx3.1.4, so you don't need to do anything special to get a different wx build to work.
Or you can use the official focal codelite* debs (presumably that's what you've just installed); they would have brought in the focal wx3.0 runtime debs too, but not their -dev packages so you wouldn't need to use update-alternatives. However you were right: that would have been the quickest way to select a particular installed wx build.
There is a 3rd alternative - Anjuta.
There are several alternatives, some more sensible than others....

Regards,

David
martynwheeler
In need of some credit
In need of some credit
Posts: 8
Joined: Thu Feb 11, 2021 7:53 pm

Re: Codeblocks install with wxwidgets 3.1.4

Post by martynwheeler »

DavidHart wrote: Fri Feb 12, 2021 7:57 am
Or you can use the official focal codelite* debs (presumably that's what you've just installed); they would have brought in the focal wx3.0 runtime debs too, but not their -dev packages so you wouldn't need to use update-alternatives. However you were right: that would have been the quickest way to select a particular installed wx build.
I installed the latest debs - so have version 15. It looks very nice, just need to have a play.
martynwheeler
In need of some credit
In need of some credit
Posts: 8
Joined: Thu Feb 11, 2021 7:53 pm

Re: Codeblocks install with wxwidgets 3.1.4

Post by martynwheeler »

ONEEYEMAN wrote: Fri Feb 12, 2021 6:20 am Hi,
There is a 3rd alternative - Anjuta.
This IDE can use any wxWidgets version - installed or not.
Let me know if you need help with it.

Thank you.
Thank you for that, I will download it later. I assume that it has a RAD interface for making GUIs too.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Codeblocks install with wxwidgets 3.1.4

Post by ONEEYEMAN »

Hi,
Anjuta is GTK IDE, and so have GTK RAD tool.
I personally use wxGlade which work nicely.

Thank you.
Post Reply