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.1
PATH=$QTDIR/5.4/gcc_64/bin:$PATH:$HOME/bin:$QTDIR/Tools/QtCreator/bin
MANPATH=$QTDIR/doc/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export 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 directory
See the manual page for dbus-uuidgen to correct this issue.
D-Bus not built with -rdynamic so unable to print a backtrace
Aborted
Centos设置gcc /g++ include
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/109518.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...