Linkage against libQt5Core

时光毁灭记忆、已成空白 提交于 2019-12-03 22:31:53

I came across the same problem. but I find my way out just by this code.

export  LD_LIBRARY_PATH=/usr/local/Qt/5.5/gcc_64/lib:$LD_LIBRARY_PATH
Campeanu Claudiu

In my case it worked after I made 3 symbolic links. The lib was installed but I had a newer version (55) than the one expected (54).

sudo ln -s /usr/local/Qt/5.5/gcc_64/lib/libicui18n.so.54 /usr/lib/x86_64-linux-gnu/libicui18n.so.54
sudo ln -s /usr/local/Qt/5.5/gcc_64/lib/libicuuc.so.54 /usr/lib/x86_64-linux-gnu/libicuuc.so.54
sudo ln -s /usr/local/Qt/5.5/gcc_64/lib/libicudata.so.54 /usr/lib/x86_64-linux-gnu/libicudata.so.54

I get such errors when I was trying to build my project under Debian 8 (with libicu52 from official repository) from QtCreator. I solved it by changing 'Environment' for my Qt Kit (5.8.0) to: LD_LIBRARY_PATH=/opt/Qt/5.8/gcc_64/lib:${LD_LIBRARY_PATH}.

Screenshot: Changes marked by red line

I get this error when I was trying to build Iris under Ubuntu. I solved it by removing CONFIG += static from the .pro file

Try to add -licuuc to the LDFLAGS of the makefile.

sudo apt-get install libicu-dev
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!