Results 1 to 6 of 6

Thread: cannot find -lqt-mt

  1. #1
    Join Date
    Jan 2006
    Posts
    80
    Thanks
    1
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default cannot find -lqt-mt

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: cannot find -lqt-mt

    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).

  3. #3
    Join Date
    Jan 2006
    Posts
    80
    Thanks
    1
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: cannot find -lqt-mt

    Quote Originally Posted by wysota
    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

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: cannot find -lqt-mt

    Quote Originally Posted by mahe2310
    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.

  5. #5
    Join Date
    Dec 2017
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: cannot find -lqt-mt

    in my case i fixed this by installing qt3-devel-32bit under opensuse.

  6. #6
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: cannot find -lqt-mt

    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.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. problems installing Qt opensource with msvc2008 support
    By odin1985 in forum Installation and Deployment
    Replies: 6
    Last Post: 24th May 2008, 09:06
  2. GCC can't find QSqlDatabase!!
    By brevleq in forum Qt Programming
    Replies: 5
    Last Post: 29th October 2007, 07:05
  3. Cannot find file: winmain.pro in Qt installation
    By jivanr in forum Installation and Deployment
    Replies: 3
    Last Post: 11th June 2007, 12:22
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  5. Replies: 7
    Last Post: 1st August 2006, 21:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.