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. [Withdrawn] Subdirs build: lib could not be found
Forum Updated to NodeBB v4.3 + New Features

[Withdrawn] Subdirs build: lib could not be found

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 684 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.
  • A Offline
    A Offline
    Asperamanca
    wrote on 22 Aug 2013, 05:32 last edited by
    #1

    I have a subdirs project consisting of multiple libs and a single application that links them together.

    Since migrating my source tree to a different location (but with sources, pro and pri files being identical), I get a strange error when trying to build:

    During the first step, when qmake is "reading" the .pro files I get:
    @error: Project: 'tmain_tp.pro', lib 'libtfrt.a' could not be found@

    "tmain_tp.pro" is the single application, while "tfrt" happens to be the first library in the LIBS variable of my application's pro file.

    The project "tfrt" is part of the subdirs. When I right-click and manually build "trft", the library is created and the application project no longer complains about it. It then complains about the next library in the list.

    So far, when I built a subdirs project, it automatically built all the libraries first, before trying to find them in the application project. Now it seems it doesn't even try to build them.

    Snip of the subdirs project file:
    @CONFIG += ordered
    CONFIG += debug_and_release_target
    TEMPLATE = subdirs

    SUBDIRS =
    mls_tool
    tasn
    tdd

    tfrt
    tfr_tp
    tfrf_tp
    tfrw_widgetdatagui
    tfrc
    tim
    tada

    tmain_tp

    SUBDIRS contains many more lib projects in reality, but they are just the same as those shown

    mls_tool.file = sourcen/mls/code/mls_tool.pro
    tasn.file = sourcen/tasn/code/tasn.pro
    tdd.file = sourcen/tdd/code/tdd.pro

    tfrt.file = sourcen/tfrt/code/tfrt.pro
    tfr_tp.file = sourcen/tfr/code/tfr_tp.pro
    tfrf_tp.file = sourcen/tfrf/code/tfrf_tp.pro
    tfrw_widgetdatagui.file = sourcen/tfrw/code/tfrw_widgetdatagui.pro
    tfrc.file = sourcen/tfrc/code/tfrc.pro
    tim.file = sourcen/tim/code/tim.pro
    tada.file = sourcen/tada/code/tada.pro

    tmain_tp.file = sourcen/tmain/code/tmain_tp.pro
    @

    I have already tried:

    • Manually deleting all makefiles
    • Deleting Creator's .user file, and regenerating it from the original .pro file
    • Clean and rebuild
    • As I said, I can manually build the single libraries, but it's no fun

    EDIT:
    Turned out to be a self-generated error message...

    1 Reply Last reply
    0

    1/1

    22 Aug 2013, 05:32

    • Login

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