2014-10-03 118 views
1

我试图编译Qt 5.3.2库静态Linux 3.2.0-4-amd64g++ 4.7.2-5。我用这个命令来配置编译和安装的makefiles:链接器找不到qwebp库 - 静态Qt5.3.2编译

configure -prefix /usr/local/Qt5-static -debug -opensource -platform linux-g++ -opengl desktop -static -nomake examples -nomake tests -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -qt-harfbuzz -qt-pcre -qt-xkbcommon -qt-xcb 

这一步中的一切都已经正确完成了。其次,我跑:

make 

make install 

在我收到此错误的最后一步:

/usr/bin/ld: cannot find -lqwebp 
collect2: error: ld returned 1 exit status 

我从https://git.gitorious.org/qt/qt5.git下载源代码,并用于提交分配给v5.3.2 git的标签。

回答

0

找到你有这样的库libqwebp,然后将此dir -Ldir_path添加到编译选项。

+0

这是一个Qt的库 - 我不能拥有它,因为它应该被编译并链接到这个汇编中。我有WebP库(包含开发文件),但Qt需要QWebP。 – 2014-10-03 18:53:42

+0

编译后是否有这样的文件:./qtimageformats/plugins/imageformats/libqwebp.a? – RaFD 2014-10-04 07:19:36

+0

不,我没有,但我有libqwebp.prl。 – 2014-10-04 09:22:13