Qt-interest Archive, April 2007
linking against libqte and libqte-mt
Message 1 in thread
Hi All,
I am compiling a multithreaded application and if i link the executable only
against libqte-mt i get the following error:
ld.gnu: warning: libqte.so.2, needed by
/opt/Embedix/home/jagath/project/v2nm_nfs/build/rpmdir/BUILD/qtopia-
source-us-1.7.0/lib/libqpe.so, not found (try using -rpath or -rpath-link)
obj/moc_bluetooth.o: In function `First::staticMetaObject(void)':
/home/jagath/BLUETOOTH/blueconfig/hcid/hcid7/qtopia-bluetooth_mipsel_final_2/moc/moc_bluetooth.cpp:97:
undefined reference to `QMetaObject::new_metaobject(char const *, char const
*, QMetaData *, int, QMetaData *, int, QClassInfo *, int)'
obj/moc_devices.o: In function `Devices::staticMetaObject(void)':
/home/jagath/BLUETOOTH/blueconfig/hcid/hcid7/qtopia-bluetooth_mipsel_final_2/moc/moc_devices.cpp:146:
undefined reference to `QMetaObject::new_metaobject(char const *, char const
*, QMetaData *, int, QMetaData *, int, QClassInfo *, int)'
obj/moc_qsdptool.o: In function `QSdptool::staticMetaObject(void)':
/home/jagath/BLUETOOTH/blueconfig/hcid/hcid7/qtopia-bluetooth_mipsel_final_2/moc/moc_qsdptool.cpp:118:
undefined reference to `QMetaObject::new_metaobject(char const *, char const
*, QMetaData *, int, QMetaData *, int, QClassInfo *, int)'
obj/moc_scanning.o: In function `Scanning::staticMetaObject(void)':
/home/jagath/BLUETOOTH/blueconfig/hcid/hcid7/qtopia-bluetooth_mipsel_final_2/moc/moc_scanning.cpp:90:
undefined reference to `QMetaObject::new_metaobject(char const *, char const
*, QMetaData *, int, QMetaData *, int, QClassInfo *, int)'
obj/moc_bluetoothbase.o: In function
`frmFirstScreen::staticMetaObject(void)':
/home/jagath/BLUETOOTH/blueconfig/hcid/hcid7/qtopia-bluetooth_mipsel_final_2/moc/moc_bluetoothbase.cpp:82:
undefined reference to `QMetaObject::new_metaobject(char const *, char const
*, QMetaData *, int, QMetaData *, int, QClassInfo *, int)'
obj/moc_devicesbase.o:/home/jagath/BLUETOOTH/blueconfig/hcid/hcid7/qtopia-bluetooth_mipsel_final_2/moc/moc_devicesbase.cpp:82:
more undefined references to `QMetaObject::new_metaobject(char const *, char
const *, QMetaData *, int, QMetaData *, int, QClassInfo *, int)' follow
collect2: ld returned 1 exit status
*but if i link against both libqte and libqte-mt, i can compile without any
problem
*since i am using QThread this is the only possiblility that i can compile
the program
*but the application wont run. it gives me an segmentation fault
*should it be possible to compile the application using only libqte-mt
what can be the reason ?
hope u would kindly reply me
Thanks in advance !
Jagath
Message 2 in thread
Hi,
> I am compiling a multithreaded application and if i link the executable
> only against libqte-mt i get the following error:
You're not linking only against libqte-mt.
> ld.gnu: warning: libqte.so.2, needed by
> /opt/Embedix/home/jagath/project/v2nm_nfs/build/rpmdir/BUILD/qtopia-
> source-us-1.7.0/lib/libqpe.so, not found (try using -rpath or -rpath-link)
You're also linking against libqpe which requires libqte.
--
[ signature omitted ]