[ ERROR1 ] cannot find -lGL
[SOLUTION] sudo apt-get install libgl1-mesa-dev
[ ERROR2] QSqlDatabase: QMYSQL driver not loaded
[SOLUTION]
Step1: cd /home/xxx/Qt5.1.1/5.1.1/Src/qtbase/src/plugins/sqldrivers/mysql
Step2: sudo apt-get install libmysqlclient-dev
Step3: qmake "INCLUDEPATH+=/usr/local/include" "LIBS+=-L/usr/local/lib -lmysqlclient_r" mysql.pro
Step4: make && sudo make install
[ ERROR3 ] qmake: could not find a Qt installation of ''
[SOLUTION] 重装Qt,执行[ERROR2] Step3和Step4
[ ERROR4 ] Qt中连接Mysql出现错误:"warning: GDB: Failed to set controlling terminal: Invalid argument\n"
[SOLUTION] 去/etc/ld.so.conf.d目录下创建Qt.conf,进入qt安装后库执行sudo ldconfig
[ERROR5] error: forward declaration of 'struct Ui::Login'
[SOLUTION] #include "ui_login.h"
[ERROR6] Error - RtlWerpReportException failed with status code :-1073741823
[SOLUTION] Debug模式运行,查看提示处是否是引用了未初始化的指针变量,确保引用的指针分配了内存