PDA

View Full Version : cannot find -lqt-mt



mahe2310
9th May 2006, 10:55
hi,

I experience following error on making Qt application
/************************************************** */
[root@localhost trial]# make
/root/qt-2.3.2/bin/uic trial.ui -o trial.h
/root/qt-2.3.2/bin/uic trial.ui -i trial.h -o trial.cpp
g++ -c -pipe -Wall -W -O2 -g -pipe -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fno-exceptions -DQT_NO_DEBUG -I/usr/lib/qt-3.1/mkspecs/default -I. -I. -I/root/qt-2.3.2/include -o trial.o trial.cpp
/root/qt-2.3.2/bin/moc trial.h -o moc_trial.cpp
trial.h:0: Warning: No relevant classes found. No output generated.
g++ -c -pipe -Wall -W -O2 -g -pipe -march=i386 -mcpu=i686 -fno-use-cxa-atexit -fno-exceptions -DQT_NO_DEBUG -I/usr/lib/qt-3.1/mkspecs/default -I. -I. -I/root/qt-2.3.2/include -o moc_trial.o moc_trial.cpp
g++ -o trial trial.o moc_trial.o -L/root/qt-2.3.2/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
/usr/bin/ld: cannot find -lqt-mt
collect2: ld returned 1 exit status
make: *** [trial] Error 1
[root@localhost trial]#
/*88*************************************/

plz tell what should be changed to correct this error...]


Regards,
Mahe2310

wysota
9th May 2006, 11:02
You may be missing the threaded version of Qt library. Check if you have libqt-mt.so installed on your system. You might have libqt.so (which is the non-threaded version of Qt library).

mahe2310
11th May 2006, 04:37
You may be missing the threaded version of Qt library. Check if you have libqt-mt.so installed on your system. You might have libqt.so (which is the non-threaded version of Qt library).


i got it... So i replaced the make file with -lqt-mt by -lqt...
It now works fine....

A basic Q?
Why Qtopia is generating many installation issues?
Isnt it matured??

mahe2310

wysota
11th May 2006, 10:19
i got it... So i replaced the make file with -lqt-mt by -lqt...
It now works fine....


It was enough to add CONFIG-=thread to your project file and run qmake.

bassoudilus
4th January 2018, 09:05
in my case i fixed this by installing qt3-devel-32bit under opensuse.

d_stranz
4th January 2018, 22:43
installing qt3-devel-32bit

Why would anyone want to install this ancient, obsolete version of Qt? And why bring an 11 1/2 year old post back from the dead to give this useless information? Wysota posted the correct answer, which will work with any version of Qt including the current Qt5.