gtk 4 compile error

28 views
Skip to first unread message

Nerijus Baliunas

unread,
Dec 25, 2020, 5:22:54 PM12/25/20
to wx-...@googlegroups.com
Hello,

$ ../wxWidgets/configure --with-gtk=4 --enable-debug --enable-compat28

Configured wxWidgets 3.1.5 for `x86_64-pc-linux-gnu'

Which GUI toolkit should wxWidgets use? GTK+ 4 with support for libnotify
Should wxWidgets be compiled into single library? no
Should wxWidgets be linked as a shared library? yes
Should wxWidgets support Unicode? yes (using wchar_t)
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.8 yes
wxWidgets 3.0 yes
Which libraries should wxWidgets use?
STL no
jpeg sys
png sys
regex builtin
tiff sys
lzma yes
zlib sys
expat sys
libmspack no
sdl no

$ make
...

g++ -shared -fPIC -o /a/M/wxWindows.31/build.gtk4/lib/libwx_baseu-3.1.so.5.0.0 basedll_any.o basedll_appbase.o basedll_arcall.o basedll_arcfind.o basedll_archive.o basedll_arrstr.o basedll_base64.o basedll_clntdata.o basedll_cmdline.o basedll_config.o basedll_convauto.o basedll_datetime.o basedll_datetimefmt.o basedll_datstrm.o basedll_dircmn.o basedll_dynlib.o basedll_dynload.o basedll_encconv.o basedll_evtloopcmn.o basedll_extended.o basedll_ffile.o basedll_file.o basedll_fileback.o basedll_fileconf.o basedll_filefn.o basedll_filename.o basedll_filesys.o basedll_filtall.o basedll_filtfind.o basedll_fmapbase.o basedll_fs_arc.o basedll_fs_filter.o basedll_hash.o basedll_hashmap.o basedll_init.o basedll_intl.o basedll_ipcbase.o basedll_languageinfo.o basedll_list.o basedll_log.o basedll_longlong.o basedll_memory.o basedll_mimecmn.o basedll_module.o basedll_mstream.o basedll_numformatter.o basedll_object.o basedll_platinfo.o basedll_powercmn.o basedll_process.o basedll_regex.o
basedll
_stdpbase.o basedll_sstream.o basedll_stdstream.o basedll_stopwatch.o basedll_strconv.o basedll_stream.o basedll_string.o basedll_stringimpl.o basedll_stringops.o basedll_strvararg.o basedll_sysopt.o basedll_tarstrm.o basedll_textbuf.o basedll_textfile.o basedll_threadinfo.o basedll_time.o basedll_timercmn.o basedll_timerimpl.o basedll_tokenzr.o basedll_translation.o basedll_txtstrm.o basedll_unichar.o basedll_uri.o basedll_ustring.o basedll_variant.o basedll_wfstream.o basedll_wxcrt.o basedll_wxprintf.o basedll_xlocale.o basedll_xti.o basedll_xtistrm.o basedll_zipstrm.o basedll_zstream.o basedll_fswatchercmn.o basedll_fswatcherg.o basedll_common_secretstore.o basedll_lzmastream.o basedll_fdiodispatcher.o basedll_selectdispatcher.o basedll_appunix.o basedll_unix_dir.o basedll_dlunix.o basedll_epolldispatcher.o basedll_evtloopunix.o basedll_fdiounix.o basedll_unix_snglinst.o basedll_unix_stackwalk.o basedll_timerunx.o basedll_threadpsx.o basedll_utilsunx.o basedll_wakeuppipe.
o basedl
l_fswatcher_kqueue.o basedll_unix_mimetype.o basedll_
fswatcher_inotify.o basedll_unix_stdpaths.o basedll_unix_secretstore.o basedll_event.o basedll_fs_mem.o basedll_msgout.o basedll_utilscmn.o -L/a/M/wxWindows.31/build.gtk4/lib -Wl,-soname,libwx_baseu-3.1.so.5 -pthread -lwxregexu-3.1 -pthread -Wl,--version-script,/a/M/wxWindows.31/build.gtk4/version-script -lz -ldl -llzma -lm -lz -ldl -llzma -lm
(cd /a/M/wxWindows.31/build.gtk4/lib/; rm -f libwx_baseu-3.1.so libwx_baseu-3.1.so.5; ln -s libwx_baseu-3.1.so.5.0.0 libwx_baseu-3.1.so.5; ln -s libwx_baseu-3.1.so.5 libwx_baseu-3.1.so)
g++ -shared -fPIC -o /a/M/wxWindows.31/build.gtk4/lib/libwx_baseu_net-3.1.so.5.0.0 netdll_fs_inet.o netdll_ftp.o netdll_http.o netdll_protocol.o netdll_sckaddr.o netdll_sckfile.o netdll_sckipc.o netdll_sckstrm.o netdll_socket.o netdll_url.o netdll_socketiohandler.o netdll_sockunix.o -L/a/M/wxWindows.31/build.gtk4/lib -L/a/M/wxWindows.31/build.gtk4/lib -Wl,-soname,libwx_baseu_net-3.1.so.5 -pthread -lwxregexu-3.1 -pthread -Wl,--version-script,/a/M/wxWindows.31/build.gtk4/version-script -lz -ldl -llzma -lm -lwx_baseu-3.1 -lz -ldl -llzma -lm
(cd /a/M/wxWindows.31/build.gtk4/lib/; rm -f libwx_baseu_net-3.1.so libwx_baseu_net-3.1.so.5; ln -s libwx_baseu_net-3.1.so.5.0.0 libwx_baseu_net-3.1.so.5; ln -s libwx_baseu_net-3.1.so.5 libwx_baseu_net-3.1.so)
/a/M/wxWindows.31/build.gtk4/bk-deps g++ -c -o coredll_utilscmn.o -I../wxWidgets/src/regex -I/a/M/wxWindows.31/build.gtk4/lib/wx/include/gtk4-unicode-3.1 -I../wxWidgets/include -D_FILE_OFFSET_BITS=64 -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libxml2 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -mfpmath=sse -msse -msse2 -I/usr/include/gio-unix-2.0 -pthread -D__WXGTK__ -DWXBUILDING -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC -DPIC -pthread -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual -g -O0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/
glib-2.0
/include -I/usr/include/harfbuzz -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -fvisibility=hidden -fvisibility-inlines-hidden ../wxWidgets/src/common/utilscmn.cpp
In file included from /usr/include/gtk-4.0/gdk/gdkdisplay.h:31,
from /usr/include/gtk-4.0/gdk/gdk.h:44,
from /usr/include/gtk-4.0/gtk/gtk.h:31,
from ../wxWidgets/include/wx/gtk/private/wrapgtk.h:15,
from ../wxWidgets/src/common/utilscmn.cpp:109:
/usr/include/gtk-4.0/gdk/gdkevents.h:106:16: error: ‘struct’ tag used in naming ‘union _GdkEvent’ [-fpermissive]
106 | typedef struct _GdkEvent GdkEvent;
| ^~~~~~~~~
In file included from ../wxWidgets/include/wx/evtloop.h:298,
from ../wxWidgets/include/wx/unix/apptbase.h:14,
from ../wxWidgets/include/wx/apptrait.h:177,
from ../wxWidgets/src/common/utilscmn.cpp:69:
../wxWidgets/include/wx/gtk/evtloop.h:17:16: note: ‘union _GdkEvent’ was previously declared here
17 | typedef union _GdkEvent GdkEvent;
| ^~~~~~~~~
make: *** [Makefile:27199: coredll_utilscmn.o] Error 1

Regards,
Nerijus

Vadim Zeitlin

unread,
Dec 25, 2020, 5:24:17 PM12/25/20
to wx-...@googlegroups.com
On Sat, 26 Dec 2020 00:16:44 +0200 Nerijus Baliunas wrote:

NB> Hello,
NB>
NB> $ ../wxWidgets/configure --with-gtk=4 --enable-debug --enable-compat28

Hi Nerijus,

GTK 4 is not at all supported yet. There was a recent discussion about it
here but, in short, there is a lot of work to do and I have no idea when
and how will this happen.

We should make it more clear that this is not expected to work currently,
I guess...

Regards,
VZ

Nerijus Baliunas

unread,
Dec 25, 2020, 5:32:50 PM12/25/20
to wx-...@googlegroups.com
On Fri, 25 Dec 2020 23:24:14 +0100 Vadim Zeitlin <va...@wxwidgets.org> wrote:

> NB> $ ../wxWidgets/configure --with-gtk=4 --enable-debug --enable-compat28
>
> GTK 4 is not at all supported yet. There was a recent discussion about it
> here but, in short, there is a lot of work to do and I have no idea when
> and how will this happen.
>
> We should make it more clear that this is not expected to work currently,
> I guess...

Yes, configure should not accept --with-gtk=4 then.

Regards,
Nerijus

Vadim Zeitlin

unread,
Dec 25, 2020, 5:37:03 PM12/25/20
to wx-...@googlegroups.com
On Sat, 26 Dec 2020 00:31:30 +0200 Nerijus Baliunas wrote:

NB> On Fri, 25 Dec 2020 23:24:14 +0100 Vadim Zeitlin <va...@wxwidgets.org> wrote:
NB>
NB> > NB> $ ../wxWidgets/configure --with-gtk=4 --enable-debug --enable-compat28
NB> >
NB> > GTK 4 is not at all supported yet. There was a recent discussion about it
NB> > here but, in short, there is a lot of work to do and I have no idea when
NB> > and how will this happen.
NB> >
NB> > We should make it more clear that this is not expected to work currently,
NB> > I guess...
NB>
NB> Yes, configure should not accept --with-gtk=4 then.

Well, this is still useful for testing by those brave enough to try
working on it...

Regards,
VZ
Reply all
Reply to author
Forward
0 new messages