[Development] Missing headers after building && installing

Yang Fan missdeer at gmail.com
Tue Nov 20 00:59:52 CET 2012


Hi All,

I built Qt5 from git on my Mac OS X 10.6.8 than make install to
/usr/local/Qt-5.0.0. Then I tried to build a small program but got the
following errors:

clang++ -c -pipe -mmacosx-version-min=10.6 -O2 -Wall -W -fPIC -DQT_NO_DEBUG
-DQT_CORE_LIB -I/usr/local/Qt-5.0.0/mkspecs/macx-clang -I. -I.
-I/usr/local/Qt-5.0.0/include -I/usr/local/Qt-5.0.0/include/QtCore
-I/usr/local/Qt-5.0.0/lib/QtCore.framework/Versions/5/Headers -I. -o
json_parser.o json_parser.cc
clang++ -c -pipe -mmacosx-version-min=10.6 -O2 -Wall -W -fPIC -DQT_NO_DEBUG
-DQT_CORE_LIB -I/usr/local/Qt-5.0.0/mkspecs/macx-clang -I. -I.
-I/usr/local/Qt-5.0.0/include -I/usr/local/Qt-5.0.0/include/QtCore
-I/usr/local/Qt-5.0.0/lib/QtCore.framework/Versions/5/Headers -I. -o
json_scanner.o json_scanner.cpp
In file included from json_scanner.cpp:21:
./qjson_debug.h:24:10: fatal error: 'QtCore/QDebug' file not found
#include <QtCore/QDebug>
         ^
In file included from json_parser.cc:36:
In file included from json_parser.yy:26:
In file included from ./parser_p.h:25:
In file included from ./parser.h:24:
./qjson_export.h:23:10: fatal error: 'QtCore/qglobal.h' file not found
#include <QtCore/qglobal.h>
         ^
1 error generated.
make[2]: *** [json_scanner.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 error generated.
make[2]: *** [json_parser.o] Error 1
make[1]: *** [sub-QJSON-qjson-make_first-ordered] Error 2
make: *** [sub-3rdparty-make_first-ordered] Error 2

I looked into directory /usr/local/Qt-5.0.0/include/QtCore, there is no
file called QDebug or qglobal.h, but in directory
/usr/local/Qt-5.0.0/lib/QtCore.framework/Versions/5/Headers, there are. I
think if there's something wrong with the installing process?

Any suggestion would be appreciated.

-- 
Regards,
Fan Yang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20121120/1afd9c2d/attachment.html>


More information about the Development mailing list