Hello again friends, this time I come here, with the following question:

I have the following project structure:
Qt Code:
  1. editor/
  2. Editor.pro // is a subdirs project
  3. Bin /
  4. Bin.pro // is a subdirs project
  5. com/
  6. com.pro // is a subdirs project
  7. Common /
  8. Common.pro // is a subdirs project
  9. Language /
  10. Language.pro // is a subdirs project
  11. Core /
  12. Core.pro // is a share library project
  13. Php /
  14. Php.pro // is a share library project Depends on core.pro
  15. Project /
  16. Project.pro // is a share library project Depends on language.pro
  17. Examples /
  18. Examples.pro // is a subdirs project
  19. Createproject /
  20. Createproject.pro // Depends on project.pro
To copy to clipboard, switch view to plain text mode 

And the following are the respective configurations of the .pro files that I indicated in the previous structure:

Editor.pro
Qt Code:
  1. TEMPLATE = subdirs
  2.  
  3. SUBDIRS += \
  4. bin \
  5. com \
  6. common \
  7. examples
  8.  
  9. bin.depends = com
  10. com.depends = common
  11. common.depends = com
  12. examples.depends = common
To copy to clipboard, switch view to plain text mode 
Common.pro
Qt Code:
  1. TEMPLATE = subdirs
  2.  
  3. SUBDIRS += \
  4. actions \
  5. addons \
  6. codeeditor \
  7. codegenerator \
  8. files \
  9. highlighter \
  10. language \
  11. project \
  12. utils \
  13. workspace
  14.  
  15. actions.depends = addons
  16. addons.depends = actions files language project utils
  17. project.depends = language
  18. workspace.depends = codeeditor
To copy to clipboard, switch view to plain text mode 
Language.pro
Qt Code:
  1. TEMPLATE = subdirs
  2.  
  3. SUBDIRS += \
  4. core \
  5. php
  6.  
  7. php.depends = core
To copy to clipboard, switch view to plain text mode 
Core.pro
Qt Code:
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2017-02-12T18:09:20
  4. #
  5. #-------------------------------------------------
  6.  
  7. QT -= gui
  8.  
  9. CONFIG += c++11
  10.  
  11. greaterThan(QT_MAJOR_VERSION, 4): QT +=
  12.  
  13. TARGET = core
  14. TEMPLATE = lib
  15.  
  16. DEFINES += CORE_LIBRARY
  17.  
  18. # The following define makes your compiler emit warnings if you use
  19. # any feature of Qt which as been marked as deprecated (the exact warnings
  20. # depend on your compiler). Please consult the documentation of the
  21. # deprecated API in order to know how to port your code away from it.
  22. DEFINES += QT_DEPRECATED_WARNINGS
  23.  
  24. # You can also make your code fail to compile if you use deprecated APIs.
  25. # In order to do so, uncomment the following line.
  26. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  27. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  28.  
  29. SOURCES += Core.cpp \
  30. model/ClassAbs.cpp \
  31. model/MethodAbs.cpp \
  32. model/ModelObj.cpp \
  33. model/ParamAbs.cpp
  34.  
  35. HEADERS += Core.h\
  36. core_global.h \
  37. model/ClassAbs.h \
  38. model/MethodAbs.h \
  39. model/ModelObj.h \
  40. model/ParamAbs.h
  41.  
  42. DESTDIR = ../
  43.  
  44. unix {
  45. target.path = /usr/lib
  46. INSTALLS += target
  47. }
To copy to clipboard, switch view to plain text mode 
Php.pro
Qt Code:
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2017-02-12T18:09:45
  4. #
  5. #-------------------------------------------------
  6.  
  7. QT -= gui
  8.  
  9. CONFIG += c++11
  10.  
  11. greaterThan(QT_MAJOR_VERSION, 4): QT += xml xmlpatterns
  12.  
  13. TARGET = php
  14. TEMPLATE = lib
  15.  
  16. DEFINES += PHP_LIBRARY
  17.  
  18. # The following define makes your compiler emit warnings if you use
  19. # any feature of Qt which as been marked as deprecated (the exact warnings
  20. # depend on your compiler). Please consult the documentation of the
  21. # deprecated API in order to know how to port your code away from it.
  22. DEFINES += QT_DEPRECATED_WARNINGS
  23.  
  24. # You can also make your code fail to compile if you use deprecated APIs.
  25. # In order to do so, uncomment the following line.
  26. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  27. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  28.  
  29. DEPENDPATH += . ../core \
  30. ../../../com/ecosoftware/console \
  31. ../../utils \
  32. ../../project
  33. INCLUDEPATH += . ../core \
  34. ../../../com/ecosoftware/console \
  35. ../../utils \
  36. ../../project
  37.  
  38. LIBS''= -L -lcore
  39.  
  40. SOURCES += Php.cpp \
  41. controller/PhpDef.cpp \
  42. controller/PhpLoadLanguage.cpp \
  43. controller/PhpParser.cpp \
  44. controller/PhpUtils.cpp \
  45. model/Attribute.cpp \
  46. model/Class.cpp \
  47. model/Const.cpp \
  48. model/PhpClassTypeModelAbs.cpp \
  49. model/Restriction.cpp \
  50. model/Trait.cpp \
  51. model/Interface.cpp \
  52. model/Method.cpp \
  53. model/Param.cpp
  54.  
  55. HEADERS += Php.h\
  56. php_global.h \
  57. controller/PhpDef.h \
  58. controller/PhpLoadLanguage.h \
  59. controller/PhpParser.h \
  60. controller/PhpUtils.h \
  61. model/Attribute.h \
  62. model/Class.h \
  63. model/Const.h \
  64. model/Param.h \
  65. model/PhpClassTypeModelAbs.h \
  66. model/Restriction.h \
  67. model/Interface.h \
  68. model/Method.h \
  69. model/Trait.h
  70.  
  71. DESTDIR = ../
  72.  
  73. unix {
  74. target.path = /usr/lib
  75. INSTALLS += target
  76. }
