我试图在依赖于gtk + -3.0的Windows上编译一个C项目(使用msys来构建它)。这是我安装的gtk软件包列表:
$ pacman -Ss gtk | grep installed
mingw32/mingw-w64-i686-glib2 2.52.3-1 [installed]
mingw32/mingw-w64-i686-gtk3 3.22.18-1 [installed]
mingw32/mingw-w64-i686-gtkmm3 3.22.0-1 [installed]
mingw64/mingw-w64-x86_64-glib2 2.52.3-1 [installed]
msys/glib2 2.48.2-1 [installed]
但是,当我运行./configure
时,我收到以下错误:
checking for GTK... no
configure: error: Package requirements (gtk+-3.0 >= gtk_required_version) were not met:
No package 'gtk+-3.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables GTK_CFLAGS and GTK_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
我做错了什么?
答案 0 :(得分:0)
问题是由于直接从bash
编译而不是用于构建本机32位应用程序的shell环境设置(msys2_shell.cmd -mingw32
)