「問題」編譯QT/E 所發生的問題

我們生活周遭存在太多太多的 embedded system ,過去 embedded system 有專屬的 OS,現在 linux 也可以應用在嵌入式環境,不過本版將廣泛討論所有嵌入式系統不只 linux 喔,歡迎有這方面經驗或有興趣的朋友一同進來討論。

版主: chester

「問題」編譯QT/E 所發生的問題

文章柯班長 » 週二 6月 15, 2010 4:16 am

因為學校專題需要所以必須使用到這方面的東西
請各位大哥大姐幫幫我

我的linux 為 ubuntu 10.04 版本
arm-linux-gcc-3.3.2 這是我的cross compiler版本

目前使用到
tmake-1.11
qt-x11-2.3.2
qt-embedded-2.3.7

尚未使用
qtopia-free-1.7.0

因為為初學者所以就照著網路上的資料弄
編譯後出現下面的訊息,當然裡面包含著錯誤訊息
發生這種錯誤我也不知道如何解決,請大家幫幫我

kerker@lab:/usr/QT_arm/qt-2.3.7$ cp /usr/QT_arm/qt-2.3.2/bin/uic ./bin
kerker@lab:/usr/QT_arm/qt-2.3.7$ ./configure -xplatform linux-arm-g++ -shared -qconfig local -qvfb -depths 4,8,16,32 -gif -system-jpeg

This is the Qt/Embedded Free Edition.

You are licensed to use this software under the terms of
the GNU General Public License (GPL).

Type 'G' to view the GNU General Public License.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of the license?
yes

Building on: linux-x86-g++-shared
Building for: linux-arm-g++-shared

Thread support..................... no
Configuration...................... qconfig-local.h

Creating makefiles...
Qt is now configured for building. Just run make.
To reconfigure, run make clean and configure.

kerker@lab:/usr/QT_arm/qt-2.3.7$ make
make[1]: Entering directory `/usr/QT_arm/qt-2.3.7'
cd src/moc; make
make[2]: Entering directory `/usr/QT_arm/qt-2.3.7/src/moc'
g++ -c -I/usr/QT_arm/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-exceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o mocgen.o mocgen.cpp
In file included from /usr/QT_arm/qt-2.3.7/include/qglobal.h:465,
from /usr/QT_arm/qt-2.3.7/include/qcollection.h:42,
from /usr/QT_arm/qt-2.3.7/include/qglist.h:42,
from /usr/QT_arm/qt-2.3.7/include/qlist.h:42,
from moc.y:57:
/usr/QT_arm/qt-2.3.7/include/qconfig.h:9:65: error: missing binary operator before token "("
moc.y: In function ‘int main(int, char**)’:
moc.y:1272: warning: deprecated conversion from string constant to ‘char*’
moc.y:1290: warning: deprecated conversion from string constant to ‘char*’
moc.y:1300: warning: deprecated conversion from string constant to ‘char*’
moc.y:1319: warning: deprecated conversion from string constant to ‘char*’
moc.y:1323: warning: deprecated conversion from string constant to ‘char*’
moc.y: In function ‘void generateClass()’:
moc.y:2613: warning: deprecated conversion from string constant to ‘char*’
moc.y:2615: warning: deprecated conversion from string constant to ‘char*’
moc.y:2616: warning: deprecated conversion from string constant to ‘char*’
moc.y:2617: warning: deprecated conversion from string constant to ‘char*’
moc.y:2653: warning: format not a string literal and no format arguments
moc.y:2654: warning: format not a string literal and no format arguments
moc.y:2756: warning: deprecated conversion from string constant to ‘char*’
moc.y:2761: warning: deprecated conversion from string constant to ‘char*’
y.tab.c: In function ‘int yyparse()’:
y.tab.c:3126: warning: suggest parentheses around assignment used as truth value
moc.y:522: warning: deprecated conversion from string constant to ‘char*’
moc.y:524: warning: deprecated conversion from string constant to ‘char*’
moc.y:525: warning: deprecated conversion from string constant to ‘char*’
moc.y:526: warning: deprecated conversion from string constant to ‘char*’
moc.y:533: warning: deprecated conversion from string constant to ‘char*’
moc.y:551: warning: deprecated conversion from string constant to ‘char*’
moc.y:552: warning: deprecated conversion from string constant to ‘char*’
moc.y:564: warning: deprecated conversion from string constant to ‘char*’
moc.y:565: warning: deprecated conversion from string constant to ‘char*’
moc.y:566: warning: deprecated conversion from string constant to ‘char*’
moc.y:567: warning: deprecated conversion from string constant to ‘char*’
moc.y:568: warning: deprecated conversion from string constant to ‘char*’
moc.y:569: warning: deprecated conversion from string constant to ‘char*’
moc.y:570: warning: deprecated conversion from string constant to ‘char*’
moc.y:571: warning: deprecated conversion from string constant to ‘char*’
moc.y:572: warning: deprecated conversion from string constant to ‘char*’
moc.y:588: warning: deprecated conversion from string constant to ‘char*’
moc.y:589: warning: deprecated conversion from string constant to ‘char*’
moc.y:634: warning: deprecated conversion from string constant to ‘char*’
moc.y:638: warning: deprecated conversion from string constant to ‘char*’
moc.y:650: warning: deprecated conversion from string constant to ‘char*’
moc.y:670: warning: deprecated conversion from string constant to ‘char*’
moc.y:713: warning: deprecated conversion from string constant to ‘char*’
moc.y:729: warning: deprecated conversion from string constant to ‘char*’
moc.y:738: warning: deprecated conversion from string constant to ‘char*’
moc.y:739: warning: deprecated conversion from string constant to ‘char*’
y.tab.c:3169: warning: label ‘yynewerror’ defined but not used
y.tab.c:3174: warning: label ‘yyerrlab’ defined but not used
mocgen.cpp: At global scope:
mocgen.cpp:3: warning: ‘yysccsid’ defined but not used
make[2]: *** [mocgen.o] Error 1
make[2]: Leaving directory `/usr/QT_arm/qt-2.3.7/src/moc'
make[1]: *** [src-moc] Error 2
make[1]: Leaving directory `/usr/QT_arm/qt-2.3.7'
make: *** [init] Error 2
柯班長
可愛的小學生
可愛的小學生
 
文章: 1
註冊時間: 週二 6月 15, 2010 3:40 am

Re: 「問題」編譯QT/E 所發生的問題

文章FourDollars » 週二 6月 15, 2010 10:12 am

那個你的開發軟體套件都太舊了~
連 Qt 官方現在都沒有在支援了~
建議不要在上面做什麼專題了~
FourDollars
懵懂的國中生
懵懂的國中生
 
文章: 188
註冊時間: 週五 8月 01, 2003 12:47 am

Re: 「問題」編譯QT/E 所發生的問題

文章kaloho » 週五 9月 03, 2010 10:46 am

妳使用的QT源碼版本非常舊 是那種早期還需要一層一層建立環境的那種方式,
若非特殊原因,何不選用新一點的版本,現在QT會依據妳編譯參數來產生至妳要的target環境
比以前方便太多了
kaloho
可愛的小學生
可愛的小學生
 
文章: 6
註冊時間: 週五 10月 03, 2008 6:13 am


回到 embedded system

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客