Results 1 to 2 of 2

Thread: qmake multiple shared libs

  1. #1

    Default qmake multiple shared libs

    I'm trying out qmake and have something simple running so far. I have a server process in my server.pro which contains the following.
    Qt Code:
    1. INCLUDEPATH += ./includes
    2. LIBS += -L/usr/lib64/boost-1_41 -lboost_program_options
    3.  
    4. CONFIG +=
    5. HEADERS += server.h
    6. SOURCES += main.cpp
    7. TARGET = server
    To copy to clipboard, switch view to plain text mode 

    I have a few other *.cpp files that I need to build as a shared library that this server will load during run-time. Can anyone help out w/ what's needed to add the building of multiple/separate shared libraries. I would like for these libraries to be placed in their own directories underneath a 'libs' directory.

    Any help much appreciated.

  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: qmake multiple shared libs

    Take a look at:
    subdirs qmake template for recursive processing of directories (and the ordered CONFIG option if needed).
    lib qmake template for the shared libraries

Similar Threads

  1. qmake LIBS missing quotes
    By redoctober0 in forum General Programming
    Replies: 1
    Last Post: 12th January 2011, 16:05
  2. qmake: removing --no-undefined option for libs.
    By davemar in forum Qt Programming
    Replies: 2
    Last Post: 14th October 2009, 09:08
  3. Installing libs/headers with qmake
    By ghorwin in forum Qt Programming
    Replies: 2
    Last Post: 7th May 2007, 20:01
  4. qmake, conditioning & bundled libs
    By sebr in forum Qt Programming
    Replies: 3
    Last Post: 29th September 2006, 09:38
  5. Using qmake to build multiple apps and libs
    By marchand in forum Newbie
    Replies: 2
    Last Post: 12th June 2006, 17:33

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
  •  
Qt is a trademark of The Qt Company.