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
_______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development