PDA

View Full Version : Qt Creator 2.2 source build problem



abdol
8th June 2011, 23:13
Hi everyone,
I am getting errors while trying to build qt creator 2.2 from source code.
I used the method explained in
http://lists.qt.nokia.com/pipermail/qt-creator/2010-July/007186.html

whenever I try to do sudo make I get this error

cd src/ && make -f Makefile
cd libs/ && make -f Makefile
cd 3rdparty/ && make -f Makefile
cd botan/ && make -f Makefile
cd src/ && make -f Makefile
/usr/bin/g++-4.2 -c -pipe -mmacosx-version-min=10.5 -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.6 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/local/share/qt4/mkspecs/macx-g++ -I/private/tmp/qt-creator-2.2.0-src/src/libs/3rdparty/botan/src -I.moc/release-shared -I/private/tmp/qt-creator-2.2.0-src/src/libs -I/private/tmp/qt-creator-2.2.0-src/tools -I/private/tmp/qt-creator-2.2.0-src/src/plugins -I/private/tmp/qt-creator-2.2.0-src/src/libs/3rdparty/botan/src -I/private/tmp/qt-creator-2.2.0-src/src/libs/3rdparty/botan/build -I/private/tmp/qt-creator-2.2.0-src/src/libs/3rdparty/botan/build/botan -I/opt/local/include/QtGui -I/opt/local/include/QtCore -I/opt/local/include -I. -o .obj/release-shared/algo_factory.o /private/tmp/qt-creator-2.2.0-src/src/libs/3rdparty/botan/src/algo_factory/algo_factory.cpp
In file included from /private/tmp/qt-creator-2.2.0-src/src/libs/3rdparty/botan/build/botan/types.h:11,
from /private/tmp/qt-creator-2.2.0-src/src/libs/3rdparty/botan/build/botan/exceptn.h:11,
from /private/tmp/qt-creator-2.2.0-src/src/libs/3rdparty/botan/build/botan/mutex.h:11,
from /private/tmp/qt-creator-2.2.0-src/src/libs/3rdparty/botan/build/botan/algo_factory.h:11,
from /private/tmp/qt-creator-2.2.0-src/src/libs/3rdparty/botan/src/algo_factory/algo_factory.cpp:8:
/private/tmp/qt-creator-2.2.0-src/src/libs/3rdparty/botan/build/botan/build.h:36:21: error: qglobal.h: No such file or directory

I have highlighted the last line since after this line i get tons of errors which are sequentially generated because of this one. If i copy paste the missing header file a new error will be generated. Finally I copied all the missing headers and the last error was:

qtdebug.h does not exist...

How should I resolve this?
I have 2 installations of Qt and removed the first one. The 2nd installation is built from source code.