[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compiling KDE progs does not work



GCC 2.95 and GCC 3.3 don't play well together.

Sarge is using Gcc 3.3 as the default compiler, but if you're using the woody 
KDE packages, these are compiled using gcc 2.95.

You will need to use gcc 2.95 to compile KDE programs until the sid KDE 
packages filter into sarge.

David
On Monday 07 July 2003 19:14, Thomas Watz wrote:
> Hello,
>
> I have some probs with compiling KDE/QT progs since going to KDE 3.1.
>
> I tried to compile sim 0.82 and got the following failure message:
>
> [...]
> checking for Qt... configure: error: Qt (>= Qt 3.0.2) (library qt-mt) not
> found. Please check your installation!
> For more details about this problem, look at the end of config.log.
> Make sure that you have compiled Qt with thread support!
>
> a short section out of the config.log, which might be of interest:
> [...]
> /tmp/ccPOE4GC.o(.gnu.linkonce.d._ZTV6QGList+0x14): undefined reference to
> `QGList::~QGList [in-charge deleting]()'
> /tmp/ccPOE4GC.o(.gnu.linkonce.d._ZTV6QGList+0x18): undefined reference to
> `QPtrCollection::newItem(void*)'
> /tmp/ccPOE4GC.o(.gnu.linkonce.d._ZTV6QGList+0x20): undefined reference to
> `QGList::compareItems(void*, void*)'
> /tmp/ccPOE4GC.o(.gnu.linkonce.d._ZTV6QGList+0x24): undefined reference to
> `QGList::read(QDataStream&, void*&)'
> /tmp/ccPOE4GC.o(.gnu.linkonce.d._ZTV6QGList+0x28): undefined reference to
> `QGList::write(QDataStream&, void*) const'
> /tmp/ccPOE4GC.o(.gnu.linkonce.d._ZTI6QGList+0x8): undefined reference to
> `typeinfo for QPtrCollection'
> collect2: ld returned 1 exit status
> configure:19740: $? = 1
> configure: failed program was:
> #include "confdefs.h"
> #include <qglobal.h>
> #include <qapplication.h>
> #include <qstylefactory.h>
> #include <private/qucomextra_p.h>
> #if ! (QT_VERSION >= 301)
> #error 1
> #endif
>
> int main() {
>     (void)QStyleFactory::create(QString::null);
>     return 0;
> }
> configure:19780: error: Qt (>= Qt 3.0.2) (library qt-mt) not found. Please
> check your installation!
> For more details about this problem, look at the end of config.log.
> Make sure that you have compiled Qt with thread support!
> [...]
>
> here are some installed files:
>
> gamma:~/src/sim-0.8.2# dpkg -l *lib*qt*mt* | grep ii
> ii  libqt2-mt      2.3.1-22       Qt GUI Library (runtime threaded
> version). ii  libqt3-mt      3.1.2-0woody1  Qt GUI Library (Threaded
> runtime version) ii  libqt3-mt-dev  3.1.2-0woody1  Qt development files
> (Threaded)
> ii  libqt3-mt-mysq 3.1.2-0woody1  MySQL database driver for Qt3 (Threaded)
> ii  libqt3-mt-odbc 3.1.2-0woody1  ODBC database driver for Qt3 (Threaded)
> ii  libqt3-mt-psql 3.1.2-0woody1  PostgreSQL database driver for Qt3
> (Threaded
>
> gamma:~/src/sim-0.8.2# ls -l /usr/bin/g++* /usr/bin/gcc*
> lrwxrwxrwx    1 root     root            7 2003-05-29 09:52 /usr/bin/g++ ->
> g++-3.3
> -rwxr-xr-x    1 root     root        74088 2003-03-18 00:16
> /usr/bin/g++-2.95
> -rwxr-xr-x    1 root     root        81164 2003-04-16 06:58
> /usr/bin/g++-3.2 -rwxr-xr-x    1 root     root        80652 2003-05-18
> 12:59 /usr/bin/g++-3.3 lrwxrwxrwx    1 root     root            7
> 2003-05-29 09:52 /usr/bin/gcc -> gcc-3.3
> -rwxr-xr-x    1 root     root        74088 2003-03-18 00:16
> /usr/bin/gcc-2.95
> -rwxr-xr-x    1 root     root        74056 2002-04-08 03:26
> /usr/bin/gcc-3.0 -rwxr-xr-x    1 root     root        80812 2003-04-16
> 06:58 /usr/bin/gcc-3.2 -rwxr-xr-x    1 root     root        80652
> 2003-05-18 13:00 /usr/bin/gcc-3.3 lrwxrwxrwx    1 root     root          
> 10 2003-05-29 09:52 /usr/bin/gccbug -> gccbug-3.3
> -rwxr-xr-x    1 root     root        15647 2002-04-08 01:38
> /usr/bin/gccbug-3.0
> -rwxr-xr-x    1 root     root        15934 2003-04-16 00:36
> /usr/bin/gccbug-3.2
> -rwxr-xr-x    1 root     root        15984 2003-05-18 12:54
> /usr/bin/gccbug-3.3
>
> section out of debian/rules:
>
> ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
> --prefix=/usr
>  --with-qt-includes=/usr/include/qt3
>  --with-qt-libraries=/usr/share/qt3/lib
> --mandir=\$${prefix}/share/man
> --infodir=\$${prefix}/share/info
>
> I don't know what to do. I am running sarge with KDE from ftp.kde.org
> (woody section) and I am wondering if this might not work together with the
> installed libs and/or the compilers.
>
> Any hints what to do?
>
> Thanks, Thomas



Reply to: