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. SubDirs project with DLL - Problems

SubDirs project with DLL - Problems

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 903 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.
  • Z Offline
    Z Offline
    Zingam
    wrote on last edited by
    #1

    I have created this Test project that contains a executable and a .dll.

    https://github.com/Zingam/QbsProjectTemplates/tree/master/Qt/QtWidgetsSubProjects

    It contains Qbs project and QMake project. With the Qbs I have no problems but I cannot make the QMake one work.
    What would be a proper setup like that?
    For example one problem is that I cannot figure out how to properly include the library header (cannot setup the include path).

    Then my project contains an "make install" step. If I add this step then Qt Creator won't compile and output the .DLL to the DESTDIR directory. What I need to do is first to compile and then add "make install" which is not desirable.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What problem do you have ? That projects builds fine from the command line with qmake

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Z 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What problem do you have ? That projects builds fine from the command line with qmake

        Z Offline
        Z Offline
        Zingam
        wrote on last edited by Zingam
        #3

        @SGaist
        I use Qt Creator. If I delete all settings (the user file) and builds (to have just a clean source) then I open the .pro file, then I add "install" to make and lastly I try to build and I get: :-1: error: LNK1104: cannot open file 'Lib.lib'
        Without the "install" step the project gets built. If I add "install" after that initial build is completed the assets will get copied and everything will work. But if I try the initial build with "install" I get the link error.

        Apparently the install step causes the problem. I just don't know if I am doing something wrong or is it a bug.

        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