How to build GTK+ application with Visual Studio 2019?

余生颓废 提交于 2020-12-30 02:59:05

问题


I installed GTK+ 3.0 as described on https://www.gtk.org/download/windows.php I cloned the git and typed vcpkg install gtk:x64-windows Everything build well. I then opened Visual Studio 2019 and tried to create a console application using C++. I changed the project so it compiles in C instead of C++. However, when I type #include <gtk/gtk.h> it doesn't show on auto complete. I'm not sure where to go from here. Can someone give me any pointers? I want to build a statically linked gtk-3.0 application using visual studio 2019. I already designed the interface on Glade.


回答1:


Assuming you have ran the command "vcpkg integrate install" in your vcpkg directory, all you need to do is change the configuration in visual studio to x64 as shown in the screenshot.screenshot



来源:https://stackoverflow.com/questions/57717155/how-to-build-gtk-application-with-visual-studio-2019

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!