在官方网站下载.run文件安装后,qtcreator启动失败,然后找到命令行启动,失败原因如下:
[email protected]:~/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
(完)
时间: 2024-10-10 15:04:38