Author Topic: Linking errors with 1.7 SDK  (Read 2721 times)

d_aero

  • Newbie
  • *
  • Posts: 7
    • View Profile
Linking errors with 1.7 SDK
« on: May 18, 2004, 08:27:50 pm »
Got my c860 - Fantastic  

Have been trying to run Qtopia SDK but am having problems linking.
Can anybody out there spot whats wrong please !

Can create and run the Linux (Suse 8.1) only qt example ok but when try to use SDK get the following sort of errors:-

qt_example/application> make
/opt/Qtopia/bin/uic examplebase.ui -o ./examplebase.h
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/Qtopia/include -I/opt/Qtopia/include -o main.o main.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/Qtopia/include -I/opt/Qtopia/include -o example.o example.cpp
/opt/Qtopia/bin/uic examplebase.ui -i examplebase.h -o examplebase.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/Qtopia/include -I/opt/Qtopia/include -o examplebase.o examplebase.cpp
/opt/Qtopia/bin/moc example.h -o moc_example.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/Qtopia/include -I/opt/Qtopia/include -o moc_example.o moc_example.cpp
/opt/Qtopia/bin/moc examplebase.h -o moc_examplebase.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/Qtopia/include -I/opt/Qtopia/include -o moc_examplebase.o moc_examplebase.cpp
gcc  -o example main.o example.o examplebase.o moc_example.o moc_examplebase.o  -L/opt/Qtopia/lib -L/opt/Qtopia/lib -lqpe -lqtopia -lqte
main.o: In function `create_Example(QWidget*, char const*, unsigned)\':
main.o(.text+0xd): undefined reference to `operator new(unsigned)\'
main.o: In function `main\':
main.o(.text+0x4e): undefined reference to `QPEApplication::QPEApplication[in-charge](int&, char**, QApplication::Type)\'
main.o(.text+0x69): undefined reference to `QString::QString[in-charge](char const*)\'
main.o(.text+0x9a): undefined reference to `QString::findRev(QChar, int, bool) const\'
main.o(.text+0xb4): undefined reference to `QString::right(unsigned) const\'
main.o(.text+0xc3): undefined reference to `QString::operator=(QString const&)\'
main.o(.text+0xe1): undefined reference to `QString::shared_null\'
main.o(.text+0xf0): undefined reference to `QStringData::deleteSelf()\'
main.o(.text+0x11f): undefined reference to `operator<(QString const&, QString const&)\'
main.o(.text+0x14c): undefined reference to `operator<(QString const&, QString const&)\'
main.o(.text+0x209): undefined reference to `QMetaObject::slotNames(bool) const\'
main.o(.text+0x216): undefined reference to `QGList::contains(void*) const\'
main.o(.text+0x22a): undefined reference to `QGList::clear()\'
main.o(.text+0x23c): undefined reference to `QGList::clear()\'
main.o(.text+0x244): undefined reference to `QGList::~QGList [not-in-charge]()\'
main.o(.text+0x262): undefined reference to `QPEApplication::showMainDocumentWidget(QWidget*, bool)\'
main.o(.text+0x26d): undefined reference to `QPEApplication::exec()\'
main.o(.text+0x298): undefined reference to `QString::shared_null\'
main.o(.text+0x2af): undefined reference to `QStringData::deleteSelf()\'
etc .........

Have tried, in fact started with x86 tmake config (as per Brintsoft\'s web page)) but got similar results.

My config is Suse 8.0 1.7 SDK download from Trolltech with:-

QTDIR - /opt/Qtopia
QPEDIR - /opt/Qtopia
PATH - /opt/Qtopia/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome2/bin:/opt/gnome/bin:/opt/kde3/bin:/opt/kde2/bin:/usr/lib/java/jre/bin:/opt/gnome/bin:.:/usr/lib/qt-3.0.5/bin
TMAKEPATH - /opt/Qtopia/tmake/lib/qws/linux-generic-g++
LD_LIBRARY_PATH - /opt/Qtopia/lib:

from following script (again started with x86 tmake config (as per Brintsoft\'s web page)):-

#!/bin/bash
# dev-x86-qpe.sh
# location : /usr/bin

#CROSSCOMPILE=/opt/Embedix/tools:/usr/local/x86/2.95.3/bin:/opt/Embedix/tools
export QPEDIR=/opt/Qtopia
export QTDIR=/opt/Qtopia
export PATH=$QTDIR/bin:$PATH
export TMAKEPATH=/opt/Qtopia/tmake/lib/qws/linux-generic-g++
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

#export QPEDIR QTDIR PATH TMAKEPATH LD_LIBRARY_PATH PS1
echo \"Altered environment for Sharp Zaurus Development x86\"

d_aero

  • Newbie
  • *
  • Posts: 7
    • View Profile
Linking errors with 1.7 SDK
« Reply #1 on: May 18, 2004, 08:51:36 pm »
Sorry have just seen a thread lower down and realise this is in the wrong thread. Now have a few things to try from other thread.

Please accept my apologies and close this thread.