cmake -B build-gtk3 -S wxWidgets-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
-DwxBUILD_TOOLKIT=gtk3 \
-DwxUSE_OPENGL=ON \
-DwxUSE_REGEX=sys\
-DwxUSE_ZLIB=sys \
-DwxUSE_EXPAT=sys \
-DwxUSE_LIBJPEG=sys \
-DwxUSE_LIBPNG=sys \
-DwxUSE_LIBTIFF=sys \
-DwxUSE_LIBLZMA=sys \
-DwxUSE_PRIVATE_FONTS=ON \
-DwxUSE_GTKPRINT=ON
cmake --build build-gtk3
[ 87%] Building CXX object libs/gl/CMakeFiles/wxgl.dir/__/__/__/__/src/unix/glegl.cpp.o
./wxWidgets-3.2.4/src/unix/glegl.cpp: In member function 'virtual bool wxGLCanvasEGL::SwapBuffers()':
./wxWidgets-3.2.4/src/unix/glegl.cpp:813:11: error: 'gs_alreadySetSwapInterval' was not declared in this scope
813 | if ( !gs_alreadySetSwapInterval.count(this) )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [libs/gl/CMakeFiles/wxgl.dir/build.make:141: libs/gl/CMakeFiles/wxgl.dir/__/__/__/__/src/unix/glegl.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:794: libs/gl/CMakeFiles/wxgl.dir/all] Error 2
No Wayland, only X11!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Oops, sorry, we should definitely define gs_alreadySetSwapInterval
outside of GDK_WINDOWING_WAYLAND
check. I'll try to fix this a.s.a.p.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Oops, sorry, we should definitely define
gs_alreadySetSwapInterval
outside ofGDK_WINDOWING_WAYLAND
check. I'll try to fix this a.s.a.p.
Or, maybe, references to it should be GDK_WINDOWING_WAYLAND
-only? The section of wxGLCanvasEGL::SwapBuffers()
, which refers to the global variable, seems to indicate in the comments, that it is Wayland-only too.
Separately, in any case, the variable should be made static
, should it not?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
we should definitely define
gs_alreadySetSwapInterval
outside ofGDK_WINDOWING_WAYLAND
check. I'll try to fix this a.s.a.p.
Just in case this went unnoticed, I did fix it in the commit referenced above and I plan to merge it soon.
Or, maybe, references to it should be
GDK_WINDOWING_WAYLAND
-only?
No, it's really needed for X too.
Separately, in any case, the variable should be made
static
, should it not?
No, it shouldn't, it's inside an anonymous namespace and so already has static linkage.
Here is the patch proposed to the FreeBSD port of x11-toolkits/wxgtk32
Sorry, but I think my commit above is better, please use it instead.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Closed #24076 as completed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
This was fixed by b8dc0ee some time ago, but I forgot to close this issue.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.