Yet another inlcude error "cannot find ...pro "
-
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_LIBRARYI 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...
-
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.
-
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. .