On 05/01/2011 01:32 PM, David C. Rankin wrote:
On 05/01/2011 04:25 AM, Serghei Amelian wrote:
On Sunday 01 May 2011 09:13:53 David C. Rankin
wrote:
[...]
-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
Aborting...
What is this test checking and how can I be failing it?
Check CMakeError.log
Serghei,
Here is what I'm getting:
13:28 supersff:~/tblds/trinity-tqtinterface> cat
./src/build/CMakeFiles/CMakeError.log
Performing C++ SOURCE FILE Test HAVE_USABLE_QT3 failed with the following output:
Change Dir: /home/david/tblds/trinity-tqtinterface/src/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory
`/home/david/tblds/trinity-tqtinterface/src/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/home/david/tblds/trinity-tqtinterface/src/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/src.cxx.o
/usr/bin/c++ -march=i686 -mtune=generic -O2 -pipe -DHAVE_USABLE_QT3
-I/opt/qt/include -o CMakeFiles/cmTryCompileExec.dir/src.cxx.o -c
/home/david/tblds/trinity-tqtinterface/src/build/CMakeFiles/CMakeTmp/src.cxx
/home/david/tblds/trinity-tqtinterface/src/build/CMakeFiles/CMakeTmp/src.cxx:2:30:
fatal error: qapplication.h: No such file or directory
compilation terminated.
make[1]: *** [CMakeFiles/cmTryCompileExec.dir/src.cxx.o] Error 1
make[1]: Leaving directory
`/home/david/tblds/trinity-tqtinterface/src/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec/fast] Error 2
Source file was:
#include <qapplication.h>
int main(int argc, char **argv) { QApplication app(argc, argv); return 0; }
The qapplication.h is only in the Qt4 directory:
13:29 supersff:~/tblds/trinity-tqtinterface> find . -name qapplication.h
./src/tqtinterface/qtinterface/qt4/Qt/qapplication.h
./src/tqtinterface/qtinterface/tqt4/Qt/qapplication.h
So why is the Qt3 build failing for lack of finding qapplication.h?
Serghei,
It looks like the build isn't seeing the /opt/qt/include files:
==> Creating out-of-source build directory:
/home/david/tblds/trinity-tqtinterface/src/build
==> Starting cmake...
-- Checking for Qt3...
-- QT_PREFIX_DIR is set to QTDIR
-- QT_PREFIX_DIR : /opt/qt
-- QT_INCLUDE_DIR: /opt/qt/include
-- QT_LIBRARY_DIR: /opt/qt/lib
-- QT_BINARY_DIR : /opt/qt/bin
-- MOC_EXECUTABLE: /opt/qt/bin/moc (using Qt 3.3.8c)
-- UIC_EXECUTABLE: /opt/qt/bin/uic
CMake Error at cmake/modules/TDEMacros.cmake:20 (message):
#################################################
Unable to build a simple Qt3 test.
#################################################
Call Stack (most recent call first):
ConfigureChecks.cmake:167 (tde_message_fatal)
CMakeLists.txt:29 (include)
-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
Aborting...
13:46 supersff:~/tblds/trinity-tqtinterface> find . -iname "*.log"
./src/build/CMakeFiles/CMakeOutput.log
./src/build/CMakeFiles/CMakeError.log
13:47 supersff:~/tblds/trinity-tqtinterface> cat
./src/build/CMakeFiles/CMakeError.log
Performing C++ SOURCE FILE Test HAVE_USABLE_QT3 failed with the following output:
Change Dir: /home/david/tblds/trinity-tqtinterface/src/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory
`/home/david/tblds/trinity-tqtinterface/src/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/home/david/tblds/trinity-tqtinterface/src/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/src.cxx.o
/usr/bin/c++ -march=i686 -mtune=generic -O2 -pipe -DHAVE_USABLE_QT3
-I/opt/qt/include -o CMakeFiles/cmTryCompileExec.dir/src.cxx.o -c
/home/david/tblds/trinity-tqtinterface/src/build/CMakeFiles/CMakeTmp/src.cxx
/home/david/tblds/trinity-tqtinterface/src/build/CMakeFiles/CMakeTmp/src.cxx:2:30:
fatal error: qapplication.h: No such file or directory
compilation terminated.
make[1]: *** [CMakeFiles/cmTryCompileExec.dir/src.cxx.o] Error 1
make[1]: Leaving directory
`/home/david/tblds/trinity-tqtinterface/src/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec/fast] Error 2
Source file was:
#include <qapplication.h>
int main(int argc, char **argv) { QApplication app(argc, argv); return 0; }
13:47 supersff:~/tblds/trinity-tqtinterface> find /opt/qt/include/ -name
qapplication.h
/opt/qt/include/tqt/Qt/qapplication.h
/opt/qt/include/qt/qapplication.h
Do I need to handle this with a CMake variable or do I need to set a global
environment variable with the Qt3 install?
--
David C. Rankin, J.D.,P.E.