安装qt5.3.2后,qtcreator在ubuntu 11.04无法启动的问题

在官方网站下载.run文件安装后,qtcreator启动失败,然后找到命令行启动,失败原因如下:

shr@shr-Sieyuan:~/Qt5.3.2/Tools/QtCreator/bin$ ./qtcreator
QXcbConnection: Failed to initialize XRandr
Qt: XKEYBOARD extension not present on the X server.
Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
Could not initialize OpenGL
已放弃

查找尝试后,按以下方式解决:

1、更新sources.list,升级gcc4.6(ubuntu 11.04默认最高版本为gcc4.5;解决GLIBCXX_3.4.15 not found的问题)

 sudo add-apt-repository ppa:ubuntu-toolchain-r/test

  sudo apt-get update

sudo apt-get install gcc-4.6

2、修改qtcreator的启动参数

home/shr/Qt5.3.2/Tools/QtCreator/bin/qtcreator -noload Welcome

(完)

上一篇:java反射学习之二万能EXCEL导出


下一篇:nginx的location、root、alias指令用法和区别