本文共 777 字,大约阅读时间需要 2 分钟。
1,QApplication 头文件不存在
qt4是基于offline 包安装的,而OS系统默认已经安装qt3
/usr/bin/ld: cannot find -lGL
yum -y install libGL libGL-devel;
开发环境首先要做的是gnome,vncserver,(for Centos6.5);
Qt 环境变量配置
#QT PATH
QTDIR=/opt/Qt5.4.1PATH=$QTDIR/5.4/gcc_64/bin:$PATH:$HOME/bin:$QTDIR/Tools/QtCreator/binMANPATH=$QTDIR/doc/man:$MANPATHLD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATHexport PATH QTDIR MANPATH LD_LIBRARY_PATH unset USERNAME
Qt调试
Qt: XKEYBOARD extension not present on the X server.
process 13438: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directorySee the manual page for dbus-uuidgen to correct this issue. D-Bus not built with -rdynamic so unable to print a backtraceAbortedCentos设置gcc /g++ include
转载地址:http://hoqbx.baihongyu.com/