Author Topic: wxWidgets 3.0.3 released  (Read 14862 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: 13413
    • Travis build status
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.
(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

  • Lives here!
  • ****
  • Posts: 795
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 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7576
    • 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 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gd_on

  • Lives here!
  • ****
  • Posts: 795
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 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline gd_on

  • Lives here!
  • ****
  • Posts: 795
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 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5489
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: 13413
    • Travis build status
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?
(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

  • Lives here!
  • ****
  • Posts: 795
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 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5489
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: 203
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: 13413
    • Travis build status
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?
(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 killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5489
Re: wxWidgets 3.0.3 released
« Reply #27 on: July 09, 2017, 11:39:13 pm »
I retested with today state of the code in svn. I can reactivate the splash code and CB starts nicely.

HOWEVER now I get an assert.

../../src/msw/bitmap.cpp(922): assert "image.IsOk()" failed in CreateFromImage(): invalid image

==> when hitting cancel CB continues to start (note this has nothing to do with splash screen, since I still got that when the splash screen code was commented out).



LOOKING IN cb LOG

Quote
23:44:35: Cannot load resources from 'memory:Cccc.zip#zip:*.xrc'.
23:44:35: Cannot load resources from 'memory:CppCheck.zip#zip:*.xrc'.
23:44:35: Cannot load resources from 'memory:Cscope.zip#zip:*.xrc'.
23:44:35: Cannot load resources from 'memory:DoxyBlocks.zip#zip:*.xrc'.
23:44:35: Cannot load resources from 'memory:EditorConfig.zip#zip:*.xrc'.
23:44:35: Cannot load resources from 'memory:headerfixup.zip#zip:*.xrc'.
23:44:35: Cannot load resources from 'memory:ThreadSearch.zip#zip:*.xrc'.
23:44:35: Cannot load resources from 'memory:ToolsPlus.zip#zip:*.xrc'.
23:44:36: Cannot load resources from 'memory:wxSmithAui.zip#zip:*.xrc'.

OR

Quote
Manager failed to load XRC resource 'D:\Codeblocks\src\output30_64\share\codeblocks\Cccc.zip'.
Manager failed to load XRC resource 'D:\Codeblocks\src\output30_64\share\codeblocks\CppCheck.zip'.
Manager failed to load XRC resource 'D:\Codeblocks\src\output30_64\share\codeblocks\Cscope.zip'.
Manager failed to load XRC resource 'D:\Codeblocks\src\output30_64\share\codeblocks\DoxyBlocks.zip'.
Manager failed to load XRC resource 'D:\Codeblocks\src\output30_64\share\codeblocks\EditorConfig.zip'.
Manager failed to load XRC resource 'D:\Codeblocks\src\output30_64\share\codeblocks\headerfixup.zip'.
Manager failed to load XRC resource 'D:\Codeblocks\src\output30_64\share\codeblocks\ThreadSearch.zip'.
Manager failed to load XRC resource 'D:\Codeblocks\src\output30_64\share\codeblocks\ToolsPlus.zip'.
Manager failed to load XRC resource 'D:\Codeblocks\src\output30_64\share\codeblocks\wxSmithAui.zip'.
===> this was already there on 22 April 2017 (svn rev 11053)
and also:

Quote
FortranProject plugin error: file D:\Codeblocks\src\output30_64\share\codeblocks/images/fortranproject/fortran_intrinsic_modules.f90 was not found.
FortranProject plugin error: file D:\Codeblocks\src\output30_64\share\codeblocks/images/fortranproject/fortran_procedures.f90 was not found.

and

Quote
SpellCheck Plugin: Error loading Online SpellChecking Configuration file "D:\Codeblocks\src\output30_64\share\codeblocks\SpellChecker\OnlineSpellChecking.xml"
SpellChecker: Thesaurus files 'D:\Codeblocks\src\output30_64\share\codeblocks\SpellChecker\th_en_US.idx' not found!
The thesaurus not found message was there already on 22 April.

The source code around 22 April did not have several of these problems.

For reminder : tdm-gcc 5.1, wx 3.0.3, 64 bit builds on Win10 64 bit.
« Last Edit: July 10, 2017, 01:17:50 pm by killerbot »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: wxWidgets 3.0.3 released
« Reply #28 on: July 10, 2017, 08:30:43 am »
You can find what triggers the assert if you a debugger and hit the stop button in the assert dialog.
(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

  • Lives here!
  • ****
  • Posts: 795
Re: wxWidgets 3.0.3 released
« Reply #29 on: July 10, 2017, 07:38:40 pm »
I obtain almost the same problems as Killerbot except the assert message : no assert for me.
The missing xrc does not seem to be a problem : plugins are loaded and seem to work. Effectively, in those zip files there are no .xrc files. No such messages with wx 2.8 (and no .xrc files too !).
I have not seen the message concerning fortran plugin (.f90 files missing).
The missing file th_en_US.idx is not specific to wx 30. I have also it with wx 2.8, but for me no problem with OnlineSpellChecking.xml. A possible solution : install LibreOffice.
I compiled wx 30 and CB with official MinGW 6.3 version in 32 and 64 bits.

gd_on
« Last Edit: July 11, 2017, 08:35:53 am by gd_on »
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).