window id required even with wx built with --disable-gui

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
nmset
Knows some wx things
Knows some wx things
Posts: 32
Joined: Fri Nov 26, 2010 4:48 pm

window id required even with wx built with --disable-gui

Post by nmset » Fri Apr 24, 2020 4:57 pm

After pulling to ca7760ccb19b, a project based on wxWidgets configured with --disable-gui namely, no longer compiles :

Code: Select all

/usr/local/wxWidgets-nogui/include/wx-3.1/wx/utils.h:23:10: fatal error: wx/windowid.h: No such file or directory
   23 | #include "wx/windowid.h"
wx/utils.h includes wx/windowid.h, while there are no GUI elements in the built wx libs.

It seems to be a bug. I wish a confirmation from you before reporting it.

Regards.

stahta01
Super wx Problem Solver
Super wx Problem Solver
Posts: 365
Joined: Fri Nov 03, 2006 2:00 pm

Re: window id required even with wx built with --disable-gui

Post by stahta01 » Fri Apr 24, 2020 7:41 pm

Looks like an bug to me.

Tim S.

nmset
Knows some wx things
Knows some wx things
Posts: 32
Joined: Fri Nov 26, 2010 4:48 pm

Re: window id required even with wx built with --disable-gui

Post by nmset » Fri Apr 24, 2020 7:59 pm

I've bisected with these results :
$ git bisect log
git bisect start
# bad: [ca7760ccb19b602b8f273d68bab57889ac1eaedd] Remove redundant patterns from .gitignore
git bisect bad ca7760ccb19b602b8f273d68bab57889ac1eaedd
# good: [20269a58c0d8b1cefcb70562088e5f0c2299c6c4] Avoid spurious assert failures in wxGenericStaticBitmap
git bisect good 20269a58c0d8b1cefcb70562088e5f0c2299c6c4
# bad: [c4a95ab32c906cfacfccc552b504e62f4022d8dc] Merge branch 'grid-live-resize'
git bisect bad c4a95ab32c906cfacfccc552b504e62f4022d8dc
# bad: [101487730262180a20f0b05c32a81a66535aef8a] Slightly reorganize last column width calculation
git bisect bad 101487730262180a20f0b05c32a81a66535aef8a
# good: [4ebde54d417749344e7e54a202a2abccc449ed97] Only show IE specific menus in webview sample when using IE
git bisect good 4ebde54d417749344e7e54a202a2abccc449ed97
# bad: [db4c025e423bd6bdc01c99f166e82b7b1e81d9d5] Document wxRadioButton relationship with focus in wxMSW
git bisect bad db4c025e423bd6bdc01c99f166e82b7b1e81d9d5
# good: [1b6856931a6627f9507d50bd81c07873578418e1] Fix problem with dragged icon remaining on screen under MSW 10
git bisect good 1b6856931a6627f9507d50bd81c07873578418e1
# bad: [b02fbafb9608f6362256ac034cd5b7e6f6fbeb01] Don't update wxDataViewColumn after it was resized interactively
git bisect bad b02fbafb9608f6362256ac034cd5b7e6f6fbeb01
# bad: [e8b8b0288f7172253547fc9850b7fba06df5ef89] Make wxNewId() and others return/take wxWindowID rather than int
git bisect bad e8b8b0288f7172253547fc9850b7fba06df5ef89
# good: [f5548e399efeb0e4ffcddc468033c93b5eef276a] Fix problem with dragged icon remaining on screen under MSW 10
git bisect good f5548e399efeb0e4ffcddc468033c93b5eef276a
# good: [fdc2e1b8bde3668316cb35e022f6b1f1c45c1355] Merge branch 'grid-ellipsize'
git bisect good fdc2e1b8bde3668316cb35e022f6b1f1c45c1355
# first bad commit: [e8b8b0288f7172253547fc9850b7fba06df5ef89] Make wxNewId() and others return/take wxWindowID rather than int
What do you think ?

User avatar
doublemax
Moderator
Moderator
Posts: 15065
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: window id required even with wx built with --disable-gui

Post by doublemax » Fri Apr 24, 2020 8:30 pm

Just open a ticket a see what the devs think.
Use the source, Luke!

New Pagodi
Super wx Problem Solver
Super wx Problem Solver
Posts: 352
Joined: Tue Jun 20, 2006 6:47 pm
Contact:

Re: window id required even with wx built with --disable-gui

Post by New Pagodi » Fri Apr 24, 2020 8:32 pm

This was discussed in the comments here and should have been fixed by this PR.

If there is still and issue, you should probably mention it in the comments for the second PR or open and issue on trac.

nmset
Knows some wx things
Knows some wx things
Posts: 32
Joined: Fri Nov 26, 2010 4:48 pm

Re: window id required even with wx built with --disable-gui

Post by nmset » Sat Apr 25, 2020 2:20 pm

After reverting e8b8b0288 and further commenting #include wx/windowid.h, I could get a usable wx build when configured with --disable-gui.

Will just keep a branch as such.

Thanks for your replies.

Post Reply