Author Topic: wxWidgets 3.1.6 has been released  (Read 2937 times)

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1112
wxWidgets 3.1.6 has been released
« on: April 04, 2022, 11:56:18 am »
wxWidgets 3.1.6 has just been released.

First compilation of C::B works flawlessly at the moment. The new wxBitmapBundle class will ease HiDPI support replacing many bitmaps with one SVG image.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5625
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: wxWidgets 3.1.6 has been released
« Reply #1 on: April 05, 2022, 01:40:21 am »
Good news.

It looks like Update checksums for 3.1.6 release files again

This maybe a fix (Use window scale factor for all MSW wxDCs associated with windows) after the initial 3.1.6 release.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 652
Re: wxWidgets 3.1.6 has been released
« Reply #2 on: April 05, 2022, 05:15:49 am »
Thanks. I have updated my local C::B build to wxWidgets 3.1.6 and C::B is running.

For other devs, remember to change the wxUSE_GRAPHICS_DIRECT2D define to 1.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 732
Re: wxWidgets 3.1.6 has been released
« Reply #3 on: April 05, 2022, 03:03:07 pm »
Apparently, wxWidgets 3.1.6 is still a release candidate (presently _rc2). But official version will be certainly proposed in a few hours ...
Windows 10 64 bits (21H2), svn C::B (last version or almost!), wxWidgets 3.2.1, Msys2 Compilers 12.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1112
Re: wxWidgets 3.1.6 has been released
« Reply #4 on: April 05, 2022, 06:22:29 pm »
It is official now (you may need to refresh the page). The zipped source is from rc2.

Offline jordi

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: wxWidgets 3.1.6 has been released
« Reply #5 on: April 05, 2022, 09:43:45 pm »
All right in Debian distribution

jordi@debian:~/source/codeblocks-code$ lsb_release -a
No LSB modules are available.
Distributor ID:   Debian
Description:   Debian GNU/Linux 11 (bullseye)
Release:   11
Codename:   bullseye
jordi@debian:~/source/codeblocks-code$ uname -a
Linux debian 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 GNU/Linux


make clean
export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"
./bootstrap
./configure --prefix=/home/jordi/build/ --with-wx-config=/usr/local/bin/wx-config
make all -j 10


Offline gd_on

  • Lives here!
  • ****
  • Posts: 732
Re: wxWidgets 3.1.6 has been released
« Reply #6 on: April 06, 2022, 07:47:25 pm »
I compiled and linked C::B (svn 12779 and 12780) with wxWidgets 3.1.6.
Normally, the interface should appear in French for me, but it's still in English. The same svn versions compiled and linked with wxWidgets 3.1.5 have the correct behaviour (appear in French with my configuration). C::B, with wxWidgets 3.1.6 seems to work as it should, but the interface stays in English, despite the fact that in Settings/View the French language is proposed and set for me.
In wxWidgets, I tried the internat sample : it seems to work as it should.
Is it a wxWidgets problem, a C::B one ?
Does anybody has such a problem ?

gd_on
« Last Edit: April 06, 2022, 09:21:48 pm by gd_on »
Windows 10 64 bits (21H2), svn C::B (last version or almost!), wxWidgets 3.2.1, Msys2 Compilers 12.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1112
Re: wxWidgets 3.1.6 has been released
« Reply #7 on: April 06, 2022, 07:56:26 pm »
There is a new wxUILocale class, may be related to it.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7298
    • My Best Post
Re: wxWidgets 3.1.6 has been released
« Reply #8 on: April 07, 2022, 04:14:44 am »
wxPython fails to build with wxWidgets 3.1.6; they removed a class name whose function was duplicated by another class.

Add more info
https://github.com/wxWidgets/wxWidgets/pull/2445
Replace DoGetBorderSize() with GetWindowBorderSize()

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5625
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: wxWidgets 3.1.6 has been released
« Reply #9 on: April 07, 2022, 04:36:50 am »
wxPython fails to build with wxWidgets 3.1.6; they removed a class name whose function was duplicated by another class.

Add more info
https://github.com/wxWidgets/wxWidgets/pull/2445
Replace DoGetBorderSize() with GetWindowBorderSize()

Tim S.

Hi, Tim, do you mean this will effect the native C++ wx library 3.1.6? Since we don't use wxPython in our C::B code base.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7298
    • My Best Post
Re: wxWidgets 3.1.6 has been released
« Reply #10 on: April 07, 2022, 04:57:05 am »
wxPython fails to build with wxWidgets 3.1.6; they removed a class name whose function was duplicated by another class.

Add more info
https://github.com/wxWidgets/wxWidgets/pull/2445
Replace DoGetBorderSize() with GetWindowBorderSize()

Tim S.

Hi, Tim, do you mean this will effect the native C++ wx library 3.1.6? Since we don't use wxPython in our C::B code base.

No, I have no idea if it effects C::B; it would be a build time error if it does.

But, wxWidgets 3.1.6 seems to be more breaking changes.

Edit: It is likely to only effect run-time problems on the old Python plugin; and, maybe not even in it.

Tim S.
« Last Edit: April 07, 2022, 04:58:55 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1112
Re: wxWidgets 3.1.6 has been released
« Reply #11 on: April 07, 2022, 10:36:00 am »
@gd_on, can you test again using the attached file? It is a renamed cpp.

If it does not work, please post the .mo (and installation instructions) so I can test locally.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 732
Re: wxWidgets 3.1.6 has been released
« Reply #12 on: April 07, 2022, 11:41:55 am »
I am testing this. I will give you the result this afternoon.
Nevertheless, the whole history for translating C::B is on the forum : https://forums.codeblocks.org/index.php/topic,1022.0.html . Installation instruction can also be found.
Last .mo files can be found on launchpad in : https://translations.launchpad.net/codeblocks-gd in the translation tab.
A spanish partial translation exist.
You simply put the choosen .mo file in C:\Program Files\CodeBlocks\share\CodeBlocks\locale\fr_FR for me but may be a es_ES sub folder for spanish. Then in Settings/Environment/View you choose the language and restart C::B to activate the translation.

gd_on
« Last Edit: April 07, 2022, 02:27:29 pm by gd_on »
Windows 10 64 bits (21H2), svn C::B (last version or almost!), wxWidgets 3.2.1, Msys2 Compilers 12.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1112
Re: wxWidgets 3.1.6 has been released
« Reply #13 on: April 07, 2022, 11:47:00 am »
I do not have a launchpad account.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 732
Re: wxWidgets 3.1.6 has been released
« Reply #14 on: April 07, 2022, 11:51:17 am »
as far as I know, it's not necessary to just download files.
Windows 10 64 bits (21H2), svn C::B (last version or almost!), wxWidgets 3.2.1, Msys2 Compilers 12.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).