• 5079阅读
  • 3回复

qt初学者疑惑:运行几个demo,都运行不起来 [复制链接]

上一主题 下一主题
离线aolit
 
只看楼主 倒序阅读 楼主  发表于: 2008-08-24
— 本帖被 XChinux 执行加亮操作(2008-08-25) —
把人家的demo放在qt目录下,然后
progen -t app.t -o main.pro
tmake -o Makefile main.pro
make
出现几百各错误,大都都是这样的



t@localhost src]# tmake -o Makefile main.pro
[root@localhost src]# vi Makefile
[root@localhost src]# make
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/px270/qtopia/x86/qt-2.3.10/include -o appcmmb.o appcmmb.cpp
appcmmb.cpp:16:21: appcmmb.h: 没有那个文件或目录
appcmmb.cpp:18: syntax error before `*' token
appcmmb.cpp:33: syntax error before `::' token
appcmmb.cpp:37: ISO C++ forbids declaration of `pInfo' with no type
appcmmb.cpp:37: parse error before `;' token
appcmmb.cpp:38: ISO C++ forbids declaration of `pDisplaySize' with no type
appcmmb.cpp:38: parse error before `;' token
appcmmb.cpp:43: syntax error before `->' token
appcmmb.cpp:46: syntax error before `->' token
appcmmb.cpp:47: syntax error before `->' token
appcmmb.cpp:48: syntax error before `->' token
appcmmb.cpp:49: syntax error before `->' token
appcmmb.cpp:51: ISO C++ forbids declaration of `cmmb_Vol' with no type
appcmmb.cpp:51: `get_volume' was not declared in this scope
appcmmb.cpp:53: parse error before `if'
appcmmb.cpp:58: ISO C++ forbids declaration of `Number' with no type
appcmmb.cpp:60: ISO C++ forbids declaration of `cmmb_PlayFrame' with no type
appcmmb.cpp:60: parse error before `(' token
appcmmb.cpp:61: syntax error before `->' token
appcmmb.cpp:62: syntax error before `->' token
appcmmb.cpp:63: syntax error before `->' token
appcmmb.cpp:65: ISO C++ forbids declaration of `cmmb_ScanFrame' with no type
appcmmb.cpp:65: parse error before `(' token
appcmmb.cpp:66: syntax error before `->' token
appcmmb.cpp:67: syntax error before `->' token
appcmmb.cpp:68: syntax error before `->' token
appcmmb.cpp:70: ISO C++ forbids declaration of `cmmb_InfoFrame' with no type
appcmmb.cpp:70: parse error before `(' token
appcmmb.cpp:71: syntax error before `->' token
appcmmb.cpp:72: syntax error before `->' token
appcmmb.cpp:73: syntax error before `->' token
appcmmb.cpp:75: ISO C++ forbids declaration of `cmmb_PlayList' with no type
appcmmb.cpp:75: parse error before `(' token
appcmmb.cpp:76: syntax error before `->' token
appcmmb.cpp:77: syntax error before `->' token
appcmmb.cpp:78: syntax error before `->' token
appcmmb.cpp:79: syntax error before `->' token
appcmmb.cpp:81: syntax error before `::' token
appcmmb.cpp:83: syntax error before `.' token
appcmmb.cpp:84: syntax error before `.' token
appcmmb.cpp:85: syntax error before `.' token
appcmmb.cpp:87: ISO C++ forbids declaration of `pCMMB' with no type
appcmmb.cpp:87: invalid use of `this' at top level
appcmmb.cpp:88: ISO C++ forbids declaration of `cmmb_Timer' with no type
appcmmb.cpp:88: parse error before `(' token
appcmmb.cpp:89: `timeout' was not declared in this scope
appcmmb.cpp:89: `SIGNAL' was not declared in this scope
appcmmb.cpp:89: invalid use of `this' at top level
appcmmb.cpp:89: `cmmb_TimeOut' was not declared in this scope
appcmmb.cpp:89: `SLOT' was not declared in this scope
appcmmb.cpp:89: ISO C++ forbids declaration of `connect' with no type
appcmmb.cpp:89: initializer list being treated as compound expression
appcmmb.cpp:92: invalid use of `this' at top level
appcmmb.cpp:92: `callbackevent' was not declared in this scope
appcmmb.cpp:92: `SIGNAL' was not declared in this scope
appcmmb.cpp:92: invalid use of `this' at top level
appcmmb.cpp:92: `cmmb_EventProcess' was not declared in this scope
appcmmb.cpp:92: `SLOT' was not declared in this scope
appcmmb.cpp:92: ISO C++ forbids declaration of `connect' with no type
appcmmb.cpp:92: redefinition of `int connect'
appcmmb.cpp:89: `int connect' previously defined here
appcmmb.cpp:92: initializer list being treated as compound expression
appcmmb.cpp:93: invalid use of `this' at top level
appcmmb.cpp:93: `callbacksearch' was not declared in this scope
appcmmb.cpp:93: `SIGNAL' was not declared in this scope
appcmmb.cpp:93: invalid use of `this' at top level
appcmmb.cpp:93: `cmmb_SearchCh' was not declared in this scope
appcmmb.cpp:93: `SLOT' was not declared in this scope
appcmmb.cpp:93: ISO C++ forbids declaration of `connect' with no type
appcmmb.cpp:93: redefinition of `int connect'
appcmmb.cpp:92: `int connect' previously defined here
appcmmb.cpp:93: initializer list being treated as compound expression
appcmmb.cpp:96: ISO C++ forbids declaration of `pCallBackCh' with no type
appcmmb.cpp:96: `cmmb_CallBackSearchCh' was not declared in this scope
appcmmb.cpp:97: ISO C++ forbids declaration of `pCallBack' with no type
appcmmb.cpp:97: `cmmb_CallBackEventProcess' was not declared in this scope
appcmmb.cpp:98: ISO C++ forbids declaration of `cmmb_State' with no type
appcmmb.cpp:98: `APP_CMMB_STATE_WARNING_MENU_WAITING' was not declared in this
  scope
appcmmb.cpp:100: ISO C++ forbids declaration of `ICMMBInitCmmbEntity' with no
  type
appcmmb.cpp:100: initializer list being treated as compound expression
appcmmb.cpp:102: parse error before `}' token
appcmmb.cpp:115: syntax error before `::' token
{standard input}: Assembler messages:
{standard input}:75: Error: symbol `connect' is already defined
{standard input}:81: Error: symbol `connect' is already defined
make: *** [appcmmb.o] Error 1
[root@localhost src]#
[root@localhost src]# echo $QTDIR
/px270/qtopia/x86/qt-2.3.10
[root@localhost src]# cd ..
[root@localhost appcmmb]# ./configure
bash: ./configure: 没有那个文件或目录
[root@localhost appcmmb]# ./configure
bash: ./configure: 没有那个文件或目录
[root@localhost app
离线aolit
只看该作者 1楼 发表于: 2008-08-24
我装的qt是2.3.10
是周立功的PX270的板子自带的安装文件,因为要在它上面开发,所以就这个安装文件装的qt
例子是在论坛的个人作品展示里面下的
离线jinyxin
只看该作者 2楼 发表于: 2008-08-24
放代码上来
离线aolit
只看该作者 3楼 发表于: 2008-08-24
代码就是个人作品里的计算机程序。。。。
快速回复
限100 字节
 
上一个 下一个