(no subject)
"Yao Jing" <[email protected]>
| Newsgroups | gmane.comp.handhelds.opie.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm doing my first graphical application for OPIE now. I've encounterred the following error when cross-compiling a simple test UI built from designer-qt2. Please help. 1) Create a simple UI using designer-qt2 ( from http://www.vanille.de/tools/ ) 2) Save it in .ui format and convert to .cpp and .h using ut2 (from http://www.vanille.de/tools/) 3) create a .pro file as follow: SOURCES += one.cpp TARGET = one HEADERS = one.h CONFIG += qt warn_on release 4) export OPIEDIR = OpieDir export QTDIR = QTDir (qte 2.3.10) export QMAKESPEC = $OPIEDIR/mkspecs/qws/linux-arm-g++ 6) generate Makefile using qmake built from OPIE CVS. (OPIE is cross-compiled for arm-linux when built) qmake -o Makefile one.pro 7) make. ERROR! /usr/local/arm/3.4.1/bin/arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DQT_NO_DEBUG -I/home/yaojing/fyp/opie-dev/arm/opie/mkspecs/qws/linux-arm-g++ -I. -I../../qt-2.3.10/include -o one.o one.cpp /usr/local/arm/3.4.1/bin/arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DQT_NO_DEBUG -I/home/yaojing/fyp/opie-dev/arm/opie/mkspecs/qws/linux-arm-g++ -I. -I../../qt-2.3.10/include -o moc_one.o moc_one.cpp arm-linux-g++ -Wl,-rpath,../../qt-2.3.10/lib -o one one.o moc_one.o -L../../qt-2.3.10/lib -lqte /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/crt1.o(.text+0x30): In function `_start': : undefined reference to `main' collect2: ld returned 1 exit status make: *** [one] Error 1 I can successfully cross-compile helloworld program from http://opie.handhelds.org/cgi-bin/moin.cgi/HelloWorldApp. My set up is FC4 (2.6.13) KDE 3.4 gcc 4.0.1 arm-linux-gcc 3.4.1 from handhelds.org Thank you again. Jing _______________________________________________ http://opie.handhelds.org/cgi-bin/moin.cgi/DeveloperWikiIndex Opie-devel mailing list [email protected] https://handhelds.org/mailman/listinfo/opie-devel