我正在尝试按照说明here设置WxWidgets。
我设法运行命令wx-config --version
和wx-config --list
,但没有运行用于编译最小示例的命令,它们是:
cd gtk-build / samples / minimal使./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
目录中运行gtk-build
。