Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
0.2
-
None
-
QBS e91a5a73cfc8c11e0384817b9dd2cf78766a1e9a (Oct 9th, 2012)
Kubuntu 12.04.1 x64
Qt 4.8.2 x64 (from ubuntu repo)
GCC 4.6.3
-
9e80b1b8edc3d4ebb69d25d120e234c1338b035a
Description
PCH compilation is failing when enabling pch in a subproject that is in a different directory than the main project. It appears that the incorrect path to the header file is given (ex: "pch.h" instead of "subproject/pch.h" or "/absolute/path/to/pch.h").
I have attached a small project that show this issue.
~/Code/qbs_pch_subproject_issue$ qbs Found project file /home/acossette/Code/qbs_pch_subproject_issue/qbs_pch_subproject_issue.qbp loading project took: 12 ms build graph took: 3 ms for qt-4-8-2-debug: - [hpp, application] subproject as qt-4-8-2-debug precompiling pch.h /usr/bin/g++ -m64 -g -Wall -W -x c++-header -c pch.h -o /home/acossette/Code/qbs_pch_subproject_issue/build/qt-4-8-2-debug/subproject.gch g++: error: pch.h: No such file or directory g++: warning: ‘-x c++-header’ after last input file has no effect g++: fatal error: no input files compilation terminated.