Linux下Qt学习——Qt Creator 安装与使用

时间:2014-03-21 23:50:49   收藏:0   阅读:784

    从今天开始在linux使用qt creator编程,虽然以前也用过,但是已经网的差不多了。先从官网上下载Qt 5.2.1 for Linux 32-bit (371 MB),我的系统是32位,所以下载这个。官网是http://qt-project.org/downloads。这是一个运行文件,在linux下双击安装即可,这里我是安装在默认目录:/home/chen/.

      安装完后,遇到两个错误:

      1、/home/chen/qt_program/test/test/test.cpp:1: error: QApplication: No such file or directory     #include <QApplication>

   解决办法:在.pro文件中添加QT += core gui widgets

    2、缺失库文件,使用命令安装:apt-get install libgl1-mesa-dev

       我的系统是ubuntukylin.

Linux下Qt学习——Qt Creator 安装与使用,布布扣,bubuko.com

原文:http://blog.csdn.net/chenhezhuyan/article/details/21747349

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!