Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [QBS] How to link project references?
Forum Updated to NodeBB v4.3 + New Features

[QBS] How to link project references?

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 1.4k Views 1 Watching
  • 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.
  • F Offline
    F Offline
    Flamaros
    wrote on last edited by
    #1

    I had put our project dependencies as references. I am able to build them, but at the link time the linker is unable to find builded libraries (added to cpp.staticLibraries property).
    I had try to put the path in the cpp.libraryPaths, it doesn't works and as the output folder of references is generated it's not a good idea to put the path hard coded.

    I saw in documention that it's recommanded to put dependencies as Depends item, but I parsing issues of the qbs file.
    I don't understand what is wrong to use it like that :
    @
    import "Dependencies/boost/boost.qbs" as Boost

    Project {
    Depends {name: "Boost"}
    ...
    }
    @

    Error :
    @
    ASSERT: f
    File not found: "............\qtsdk\qt-creator\src\shared\qbs\lib\language\projectresolver.cpp
    @

    PS : All my subprojects use StaticLibrary item, and I am using QtCreator 3.0.1

    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