Results 1 to 7 of 7

Thread: Library qt-mt

  1. #1
    Join Date
    Jun 2008
    Posts
    64
    Thanks
    7
    Qt products
    Qt3 Qt4

    Default Library qt-mt

    The following error is found when porting code from QT3 to QT4
    /usr/bin/ld: cannot find -lqt-mt
    I found that it doesn't exist in QT4.........
    Any relevant library should I include?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Library qt-mt

    You shouldn't link against Qt 3 libs if you're compiling a Qt 4 app. What does your .pro file look like? What does "qmake -v" output?
    J-P Nurmi

  3. #3
    Join Date
    Jun 2008
    Posts
    64
    Thanks
    7
    Qt products
    Qt3 Qt4

    Default Re: Library qt-mt

    I m not using qmake.

    I m trying to port codes from qt3 to qt4
    So can anyone tell me what `-lqt-mt` is used for?
    Is that necessary to include some other library instead in QT4?
    Thanks a lot!

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Library qt-mt

    Quote Originally Posted by batileon View Post
    I m not using qmake.
    What's wrong with qmake? I use it even for plain C++ non-Qt projects...

    I m trying to port codes from qt3 to qt4
    So can anyone tell me what `-lqt-mt` is used for?
    Is that necessary to include some other library instead in QT4?
    That's the multi threading version of Qt 3 library. As far as I know, it's impossible to link a single application against Qt 3 and Qt 4. To compile a Qt 4 application successfully you need not only to pass necessary include paths and libraries but also a set of suitable compiler defines. You know, qmake would do all this for you out of the box.
    J-P Nurmi

  5. #5
    Join Date
    Jun 2008
    Posts
    64
    Thanks
    7
    Qt products
    Qt3 Qt4

    Default Re: Library qt-mt

    qmake..........Hahaha......
    I don't know..... Since I am not the creator of the makefile.
    I m just trying to adapt that to QT4.

    Anyway, I tried to include the `-lQt3Support` and passed the compilation.

  6. #6
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Library qt-mt

    Quote Originally Posted by batileon View Post
    qmake..........Hahaha......
    I don't know..... Since I am not the creator of the makefile.
    What's so funny? With qmake you wouldn't have to care about complex and non-portable makefiles at all.
    J-P Nurmi

  7. #7
    Join Date
    Jun 2008
    Posts
    64
    Thanks
    7
    Qt products
    Qt3 Qt4

    Default Re: Library qt-mt

    No......
    It's not funny..........I am not teasing or what........
    that's just a friendly smile

    I don't know why the previous creator of my task don't use qmake. But my situation is just .....try to port that to QT4 without changing much code.....

Similar Threads

  1. Replies: 4
    Last Post: 18th December 2009, 18:55
  2. Loading library from application
    By mourad in forum Installation and Deployment
    Replies: 0
    Last Post: 2nd April 2008, 15:10
  3. Adding library dependencies to qmake
    By sadastronaut in forum Installation and Deployment
    Replies: 2
    Last Post: 18th March 2008, 17:06
  4. Replies: 1
    Last Post: 5th March 2007, 20:50

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.