To copy to clipboard, switch view to plain text mode 
Project.pro
Qt Code:
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2017-02-12T18:33:25
  4. #
  5. #-------------------------------------------------
  6.  
  7. QT -= gui
  8.  
  9. CONFIG += c++11
  10.  
  11. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets xml xmlpatterns
  12.  
  13. TARGET = project
  14. TEMPLATE = lib
  15.  
  16. DEFINES += PROJECT_LIBRARY
  17.  
  18. # The following define makes your compiler emit warnings if you use
  19. # any feature of Qt which as been marked as deprecated (the exact warnings
  20. # depend on your compiler). Please consult the documentation of the
  21. # deprecated API in order to know how to port your code away from it.
  22. DEFINES += QT_DEPRECATED_WARNINGS
  23.  
  24. # You can also make your code fail to compile if you use deprecated APIs.
  25. # In order to do so, uncomment the following line.
  26. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  27. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  28.  
  29. DEPENDPATH += . ../language/core \
  30. ../language/php
  31.  
  32. INCLUDEPATH += . ../language/core \
  33. ../language/php
  34.  
  35. SOURCES += \
  36. view/ProjectDlg.cpp \
  37. controller/Manifest.cpp \
  38. controller/ProjectBuilder.cpp \
  39. model/Project.cpp
  40.  
  41. HEADERS +=\
  42. project_global.h \
  43. view/ProjectDlg.h \
  44. controller/Manifest.h \
  45. controller/ProjectBuilder.h \
  46. model/Project.h
  47.  
  48. DESTDIR = ../
  49.  
  50. unix {
  51. target.path = /usr/lib
  52. INSTALLS += target
  53. }
  54.  
  55. FORMS += \
  56. view/ProjectDlg.ui
To copy to clipboard, switch view to plain text mode 
Examples.pro
Qt Code:
  1. TEMPLATE = subdirs
  2.  
  3. SUBDIRS += \
  4. createproject
To copy to clipboard, switch view to plain text mode 
Createproject.pro
Qt Code:
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2017-02-13T12:14:49
  4. #
  5. #-------------------------------------------------
  6.  
  7. QT += core gui
  8.  
  9. CONFIG += c++11
  10.  
  11. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets xml xmlpatterns
  12.  
  13. TARGET = createproject
  14. TEMPLATE = app
  15.  
  16. # The following define makes your compiler emit warnings if you use
  17. # any feature of Qt which as been marked as deprecated (the exact warnings
  18. # depend on your compiler). Please consult the documentation of the
  19. # deprecated API in order to know how to port your code away from it.
  20. DEFINES += QT_DEPRECATED_WARNINGS
  21.  
  22. # You can also make your code fail to compile if you use deprecated APIs.
  23. # In order to do so, uncomment the following line.
  24. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  25. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  26.  
  27. DEPENDPATH += . ../../common/project
  28.  
  29. INCLUDEPATH += . ../../common/project
  30.  
  31. LIBS''= -L../../common -lproject
  32.  
  33. SOURCES += main.cpp\
  34. mainwindow.cpp
  35.  
  36. HEADERS += mainwindow.h
  37.  
  38. FORMS += mainwindow.ui
To copy to clipboard, switch view to plain text mode 

All this, for the following, if I build each library separately no problem, all compile.

But when I decide to compile createproject (which is a test executable) to test the correct execution of the code and the links to the libraries, I get the following error:

Qt Code:
  1. ../../../../editor/common/language/php/model/Attribute.h:8:28: fatal error: model / ModelObj.h: No such file or directory
  2. #include "model / ModelObj.h"
  3. ^
To copy to clipboard, switch view to plain text mode 
I have reviewed everything and from what I see, everything is fine, or so I think. Even if I build createproject without run command, if it compiles.

I'm working on
Debian 9 64bit
Qt 5.7.1
QtCreator 4.2.0

What can I be doing wrong? If you need any additional information let me know.

Thanks in advance for your answers and help.