Qt4.7.2安装问题
系统用的是ubuntu10.10,在官网上下了everywhere-opensource,编译安装完了设置好环境变量之后qmake uic moc都能用,但是designer assistant之类的都不能用,老提示找不到库,具体如下:root@baozi-virtual-machine:/usr/local/Trolltech/Qt-4.7.2/bin# qmake -v
QMake version 2.01a
Using Qt version 4.7.2 in /usr/local/Trolltech/Qt-4.7.2/lib
root@baozi-virtual-machine:/usr/local/Trolltech/Qt-4.7.2/bin# designer
designer: error while loading shared libraries: libQtDesignerComponents.so.4: cannot open shared object file: No such file or directory
环境变量的设置如下:
PATH=/usr/local/Trolltech/Qt-4.7.2/bin:$PATH
LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.7.2/lib:$LD_LIBRARY_PATH
是用一个setenv.sh文件放在Qt-4.7.2的目录下的。
小弟菜鸟一只,都快整崩溃了。还请高手解答啊
--------------------编程问答-------------------- 这个问题自己解决了。
原来在ubuntu下PATH和LD_LIBRARY_PATH要放在~/.bashrc下。
一个小错误搞了那么长时间,郁闷。
现在又有一个新的问题了,assistant打不开,具体如下:
root@baozi-virtual-machine:/usr/local/Trolltech/Qt-4.7.2/bin# ./assistant
Could not load translation file assistant_zh_CN in directory /opt/qt/translations.
Could not load translation file qt_zh_CN in directory /opt/qt/translations.
Could not load translation file qt_help_zh_CN in directory /opt/qt/translations.
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
Error reading collection file '/root/.local/share/data/Trolltech/Assistant/qthelpcollection_4.7.2.qhc': Cannot load sqlite database driver!.
带有数据库的程序也打不开,提示Database Error:Database not loaded Database not loaded
求高手解答啊
--------------------编程问答-------------------- 我也遇到这个问题了,好郁闷,怎么弄?? --------------------编程问答-------------------- 好办法是直接安装linuxdeepin,然后在软件中心安装qt-sdk,所有的一键搞定
补充:移动开发 , Qt