关于gtk和glade,请高手指点
时间:2011-06-07
来源:互联网
在windows上用VMware虚拟机装的Ubuntu,装上QT好像有问题,在QT Creator新建文件输入任何include <QLabel>之类的,都是波浪线,不识别这些QT自带的库
我查过环境变量,应该没问题的啊,在etc的environment文件中环境变量是:PATH="usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/Trolltech/QtEmbedded-4.5.3/bin
以下是编译我的程序产生的错误信息,还请大家帮帮忙,我都整这个问题整了好几天,快抓狂了!
root@ubuntu:/opt/cm_reader_pro/click20110603# make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/QtEmbedded-4.5.3/mkspecs/qws/linux-x86-g++ -I. -I/usr/local/Trolltech/QtEmbedded-4.5.3/include/QtCore -I/usr/local/Trolltech/QtEmbedded-4.5.3/include/QtNetwork -I/usr/local/Trolltech/QtEmbedded-4.5.3/include/QtGui -I/usr/local/Trolltech/QtEmbedded-4.5.3/include/QtWebKit -I/usr/local/Trolltech/QtEmbedded-4.5.3/include -I. -I. -o 20110603.o 20110603.cpp
In file included from 20110603.cpp:1:
./20110603.h:1:9: error: macro names must be identifiers
20110603.cpp:3: error: ‘MainWindow’ has not been declared
20110603.cpp:3: error: expected constructor, destructor, or type conversion before ‘(’ token
20110603.cpp:9: error: ‘MainWindow’ has not been declared
20110603.cpp:9: error: ‘QObject’ was not declared in this scope
20110603.cpp:9: error: ‘target’ was not declared in this scope
20110603.cpp:9: error: ‘QEvent’ was not declared in this scope
20110603.cpp:9: error: ‘event’ was not declared in this scope
20110603.cpp:9: error: initializer expression list treated as compound expression
20110603.cpp:10: error: expected ‘,’ or ‘;’ before ‘{’ token
make: *** [20110603.o] Error 1
我查过环境变量,应该没问题的啊,在etc的environment文件中环境变量是:PATH="usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/Trolltech/QtEmbedded-4.5.3/bin
以下是编译我的程序产生的错误信息,还请大家帮帮忙,我都整这个问题整了好几天,快抓狂了!
root@ubuntu:/opt/cm_reader_pro/click20110603# make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/QtEmbedded-4.5.3/mkspecs/qws/linux-x86-g++ -I. -I/usr/local/Trolltech/QtEmbedded-4.5.3/include/QtCore -I/usr/local/Trolltech/QtEmbedded-4.5.3/include/QtNetwork -I/usr/local/Trolltech/QtEmbedded-4.5.3/include/QtGui -I/usr/local/Trolltech/QtEmbedded-4.5.3/include/QtWebKit -I/usr/local/Trolltech/QtEmbedded-4.5.3/include -I. -I. -o 20110603.o 20110603.cpp
In file included from 20110603.cpp:1:
./20110603.h:1:9: error: macro names must be identifiers
20110603.cpp:3: error: ‘MainWindow’ has not been declared
20110603.cpp:3: error: expected constructor, destructor, or type conversion before ‘(’ token
20110603.cpp:9: error: ‘MainWindow’ has not been declared
20110603.cpp:9: error: ‘QObject’ was not declared in this scope
20110603.cpp:9: error: ‘target’ was not declared in this scope
20110603.cpp:9: error: ‘QEvent’ was not declared in this scope
20110603.cpp:9: error: ‘event’ was not declared in this scope
20110603.cpp:9: error: initializer expression list treated as compound expression
20110603.cpp:10: error: expected ‘,’ or ‘;’ before ‘{’ token
make: *** [20110603.o] Error 1
作者: chemmyhuang 发布时间: 2011-06-07
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28