【发布时间】:2013-10-11 12:36:07
【问题描述】:
我想开始学习 QT。我使用的是 Ubuntu,所以我从软件中心安装了 QT,并创建了一个 HTML5 项目,我试图让它运行,但我遇到了很多错误,所以我做了以下解决了其中的一些问题:
sudo apt-get install qtquick1-5-dev qtlocation5-dev qtsensors5-dev qtdeclarative5-dev
sudo apt-get install libxslt1-dev
但现在仍然得到这个:
:-1: error: cannot find -lgio-2.0
:-1: error: cannot find -lgstapp-0.10
:-1: error: cannot find -lgstinterfaces-0.10
:-1: error: cannot find -lgstpbutils-0.10
:-1: error: cannot find -lgstvideo-0.10
:-1: error: cannot find -lgstbase-0.10
:-1: error: cannot find -lgstreamer-0.10
:-1: error: cannot find -lgobject-2.0
:-1: error: cannot find -lgmodule-2.0
:-1: error: cannot find -lgthread-2.0
:-1: error: cannot find -lglib-2.0
:-1: error: cannot find -lsqlite3
那我该怎么办,如何安装所有缺少的库?
【问题讨论】:
-
您是否在路径中添加了这些库?还是在 -L 参数中?如果您将这些库放在与 /usr/lib 不同的位置,则应将 -L/Your/Libraries/Place
-
你能展示你的 .pro 文件吗?