gpt4 book ai didi

c++ - 构建 WxWidgets 示例程序时的错误消息

转载 作者:行者123 更新时间:2023-12-04 18:39:39 25 4
gpt4 key购买 nike

我试图按照说明 here设置 WxWidgets。

我已经成功运行命令 wx-config --versionwx-config --list但不是编译最小示例的命令,它们是:

cd gtk-build/samples/minimal
制作
./最小

经过大量显示消息后,我到达:

/usr/bin/ld: cannot find -lwxtiff-3.1
/usr/bin/ld: cannot find -lwxjpeg-3.1
/usr/bin/ld: cannot find -lwxregexu-3.1
collect2: error: ld returned 1 exit status
make: *** [minimal] Error 1
Makefile:149: recipe for target 'minimal' failed
The command '/bin/sh -c make' returned a non-zero code: 2

我错过了一些图书馆的安装吗?

有一个类似的 question for windows here ,但那里的答案似乎不适用于linux。

最佳答案

首先请看official instructions而不是 wiki,它可能是最新的,也可能不是最新的。

其次,通过运行 make clean您删除了树内 makefile 使用的库。所以,不出所料,你不能再使用它们了,但你可以使用 makefile.unx来自源代码树,即如果 wx-config在您的 PATH 中, 只需使用 make -f makefile.unx$wx/samples/minimal (而不是在 gtk-build/samples/minimal 下)。

关于c++ - 构建 WxWidgets 示例程序时的错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61080332/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com