简体   繁体   English

在Windows上设置Gtk开发

[英]Set up Gtk development on windows

I want to compile my program that uses Gtk(mm) for windows. 我想编译将Gtk(mm)用于Windows的程序。 So I have set up MinGW and MSys2 and downloaded a bunch of stuff via pacman. 因此,我设置了MinGW和MSys2,并通过pacman下载了很多东西。

Now when I try to compile my program using the following command: 现在,当我尝试使用以下命令编译程序时:

g++ Patte.cpp -o Patte -L/opt/lib `pkg-config gstreamer-1.0 gstreamer-video-1.0 gtkmm-3.0 --cflags --libs`

The compiler fails reporting that it cannot find the following file that I include: 编译器无法报告无法找到我包含的以下文件:

#include <gdk/gdkx.h>

Can someone maybe help me with this error? 有人可以帮我解决这个错误吗? I would be very grateful for your help. 谢谢您的帮助。

Edit: This line occurs after several includes that reference gstreamer, gtkmm and glib - so those seem to pass. 编辑:这行发生在几个包含该参考gstreamer,gtkmm和glib的文件之后-那些似乎通过了。

You are in the MinGW-w64 64-bit shell but you didn't install the toolchain yet. 您位于MinGW-w64 64位外壳程序中,但尚未安装工具链。

You should run: 您应该运行:

pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-gtkmm3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM