Author Topic: wxWidgets 3.3.1 can only be used in the ucrt platform, not the mingw64 platform?  (Read 553 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6082
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Hi, when I looked at the packages of the msys2, here: https://packages.msys2.org/base/mingw-w64-wxwidgets3.3

I see it only has 3 platforms: ucrt, clang64, clangarm64.

While if you looked at the wxwidgets 3.2 ( https://packages.msys2.org/base/mingw-w64-wxwidgets3.2 ), I see extra platforms: mingw64.

Is it because that the 3.3.1 will support the dark mode, and the dark mode API are only supported by the ucrt library?

Thanks.

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 Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1759
I know that wx3.3.1 samples crash on exit if you use MinGW with MSVCRT, see this issue.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6082
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
I know that wx3.3.1 samples crash on exit if you use MinGW with MSVCRT, see this issue.

Thanks for the reply. I have seen your issue report before, but when I try to search the issue by your user name "Miguel Gimenez", I couldn't find it. Oh, I see your nickname in github is: "wh11204".

So, it crashed on 64bit Windows 7(Am I correct? I guess you are using 64bit Windows 7) with a 32bit compiler: i686-w64-mingw32, which is using MSVCRT library.

For me, I would still try to use a 64bit compiler which is MSVCRT library not UCRT, and I'd try on a 64bit Windows 10 PC first. Does anyone has tried this combination before?

 
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: 7794
    • My Best Post
I build Code::Blocks under MSys2 Mingw32 and MINGW64 about once a month; but, I really do not do enough testing to be sure it works.
Windows 10 64 bit

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6082
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
...

For me, I would still try to use a 64bit compiler which is MSVCRT library not UCRT, and I'd try on a 64bit Windows 10 PC first. Does anyone has tried this combination before?

I just did the test, and when I run the "minimal.exe" from the wx samples, I don't see the crash in my 64bit Windows 10 PC.

I'm using msys2/mingw64's gcc compiler 14.2.0, which is using MSVCRT library to build the wx 3.3.1 library and the minimal sample code.

Hi, Tim, thanks for the info.

My question still remains, if wx 3.3.1 works under MINGW64 platform, why msys2's package does not supply wx3.3.1 in this platform.
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: 7794
    • My Best Post
...

For me, I would still try to use a 64bit compiler which is MSVCRT library not UCRT, and I'd try on a 64bit Windows 10 PC first. Does anyone has tried this combination before?

I just did the test, and when I run the "minimal.exe" from the wx samples, I don't see the crash in my 64bit Windows 10 PC.

I'm using msys2/mingw64's gcc compiler 14.2.0, which is using MSVCRT library to build the wx 3.3.1 library and the minimal sample code.

Hi, Tim, thanks for the info.

My question still remains, if wx 3.3.1 works under MINGW64 platform, why msys2's package does not supply wx3.3.1 in this platform.

The MSys2 team no longer considers MINGW64 an fully maintained environment. Therefore, they are no longer creating new packages that support it.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org