Results 1 to 2 of 2

Thread: How to add an external .a library in Qt Creator project via GUI?

  1. #1
    Join Date
    Sep 2008
    Posts
    25
    Thanks
    3
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How to add an external .a library in Qt Creator project via GUI?

    I've built yamlcpp static (libyaml-cpp.a) library using Qt's mingw compiler. Now I want to add it to my project. I use this qt doc, but Qt Creator allows to select only *.lib files not *.a files (in Choose file dialog). That's confusing because I'm using MinGW 4.4 debug configuration, not MSVC2008.

    Is it possible to add *.a libraries via Qt Creator's GUI and how do I do it?

    Windows 7, Qt Creator 2.3.1, Qt 4.7.4

  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: How to add an external .a library in Qt Creator project via GUI?

    You can't as far as I can tell. https://bugreports.qt.nokia.com/brow...REATORBUG-6093

    It's not that hard to type this in to the pro file:
    Qt Code:
    1. INCLUDEPATH += C:/somelibrary/include
    2. LIBS += -Lc:/somelibrary/lib -lname
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Using external ANSI C library
    By npascual in forum Qt Programming
    Replies: 2
    Last Post: 5th May 2011, 13:02
  2. Problem with link of external Library
    By navratill in forum Qt Programming
    Replies: 4
    Last Post: 4th May 2011, 09:18
  3. Replies: 2
    Last Post: 19th February 2011, 12:26
  4. Qt Creator and using an external library under windows
    By QChristian in forum Installation and Deployment
    Replies: 1
    Last Post: 15th September 2010, 18:12
  5. Adding an external Library
    By afflictedd2 in forum Qt Programming
    Replies: 1
    Last Post: 13th December 2008, 06:51

Tags for this Thread

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.