Results 1 to 3 of 3

Thread: Declaring Other Libraries - Linux

  1. #1
    Join Date
    Oct 2011
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Declaring Other Libraries - Linux

    Hi, i'm trying to use a different library of Qt Library. My System is a Linux Mint12 64-bit and i'm using Qt SDK 64-bit. I did like this http://developer.qt.nokia.com/doc/qt...ect-files.html using the STLport-5.2.1 library and type the follow line in the .pro file:

    LIBS += -L/urs/local/lib/ -llibstlport -llibstlportg -llibstlportstlg

    I'm sure the libs are in this location but the IDE can't find the libraries during the compilation. Which mistake could i have done?

    Thanks and sorry my english.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Declaring Other Libraries - Linux

    Spell "/usr" correctly and lose the "lib" prefix:
    Qt Code:
    1. LIBS += -L/usr/local/lib/ -lstlport -lstlportg -lstlportstlg
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Oct 2011
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Declaring Other Libraries - Linux

    Thanks but my trouble it isn't solved yet.
    I had corrected this simple error and the linking of the libs are ok now but i'm having troubles with the stlport's includes.
    Even that i put the right path to the stlport's includes in the .pro file it doesn't work and i also tried to copy the includes directly to the path "/usr/include/".


    Added after 5 minutes:


    My errors are being like that "/usr/include/cppunit/cppunit_mini.h:67: error: undefined reference to..."


    Added after 31 minutes:


    I tried another main class of test and it works now thanks
    Last edited by brenno; 24th January 2012 at 15:34.

Similar Threads

  1. Setting up Debug / Release Qt Libraries on Linux
    By gmat4321 in forum Installation and Deployment
    Replies: 3
    Last Post: 8th September 2011, 06:22
  2. QProcess on linux - problem with shared libraries
    By michallen in forum Qt Programming
    Replies: 1
    Last Post: 31st October 2010, 10:47
  3. Linux vs Windows 3rd party libraries
    By skepticalgeek in forum Newbie
    Replies: 4
    Last Post: 9th August 2010, 02:23
  4. Building an application using static QT libraries on Linux openSuse 10.2
    By mmeerten in forum Installation and Deployment
    Replies: 1
    Last Post: 1st July 2010, 22:35
  5. How to export resources in libraries on LINUX using Qt????
    By Shuchi Agrawal in forum Qt Programming
    Replies: 8
    Last Post: 1st June 2007, 11:14

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.