Results 1 to 20 of 23

Thread: adding a library to my project and..how to use it?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2012
    Location
    Argentina
    Posts
    167
    Thanks
    33
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default adding a library to my project and..how to use it?

    hi guys i ve read tons of threads of this problem but i dont seem to get the right solution...

    i ve downloaded the qextserialport-1.2 project. Next step i run the project with errors (says no executable found, of course because its not an app) but i get the files:
    1. qextserialport.dll
    2. libqextserialport.a

    then i create a folder inside myappfolder and finally i modify my .pro file like this
    Qt Code:
    1. INCLUDEPATH += "C:\Documents and Settings\home\Escritorio\Los taninos-killgabio\exrport-libraries"
    2.  
    3. LIBS += -L"C:\Documents and Settings\home\Escritorio\Los taninos-killgabio\exrport-libraries" -lqextserialport
    To copy to clipboard, switch view to plain text mode 

    what is the next step to follow? cause there are no .h files, or should i include all the .h files from the qextserialport project¨?

    thanks a lot i ve started a month ago and i still cannot understand QT very much

    greetings!
    Last edited by KillGabio; 30th January 2012 at 19:05.

  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: adding a library to my project and..how to use it?

    Checkout and build the current qextserialport:
    The "src" directory of the qextserialport source tree contains the include files: put this path in INCLUDEPATH
    The "src/build" directory of the qextserialport source tree contains the library files: put this in the -L option of LIBS

    If you have grabbed the obsolete version:
    The "qextserialport-1.2win-alpha" directory of the qextserialport source tree contains the include files: put this path in INCLUDEPATH

Similar Threads

  1. Adding glew library
    By Cucus in forum Newbie
    Replies: 3
    Last Post: 20th June 2011, 22:44
  2. Adding library in another project
    By Anshuman in forum Qt Programming
    Replies: 1
    Last Post: 26th April 2011, 16:13
  3. Replies: 4
    Last Post: 18th December 2009, 18:55
  4. Adding an external Library
    By afflictedd2 in forum Qt Programming
    Replies: 1
    Last Post: 13th December 2008, 05:51
  5. adding a qt-ui to a non-qt project, dll
    By TheKedge in forum Qt Programming
    Replies: 3
    Last Post: 28th February 2007, 17:08

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.