Guys,
Here is the error I get attempting to build tqtinterface with the new Qt:
==> 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...
What is this test checking and how can I be failing it?
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
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?
On Sunday 01 May 2011 21:32:45 David C. Rankin wrote: [...]
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?
You have qapplication.h in /opt/qt/include ?
On 05/01/2011 01:42 PM, Serghei Amelian wrote:
On Sunday 01 May 2011 21:32:45 David C. Rankin wrote: [...]
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?
You have qapplication.h in /opt/qt/include ?
Yup!
14:06 supersff:~/tblds/trinity-tqtinterface> find /opt/qt/include/ -name qapplication.h /opt/qt/include/tqt/Qt/qapplication.h /opt/qt/include/qt/qapplication.h
On Sunday 01 May 2011 22:07:04 David C. Rankin wrote:
On 05/01/2011 01:42 PM, Serghei Amelian wrote:
On Sunday 01 May 2011 21:32:45 David C. Rankin wrote: [...]
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?
You have qapplication.h in /opt/qt/include ?
Yup!
14:06 supersff:~/tblds/trinity-tqtinterface> find /opt/qt/include/ -name qapplication.h /opt/qt/include/tqt/Qt/qapplication.h /opt/qt/include/qt/qapplication.h
Actually is not correct. "qapplication.h" should be under "/opt/qt/include", not deeper. Do not mix qt3 locations with tqt's.
On Sunday 01 May 2011 22:09:42 Serghei Amelian wrote: [...]
Actually is not correct. "qapplication.h" should be under "/opt/qt/include", not deeper. Do not mix qt3 locations with tqt's.
If you really want to mix them, use QT_INCLUDE_DIR for indicate where qt headers reside (in your case -DQT_INCLUDE_DIR=/opt/qt/include/qt )
On 05/01/2011 02:16 PM, Serghei Amelian wrote:
On Sunday 01 May 2011 22:09:42 Serghei Amelian wrote: [...]
Actually is not correct. "qapplication.h" should be under "/opt/qt/include", not deeper. Do not mix qt3 locations with tqt's.
If you really want to mix them, use QT_INCLUDE_DIR for indicate where qt headers reside (in your case -DQT_INCLUDE_DIR=/opt/qt/include/qt )
How am I mixing them?
I am building Qt3 and tqtinterface the exact same way I always have. I have no idea how the headers are ending up under:
/opt/qt/include/tqt/Qt/qapplication.h /opt/qt/include/qt/qapplication.h
I'm just setting $prefix=/opt/qt for the Qt3 install, then the build and package are putting them there. Can you think of where the locations for these includes are being set? I'll go back through the Qt3 build, but honestly I haven't changed where things go.
I've set -DQT_INCLUDE_DIR=/opt/qt/include/qt and it is building now. (It would have built earlier, but I forgot to delete the out-of-source build dir before kicking off the build again :p )
I'm building with:
_svntrunk="svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface" _svnmod=tqtinterface _qtdir=/opt/qt _prefix=${_qtdir}
cmake ${srcdir}/${_svnmod} \ -DCMAKE_INSTALL_PREFIX=${_prefix} \ -DQT_INCLUDE_DIR=${_prefix}/include/qt \ -DQT_VERSION=3 || return 1
On 05/01/2011 02:16 PM, Serghei Amelian wrote:
On Sunday 01 May 2011 22:09:42 Serghei Amelian wrote: [...]
Actually is not correct. "qapplication.h" should be under "/opt/qt/include", not deeper. Do not mix qt3 locations with tqt's.
If you really want to mix them, use QT_INCLUDE_DIR for indicate where qt headers reside (in your case -DQT_INCLUDE_DIR=/opt/qt/include/qt )
Duh - found the configure option :)
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?
On Sunday 01 May 2011 21:51:27 David C. Rankin wrote:
[...]
/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.
[...]
==> Starting cmake... -- Checking for Qt3... -- QT_PREFIX_DIR is set to QTDIR -- QT_PREFIX_DIR : /opt/qt -- QT_INCLUDE_DIR: /opt/qt/include
^^^^^^^^
[...]
Do I need to handle this with a CMake variable or do I need to set a global environment variable with the Qt3 install?
/opt/qt/include is correctly detected. Check if you really have something in /opt/qt/include.
On 05/01/2011 02:13 AM, David C. Rankin wrote:
Guys,
Here is the error I get attempting to build tqtinterface with the new Qt:
==> 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...
What is this test checking and how can I be failing it?
See my PKGBUILD at: http://svn.trinitydesktop.org/svn/trinity-packaging/arch/baho/
http://svn.trinitydesktop.org/svn/trinity-packaging/arch/baho/
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Apache/2.2.12 (Ubuntu) Server at svn.trinitydesktop.org Port 80
http://svn.trinitydesktop.org/svn/trinity-packaging/arch/baho/
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Apache/2.2.12 (Ubuntu) Server at svn.trinitydesktop.org Port 80
It's back up; thanks for letting me know.
Tim