DnD example error msgs + weird behaviors
I compiled the dnd example from the others folder with CMake on Windows VM (Msys2). When I start the example it has weird behaviors, like when u drag the icon appears in one of the corners of the screen and some signals doesn't seem to trigger. Cmake used:
# Defines the minimal version allowed of cmake
cmake_minimum_required (VERSION 3.20)
# Set the C++ standard to c++20
set (CMAKE_CXX_STANDARD 20
CACHE PATH "C++ Standard version")
# Set to "ON" to debug makefile commands
set (CMAKE_VERBOSE_MAKEFILE ON)
# Defines the project name (also used as target name)
project (dnd)
# Adds the executable to the project
add_executable(${PROJECT_NAME})
# Searches for Gtkmm4-0
find_package (PkgConfig REQUIRED)
pkg_check_modules(GTKMM REQUIRED gtkmm-4.0)
# Add the source files to the executable
target_sources (${PROJECT_NAME}
PRIVATE
main.cc
dndwindow.cc dndwindow.h
dnd_images.h)
# Adds directory to the include path
target_include_directories (${PROJECT_NAME}
PUBLIC
${GTKMM_INCLUDE_DIRS})
# Links the gtkmm lib
target_link_libraries(${PROJECT_NAME}
PRIVATE
${GTKMM_LIBRARIES})
# Adds flags to the compiler
target_compile_options(${PROJECT_NAME}
PUBLIC
${GTKMM_OTHER})
And during execution it gives several messages:
** (process:4348): WARNING **: 09:35:09.903: Can't make the global C++ locale equal to the C locale.
locale::facet::_S_create_c_locale name not valid
C locale = English_United States.1252
Implementation unexpectedly missing WGL_ARB_extensions_string. Probably a libepoxy bug.
Implementation unexpectedly missing WGL_ARB_extensions_string. Probably a libepoxy bug.
Implementation unexpectedly missing WGL_ARB_extensions_string. Probably a libepoxy bug.
Implementation unexpectedly missing WGL_ARB_extensions_string. Probably a libepoxy bug.
Implementation unexpectedly missing WGL_ARB_extensions_string. Probably a libepoxy bug.
Gsk-Message: 09:35:10.165: Failed to realize renderer of type 'GskNglRenderer' for surface 'GdkWin32Toplevel': Unable to create a GL context
Gsk-Message: 09:35:10.165: Failed to realize renderer of type 'GskNglRenderer' for surface 'GdkWin32Toplevel': Unable to create a GL context
repeats every time I try to drag&drop something.