You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why on Windows the GTKMM library uses PangoFcFont? It says "invalid cast from 'PangoCairoWin32Font' to 'PangoFcFont'" and the application refuses to launch.
#40761
Hello! I am new to vcpkg and gtkmm library. Recently I want to build some cross-platform GUI application while learning a GUI framework, so I tried to install gtkmm with vcpkg on windows. However, when launching the helloworld app just compiled, I met an error "GLib-GObject-CRITICAL **: 00:42:33.816: invalid cast from 'PangoCairoWin32Font' to 'PangoFcFont'". I think it may because the compiler or code fails to select the proper font backend according to my platform. Why is that?
My compiler is MSVC. To build the project, I opened a developer powershell for visual studio, located to the project, executed cmake --preset=default and then cmake --build build. Here are my code:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! I am new to vcpkg and gtkmm library. Recently I want to build some cross-platform GUI application while learning a GUI framework, so I tried to install gtkmm with vcpkg on windows. However, when launching the helloworld app just compiled, I met an error "GLib-GObject-CRITICAL **: 00:42:33.816: invalid cast from 'PangoCairoWin32Font' to 'PangoFcFont'". I think it may because the compiler or code fails to select the proper font backend according to my platform. Why is that?
My compiler is MSVC. To build the project, I opened a developer powershell for visual studio, located to the project, executed
cmake --preset=default
and thencmake --build build
. Here are my code:CMakeLists.txt
CMakePresets.json
CMakeUserPresets.json
HelloWorld.cpp
vcpkg-configuration.json
vcpkg.json
Beta Was this translation helpful? Give feedback.
All reactions