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. Yet another inlcude error "cannot find ...pro "
Forum Updated to NodeBB v4.3 + New Features

Yet another inlcude error "cannot find ...pro "

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 412 Views 2 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
    Anonymous_Banned275
    wrote on last edited by
    #1

    I am getting another error after I add existing project to subdir.

    I follow the wizard and added the working project and received this error
    ( I am posting a text edited copy )

    /media/qe/TSET_QT_LABEL
    /MDI_SUBDIR/MDI_SUBDIRS_NOV17_ADD_MDI/MDI_ADD_MDI.pro:-1:
    error: Could not find .pro file for subdirectory
    "/media/qe/TSET_QT_LABEL/QT_PROGRAMS/NOV/NOV_15_" in
    "/media/qe/TSET_QT_LABEL/QT_PROGRAMS/NOV/NOV_15_".

    I original got local path reference , but same error.
    I changed the "subdirs" to full path with same error.

    I successfully added test project - with relative path - and it works as expected.

    SUBDIRS +=
    *../TESTProject *
    /media/qe/TSET_QT_LABEL/QT_PROGRAMS/NOV/NOV_15_ WORKCOPY_NO_LIBRARY_1_OK/CAT/mdi
    MAIN
    TEST_LIBRARY

    I get same error in totally different subdir project.

    /media/qe/TSET_QT_LABEL/QT_PROGRAMS/NOV/MDI_SUB/MDI_SUB.pro:-1: error: Could not find .pro file for subdirectory "../NOV_15_" in "/media/qe/TSET_QT_LABEL/QT_PROGRAMS/NOV/MDI_SUB/../NOV_15_".

    Is it possible that the error is caused because the include text is too long ?

    It also looks as two related errors - cannon find the desired subdir and cannot find the .pro file.

    After "shortening the path " I am going to move the desired project to same projects directory tree...

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

      Hi,

      By default the name of the .pro file should be the same as the name of the folder it's located in.

      Otherwise you have to tell your SUBDIRS project. It's explained in the documentation.

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

      1 Reply Last reply
      2
      • A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by
        #3

        Thanks, not sure how to interpret the documentation.
        However just got burned by having the supdirs project in capitals and the .pro in lower case. Such as MDI / mdi. Now I cannot wi8nf the MDI project. after reboot. .

        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