把人家的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