trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: April 2011

Re: [trinity-devel] [arch] Your Qt3 is not patched for compatibility with tqtinterface

From: Baho Utot <baho-utot@...>
Date: Tue, 05 Apr 2011 05:44:42 -0400
On 04/04/2011 08:18 PM, Calvin Morrison wrote:
> Hmmmm,
>
> All of a sudden whenever building anything for trinity, I keep running
> into this problem "   Your Qt3 is not patched for compatibility with
> tqtinterface " but I don't really know why. I have installed the
> patched versions and it was all working until last week. Am I missing
> something? Also, Baho and David, have you run into similar problems?
>

Yes I am currently working with problems with tqtinterface,
I have problems with it finding moc and uic.
moc and uic are where they are supposed to be but the configure script 
won't find them.

I am currently working on the build environment to see if all the 
variables are set as they should be.  I think there is something wrong 
with the build environment.

tqtinterface tells me moc and uic are at /opt/qt/bin which is wrong
qt include directory is at /usr/include/qt3 which is wrong

When I examine the file list from my qt3 build it shows moc uic in 
/usr/bin and the qt include directory as /usr/include/qt

even if I pass

     export _prefix="/usr"
     msg "Starting cmake..."
     cmake ${_source}/${_module}/ \
         -DCMAKE_INSTALL_PREFIX=${_prefix} \
         -DQT_VERSION=3
         -DQT_PREFIX_DIR=${_prefix} \
         -DQT_INCLUDE_DIR=${_prefix}/include/qt \
         -DQT_BINARY_DIR=${_prefix}/bin

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Checking for Qt3...
--   QT_PREFIX_DIR : /usr
--   QT_INCLUDE_DIR: /usr/include/qt3 <-- this is wrong as I passed 
/usr/include/qt
--   QT_LIBRARY_DIR: /usr/lib
--   QT_BINARY_DIR : /usr/bin
--   MOC_EXECUTABLE: /opt/qt/bin/moc (using Qt 3.3.8) <-- this is wrong 
I passed /usr/bin as the binary directory
--   UIC_EXECUTABLE: /opt/qt/bin/uic <-- this is wrong I passed /usr/bin 
as the binary directory
-- Performing Test HAVE_USABLE_QT3
-- Performing Test HAVE_USABLE_QT3 - Failed
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)

/usr/bin is where moc and uic is at, I build qt3 to reside in /usr
This is how I build qt3

     export _prefix="/usr"

     msg "Starting configure..."
     ./configure     -prefix ${_prefix} \
             -platform linux-g++ \
             -docdir ${_prefix}/share/doc/qt \
             -headerdir ${_prefix}/include/qt \
             -plugindir ${_prefix}/lib/qt/plugins \
             -datadir ${_prefix}/share/qt \
             -translationdir ${_prefix}/share/qt/translations \
             -sysconfdir /etc/qt \
             -qt-gif \
             -system-zlib \
             -system-libjpeg \
             -plugin-imgfmt-jpeg \
             -system-libmng \
             -plugin-imgfmt-mng \
             -system-libpng \
             -plugin-imgfmt-png \
             -plugin-sql-mysql \
             -plugin-sql-psql \
             -plugin-sql-sqlite \
             -plugin-sql-odbc \
             -no-exceptions \
             -thread \
             -no-tablet