用Qt5.2编译一个在Qt5.1.1下能正常编译的程序,出现如下链接错误
/usr/bin/ld: cannot find -lxslt /usr/bin/ld: cannot find -lgio-2.0 /usr/bin/ld: cannot find -lgstapp-0.10 /usr/bin/ld: cannot find -lgstinterfaces-0.10 /usr/bin/ld: cannot find -lgstpbutils-0.10 /usr/bin/ld: cannot find -lgstvideo-0.10 /usr/bin/ld: cannot find -lgstbase-0.10 /usr/bin/ld: cannot find -lgstreamer-0.10 /usr/bin/ld: cannot find -lgobject-2.0 /usr/bin/ld: cannot find -lgmodule-2.0 /usr/bin/ld: cannot find -lgthread-2.0 /usr/bin/ld: cannot find -lglib-2.0 该程序使用到webkit,猜测Qt5.2的webkit使用了更加新的动态库导致的链接错误. 安装如下新库,问题解决: sudo apt-get install libxslt-dev sudo apt-get install libgio2.0-cil-dev sudo apt-get install libglib2.0-dev sudo apt-get install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev |