【问题标题】:compiling gtk+3 project with msys on windows在 windows 上用 msys 编译 gtk+3 项目
【发布时间】:2017-08-31 03:24:13
【问题描述】:

我正在尝试在 Windows 上编译一个依赖于 gtk+-3.0 的 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.

我做错了什么?

【问题讨论】:

    标签: windows gtk3 msys2


    【解决方案1】:

    问题是由于直接从 bash 编译而不是用于构建本机 32 位应用程序的 shell 环境设置 (msys2_shell.cmd -mingw32)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-02-09
      • 1970-01-01
      • 2011-05-16
      • 2011-07-12
      • 1970-01-01
      • 2023-03-03
      • 1970-01-01
      相关资源
      最近更新 更多