2014-10-03 120 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