Results 1 to 3 of 3

Thread: How to create and use a static library or a share library with Qt Creator?

  1. #1
    Join Date
    Feb 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default How to create and use a static library or a share library with Qt Creator?

    Hi all,
    I don't know how to create a static library or a share library and use it.
    Can you show me how to do it?
    Thank you very much.

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to create and use a static library or a share library with Qt Creator?

    Create a new project. In the project wizard, choose "Other Project" and then "C++ Library". Proceed as you do normally with programs. To use it, add a line
    Qt Code:
    1. LIBS += -L/path/to/library -lmylib
    To copy to clipboard, switch view to plain text mode 
    to your .pro file.

    http://doc.trolltech.com/latest/qmak...ding-a-library
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  3. #3
    Join Date
    Feb 2011
    Posts
    13
    Thanks
    2
    Thanked 1 Time in 1 Post
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: How to create and use a static library or a share library with Qt Creator?

    Hi all,
    I create a shared object ( dynamic library) by Eclipse IDE and I can use this *.so for Qt Creator, Eclipse. But when I create a shared object by Qt Creator, I can not use it on both Eclipse , Qt Creator. I use "ldd" command to check it, I see no problem.
    Please tell me why?

Similar Threads

  1. Using a static library
    By Cruz in forum Newbie
    Replies: 2
    Last Post: 26th January 2010, 18:00
  2. Replies: 4
    Last Post: 18th December 2009, 19:55
  3. how to use static library in qt4?
    By hashb in forum Qt Programming
    Replies: 9
    Last Post: 28th October 2009, 13:46
  4. Static library?
    By shiranraviv in forum Qt Programming
    Replies: 4
    Last Post: 15th October 2009, 15:11
  5. Replies: 11
    Last Post: 18th May 2007, 11:38

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.