簡體   English   中英

鏈接器找不到qwebp庫-靜態Qt5.3.2編譯

[英]Linker cannot find qwebp lib - static Qt5.3.2 compilation

我正在嘗試使用g++ 4.7.2-5Linux 3.2.0-4-amd64上靜態編譯Qt 5.3.2庫。 我使用以下命令來配置編譯和安裝makefile:

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標簽的提交。

找到您在哪里有這樣的庫libqwebp,然后將此dir -Ldir_path添加到編譯選項。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM