Author Topic: wxWidgets 3.0.3 released  (Read 1282 times)

Offline icequan233

  • Multiple posting newcomer
  • *
  • Posts: 31
Re: wxWidgets 3.0.3 released
« Reply #15 on: May 08, 2017, 07:08:10 am »
Another quesition: the codeblocks editor has some problem on hidpi, http://forums.codeblocks.org/index.php/topic,21789.0.html ,It seems our editor don't support hidpi,
the wxscintilla implement with scintilla based on wxWidgets, but the latest version of scintilla is imcompatible with our version(3.5.3), too many code need be updated in cb. but the wxstyledtextctrl
almost same with wxscintilla(???), Is it possible use wxstyledtextctrl? or has anyone update the code of wxscintilla? Thanks.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10019
Re: wxWidgets 3.0.3 released
« Reply #16 on: May 08, 2017, 11:44:04 am »
Is it possible use wxstyledtextctrl? or has anyone update the code of wxscintilla?
No and no, but I plan to try soon.
<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline gd_on

  • Regular
  • ***
  • Posts: 375
Re: wxWidgets 3.0.3 released
« Reply #17 on: May 22, 2017, 11:28:52 am »
Hi,
I tried to build CB with wxwidgets 3.0.3 and 3.1, but in 32 bits. Same problem : CB crash a few second after starts and almost same crash report as mentionned by killerbot.
In my case, I compile with TDM 4.9.2 version (I don't use 5.1 version, because of a bugged gfortran and I prefer to have only one set of compilers for my standard work !).
I also tried some newer windows gnu compilers (officials MinGW 6.2, 6.3 or 7.1, found on https://sourceforge.net/projects/mingw-w64/files/?source=navbar)
With 6.2, same CB problem, same crash.
With 6.3 and 7.1, there is already a problem in wxwidgets compilation (at link time), so no way to build CB (a double definition inside libuuid.a, strange !).

More, I have a question probably out of this topic :
I seems that TDM versions are more or less abandoned (I'm not sure, but I think so).
Have you (CB developpers) plans for MinGW compilers recommandations on Windows : which version, win32/posix, sjlj/dwarf/seh ...
For my tests, I tried posix-sjlj for 32 bits versions, and posix-seh for 64 bits versions, but I'm not sure it's the good (or best) choice.
I also tested with win32-sjlj but this makes no difference concerning CB crash or wxwidgets link error as far as I can see.

gd_on
Windows 10, svn C::B self generated (last version or almost!), WxWidgets 2.8.12, Compilers TDM 4.9.2 32 bits version (gcc and gfortran installed in C:\MinGW32). Tests with C::B 64 bits and WxWidgets 2.8.12 (64 bits) compiled by TDM 4.9.2 in C:\MinGW64

Online stahta01

  • Lives here!
  • ****
  • Posts: 5803
    • My Best Post
Re: wxWidgets 3.0.3 released
« Reply #18 on: May 22, 2017, 11:43:15 am »
With 6.3 and 7.1, there is already a problem in wxwidgets compilation (at link time), so no way to build CB (a double definition inside libuuid.a, strange !).

I traced the likely caused of the linking error of the Monolithic wxwidgets shared/DLL build to the MinGW64 C Runtime Library.
(I forget if I saw the issue with Monolithic wxwidgets static build; I really think that build makes no sense; and, rarely test it.)

I have yet to post in the MinGW64 mail/newsgroup to find out how to submit the fix and what type of fix the MinGW64 people would want. If you are using MSys2, I created a patch to fix the issue under it.

Edit: I read about a work around on the issue today; I will try to find it.
From https://github.com/Alexpux/MINGW-packages/issues/1761
Quote
I have found a workaround. Just pass the --allow-multiple-definition option to ld (use the -Wl, gcc option for that).
Not had time to test that work around.

Tim S.

« Last Edit: May 22, 2017, 11:47:56 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 Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gd_on

  • Regular
  • ***
  • Posts: 375
Re: wxWidgets 3.0.3 released
« Reply #19 on: May 22, 2017, 01:41:31 pm »
With the suggested "workaround", it's better to build wxwidgets 3.1 with MinGW 7.1.
I added LDFLAGS="-Wl,--allow-multiple-definition" on the make line.
Neverthess, when I try to build the samples tests cases, it compiles, but crashes when I launch executables ! :-[

And I "only" use Msys 1, so the patch may be not relevant.

And finally, no success to build CB until now : some incompatibilities in libwxmsw31u.a. I have added the -Wl,--allow-multiple-definition in linker option, but it's not sufficient.
I have to search more to find what's wrong.

gd_on
« Last Edit: May 22, 2017, 01:46:16 pm by gd_on »
Windows 10, svn C::B self generated (last version or almost!), WxWidgets 2.8.12, Compilers TDM 4.9.2 32 bits version (gcc and gfortran installed in C:\MinGW32). Tests with C::B 64 bits and WxWidgets 2.8.12 (64 bits) compiled by TDM 4.9.2 in C:\MinGW64

Offline gd_on

  • Regular
  • ***
  • Posts: 375
Re: wxWidgets 3.0.3 released
« Reply #20 on: May 23, 2017, 06:51:25 pm »
Finally, succeeded to build CB svn 11064 with wxwidgets 3.0.3, in 32 and 64 bits.
wxwidget has to be linked with the option  -Wl,--allow-multiple-definition as told previously.
And you must launch CB with the -ns command option to avoid a crash after startup.
Tested with TDM compilers 4.9.2 and standard MinGW compilers 6.3.0 (but in that case problem when compiling fortran project in parserf.cpp).

gd_on
« Last Edit: May 23, 2017, 07:16:40 pm by gd_on »
Windows 10, svn C::B self generated (last version or almost!), WxWidgets 2.8.12, Compilers TDM 4.9.2 32 bits version (gcc and gfortran installed in C:\MinGW32). Tests with C::B 64 bits and WxWidgets 2.8.12 (64 bits) compiled by TDM 4.9.2 in C:\MinGW64

Online killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5000
Re: wxWidgets 3.0.3 released
« Reply #21 on: May 23, 2017, 06:59:27 pm »
-ns, is indeed the same what I have concluded, it crashes in the destruction of the splash screen.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10019
Re: wxWidgets 3.0.3 released
« Reply #22 on: June 04, 2017, 09:30:21 am »
@killerbot: Any progress with the wx3.x based night builds?
<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline gd_on

  • Regular
  • ***
  • Posts: 375
Re: wxWidgets 3.0.3 released
« Reply #23 on: June 19, 2017, 06:44:25 pm »
svn 11090 looks OK on Windows.
No crash at startup so no need for -ns option (or code modification as tested by killerbot).

Thanks d_anselmi  ;)

gd_on
Windows 10, svn C::B self generated (last version or almost!), WxWidgets 2.8.12, Compilers TDM 4.9.2 32 bits version (gcc and gfortran installed in C:\MinGW32). Tests with C::B 64 bits and WxWidgets 2.8.12 (64 bits) compiled by TDM 4.9.2 in C:\MinGW64

Online killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5000
Re: wxWidgets 3.0.3 released
« Reply #24 on: June 19, 2017, 08:33:36 pm »
I will test again, the fix of that commit is in the SpellChecker ....

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 197
Re: wxWidgets 3.0.3 released
« Reply #25 on: June 20, 2017, 01:22:36 am »
It's not fixed yet. It doesn't crash at startup but SpellChecker is not working as intentended.
I got a workaround which is working with 3.0.3 on windows(see attachment). Not tested on Linux nor with 2.8.12.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10019
Re: wxWidgets 3.0.3 released
« Reply #26 on: June 20, 2017, 08:37:28 am »
@danselmi: Would it be possible to commit multiple changes in separate commits in the future? Your fix in the last commit is buried in tons of formatting changes and it is impossible to find what you've changed using online difftools (at sf and github).

For this patch: What is the problem you're trying to fix? You need to show a dialog if there are no dictionaries?
<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]