Wednesday, 15 February 2012

qt - qmake cannot locate any source or header files -


I'm trying to get my project from one computer to another with qt4 Where I installed the current qt5 and I have a very weird problem.

Can not find any of my source or header files on the QMK suddenly. There is a minimum example:

  QT + = core GUI greaterThan (QT_MAJOR_VERSION, 4): QT + = widgets target = Template with no title = App source = + main.cpp \ mainwindow.cpp + = $$ PWD / Dir / Dependpet + = $$ PWD / DR / Headers + = Main Window H \ FH \ Form + = Main Window UI   

Where Dir / FH exists in the same directory as untitled.pro . And I get this output from qmake:

  05:18:45: starting with: "/opt/qtsdk/5.0.2/gcc/bin/qmake" / home / martin / Projects / untitled /untitled.pro -r -spec linux -g ++ CONFIG + = debug CONFIG + = declarative_debug CONFIG + = qml_debug Warning: failure to search: fh 05:18:45: process "/opt/QtSDK/5.0 .2 / gcc / bin / qmake "Normally exited   

I do not know exactly what the reason is. What can be the problem?

Edit:

When I manually do this kind of name first:

  HEADERS + = Dir / fh \   

Qmeck does not complain.

The solution to the same problem when I include VPATH in the PRO file

example : VPATH + = ../../libraries/ Include + = ../../ Library /

Also, we do not need to include the diplomat in the Pro files with QT5 < / P>

No comments:

Post a Comment