Message: previous - next
Month: May 2011

Re: [trinity-devel] tqtinterface Build Failure with new Qt3 - is there something I need to add?

From: "David C. Rankin" <drankinatty@...>
Date: Sun, 01 May 2011 13:32:45 -0500
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


   Here is what I'm getting:

13:28 supersff:~/tblds/trinity-tqtinterface> cat 
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 
make[1]: Entering directory 
/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 
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 
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

   So why is the Qt3 build failing for lack of finding qapplication.h?

David C. Rankin, J.D.,P.E.