Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Build QWT as subproject
QtWS25 Last Chance

Build QWT as subproject

Scheduled Pinned Locked Moved Unsolved General and Desktop
qwtsubprojectbuildsubdirsubdirs
1 Posts 1 Posters 1.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kenfred
    wrote on last edited by kenfred
    #1

    I am attempting to build QWT as a static lib and link against it in my application. I do not want to install QWT, but rather build it at the same time as my app as a subproject.

    I have set the appropriate options in qwtconfig.pri and can successfully build the qwt lib on its own. The qwt.pro file uses the subdirs template, meaning each of its subfolders has its own .pro file and is built individually. Then there are custom qwtfunctions which gather the resulting .obj files and package them into a single static lib.

    Now I'd like to build qwt as a subproject to my app. My first (failed) approach was to include(qwt.pro) in my app.pro file. However, qwt is not built in this case. After further reading, my second approach was to create a root subdirs project file, making my app and qwt subdirs. In this case, qwt is built but it does not package up the .obj files into the static lib!

    Please, does anyone know enough about QWT and/or the Qt build system to help me understand why the lib isn't created? Using messages I'm able to tell that the custom qwtfunctions are being called, but I have no means to debug further. Much appreciated.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved