[Build] Error in gs_alreadySetSwapInterval (wxGTK) (Issue #24076)

61 views
Skip to first unread message

meerfrau

unread,
Nov 21, 2023, 1:31:47 PM11/21/23
to wx-...@googlegroups.com, Subscribed

Build System Used

  • CMake
  • configure
  • mingw32-make with makefile.gcc
  • MSBuild (Microsoft Visual Studio solution file)
  • nmake with makefile.vc
  • Xcode
  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

Description

[ 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

Platform and version information

  • wxWidgets version you are building: 3.2.4
  • wxWidgets port you are building: wxGTK
  • OS and its version: ArchLinux
  • Compiler being used: gcc 13.2.1
  • Non-default compiler options, if any :

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.Message ID: <wxWidgets/wxWidgets/issues/24076@github.com>

VZ

unread,
Nov 22, 2023, 9:58:54 PM11/22/23
to wx-...@googlegroups.com, Subscribed

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.Message ID: <wxWidgets/wxWidgets/issues/24076/1823560854@github.com>

UnitedMarsupials

unread,
Dec 2, 2023, 4:39:10 PM12/2/23
to wx-...@googlegroups.com, Subscribed

Oops, sorry, we should definitely define gs_alreadySetSwapInterval outside of GDK_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.Message ID: <wxWidgets/wxWidgets/issues/24076/1837198212@github.com>

VZ

unread,
Dec 2, 2023, 5:13:25 PM12/2/23
to wx-...@googlegroups.com, Subscribed

we should definitely define gs_alreadySetSwapInterval outside of GDK_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.Message ID: <wxWidgets/wxWidgets/issues/24076/1837205879@github.com>

VZ

unread,
May 5, 2024, 12:54:34 PM5/5/24
to wx-...@googlegroups.com, Subscribed

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.Message ID: <wxWidgets/wxWidgets/issue/24076/issue_event/12707339536@github.com>

VZ

unread,
May 5, 2024, 12:54:35 PM5/5/24
to wx-...@googlegroups.com, Subscribed

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.Message ID: <wxWidgets/wxWidgets/issues/24076/2094799329@github.com>

Reply all
Reply to author
Forward
0 new messages