qt

Maciej Świniarski (luzik) luzik w ds.pg.gda.pl
Pon, 30 Gru 2002, 22:38:43 CET


On Mon, 30 Dec 2002, Maciej Świniarski (luzik) wrote:

 kaźda próba skompilowania czegokolwiek wymagajacego qt kończy sie
 fiaskiem oto mały przykład:
 
 ./configure LDFLAGS=-s CFLAGS=-O2 -march=i686 CXXFLAGS=-O2 -march=i686
 FFLAGS=-O2 -march=i686 CPPFLAGS= CC=i686-pld-linux-gcc CXX=g++
 --build=i686-pld-linux --prefix=/usr/X11R6 --exec-prefix=/usr/X11R6
 --bindir=/usr/X11R6/bin --sbindir=/usr/X11R6/sbin --sysconfdir=/etc
 --datadir=/usr/X11R6/share --includedir=/usr/X11R6/include
 --libdir=/usr/X11R6/lib --libexecdir=/usr/X11R6/lib --localstatedir=/var
 --sharedstatedir=/usr/X11R6/com --mandir=/usr/X11R6/man
 --infodir=/usr/share/info CPPFLAGS=-I/usr/X11R6/include
 --with-qt-includes=/usr/X11R6/include/qt
 --with-qt-libraries=/usr/X11R6/lib
 --with-extra-includes=/usr/X11R6/include
 
 wynik config.log w załączniq
 
 dodam że usunięcie wszystkich flag nic nie daje
 
 [root w luzik root]# rpm -qa |grep qt
 qt-static-3.0.5-7
 qt-devel-3.0.5-7
 qt-plugins-mysql-3.0.5-7
 qt-plugins-odbc-3.0.5-7
 arts-qt-1.0.4-3
 qt-3.0.5-7
 qt-plugins-psql-3.0.5-7
 qt-examples-3.0.5-7
 
 
-- 

Czcijmy wielkiego Tux'a...

...luzik
#GG 691159
luzik<at>ds.pg.gda.pl
-------------- następna część ---------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.54.  Invocation command line was

  $ ./configure LDFLAGS=-s CFLAGS=-O2 -march=i686 CXXFLAGS=-O2 -march=i686 FFLAGS=-O2 -march=i686 CPPFLAGS= CC=i686-pld-linux-gcc CXX=g++ --build=i686-pld-linux --prefix=/usr/X11R6 --exec-prefix=/usr/X11R6 --bindir=/usr/X11R6/bin --sbindir=/usr/X11R6/sbin --sysconfdir=/etc --datadir=/usr/X11R6/share --includedir=/usr/X11R6/include --libdir=/usr/X11R6/lib --libexecdir=/usr/X11R6/lib --localstatedir=/var --sharedstatedir=/usr/X11R6/com --mandir=/usr/X11R6/man --infodir=/usr/share/info CPPFLAGS=-I/usr/X11R6/include --with-qt-includes=/usr/X11R6/include/qt --with-qt-libraries=/usr/X11R6/lib --with-extra-includes=/usr/X11R6/include

(...)

configure:20603: checking for Qt
configure: 20668: /usr/X11R6/include/qt/qstyle.h
taking that
configure:20780: rm -rf SunWS_cache; g++ -o conftest -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -O2 -march=i686 -fno-exceptions -fno-check-new -I/usr/X11R6/include/qt -I/usr/X11R6/include  -DQT_THREAD_SUPPORT -I/usr/X11R6/include -D_REENTRANT -s -L/usr/X11R6/lib -L/usr/X11R6/lib   conftest.cc  -lqt-mt -lpng -lz -lm -ljpeg -ldl  -lXext -lX11 -lSM -lICE  -lpthread 1>&5
In file included from /usr/include/bits/posix1_lim.h:126,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc-lib/i686-pld-linux/3.2.1/include/limits.h:132,
                 from /usr/lib/gcc-lib/i686-pld-linux/3.2.1/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i686-pld-linux/3.2.1/include/limits.h:11,
                 from /usr/X11R6/include/qt/qwindowdefs.h:48,
                 from /usr/X11R6/include/qt/qwidget.h:42,
                 from /usr/X11R6/include/qt/qdesktopwidget.h:42,
                 from /usr/X11R6/include/qt/qapplication.h:42,
                 from conftest.cc:3:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/X11R6/include/qt/qmap.h:47,
                 from /usr/X11R6/include/qt/qmime.h:43,
                 from /usr/X11R6/include/qt/qevent.h:45,
                 from /usr/X11R6/include/qt/qobject.h:45,
                 from /usr/X11R6/include/qt/qwidget.h:43,
                 from /usr/X11R6/include/qt/qdesktopwidget.h:42,
                 from /usr/X11R6/include/qt/qapplication.h:42,
                 from conftest.cc:3:
/usr/X11R6/include/qt/qvaluelist.h:48:20: iterator: No such file or directory
/usr/X11R6/include/qt/qvaluelist.h:49:16: list: No such file or directory
In file included from /usr/X11R6/include/qt/qmap.h:47,
                 from /usr/X11R6/include/qt/qmime.h:43,
                 from /usr/X11R6/include/qt/qevent.h:45,
                 from /usr/X11R6/include/qt/qobject.h:45,
                 from /usr/X11R6/include/qt/qwidget.h:43,
                 from /usr/X11R6/include/qt/qdesktopwidget.h:42,
                 from /usr/X11R6/include/qt/qapplication.h:42,
                 from conftest.cc:3:
/usr/X11R6/include/qt/qvaluelist.h:83: warning: ISO C++ forbids declaration of 
   `bidirectional_iterator_tag' with no type
/usr/X11R6/include/qt/qvaluelist.h:83: parse error before `;' token
/usr/X11R6/include/qt/qvaluelist.h:88: warning: ISO C++ forbids declaration of 
   `ptrdiff_t' with no type
/usr/X11R6/include/qt/qvaluelist.h:88: parse error before `;' token
/usr/X11R6/include/qt/qvaluelist.h:146: warning: ISO C++ forbids declaration of 
   `bidirectional_iterator_tag' with no type
/usr/X11R6/include/qt/qvaluelist.h:146: parse error before `;' token
/usr/X11R6/include/qt/qvaluelist.h:151: warning: ISO C++ forbids declaration of 
   `ptrdiff_t' with no type
/usr/X11R6/include/qt/qvaluelist.h:151: parse error before `;' token
/usr/X11R6/include/qt/qvaluelist.h:409: warning: ISO C++ forbids declaration of 
   `ptrdiff_t' with no type
/usr/X11R6/include/qt/qvaluelist.h:409: parse error before `;' token
/usr/X11R6/include/qt/qvaluelist.h:420: no class template named `list' in `std'
/usr/X11R6/include/qt/qvaluelist.h:421: warning: ISO C++ forbids declaration of 
   `l' with no type
/usr/X11R6/include/qt/qvaluelist.h:436: no class template named `list' in `std'
/usr/X11R6/include/qt/qvaluelist.h:437: warning: ISO C++ forbids declaration of 
   `l' with no type
/usr/X11R6/include/qt/qvaluelist.h:442: no class template named `list' in `std'
/usr/X11R6/include/qt/qvaluelist.h:443: warning: ISO C++ forbids declaration of 
   `l' with no type
/usr/X11R6/include/qt/qvaluelist.h: In member function `bool 
   QValueList<T>::operator==(const int&) const':
/usr/X11R6/include/qt/qvaluelist.h:450: no class template named `list' in `std'
/usr/X11R6/include/qt/qvaluelist.h:450: `const_iterator' is not a class or 
   namespace
/usr/X11R6/include/qt/qvaluelist.h:450: warning: ISO C++ forbids declaration of 
   `it' with no type
In file included from /usr/X11R6/include/qt/qmime.h:43,
                 from /usr/X11R6/include/qt/qevent.h:45,
                 from /usr/X11R6/include/qt/qobject.h:45,
                 from /usr/X11R6/include/qt/qwidget.h:43,
                 from /usr/X11R6/include/qt/qdesktopwidget.h:42,
                 from /usr/X11R6/include/qt/qapplication.h:42,
                 from conftest.cc:3:
/usr/X11R6/include/qt/qmap.h:51:20: iterator: No such file or directory
/usr/X11R6/include/qt/qmap.h:52:15: map: No such file or directory
In file included from /usr/X11R6/include/qt/qmime.h:43,
                 from /usr/X11R6/include/qt/qevent.h:45,
                 from /usr/X11R6/include/qt/qobject.h:45,
                 from /usr/X11R6/include/qt/qwidget.h:43,
                 from /usr/X11R6/include/qt/qdesktopwidget.h:42,
                 from /usr/X11R6/include/qt/qapplication.h:42,
                 from conftest.cc:3:
/usr/X11R6/include/qt/qmap.h: At global scope:
/usr/X11R6/include/qt/qmap.h:104: warning: ISO C++ forbids declaration of `
   bidirectional_iterator_tag' with no type
/usr/X11R6/include/qt/qmap.h:104: parse error before `;' token
/usr/X11R6/include/qt/qmap.h:108: warning: ISO C++ forbids declaration of `
   ptrdiff_t' with no type
/usr/X11R6/include/qt/qmap.h:108: parse error before `;' token
/usr/X11R6/include/qt/qmap.h:220: warning: ISO C++ forbids declaration of `
   bidirectional_iterator_tag' with no type
/usr/X11R6/include/qt/qmap.h:220: parse error before `;' token
/usr/X11R6/include/qt/qmap.h:224: warning: ISO C++ forbids declaration of `
   ptrdiff_t' with no type
/usr/X11R6/include/qt/qmap.h:224: parse error before `;' token
/usr/X11R6/include/qt/qmap.h:602: warning: ISO C++ forbids declaration of `
   ptrdiff_t' with no type
/usr/X11R6/include/qt/qmap.h:602: parse error before `;' token
/usr/X11R6/include/qt/qmap.h:624: no class template named `map' in `std'
/usr/X11R6/include/qt/qmap.h:625: warning: ISO C++ forbids declaration of `m' 
   with no type
/usr/X11R6/include/qt/qmap.h:645: no class template named `map' in `std'
/usr/X11R6/include/qt/qmap.h:646: warning: ISO C++ forbids declaration of `m' 
   with no type
configure:20783: $? = 1
configure: failed program was:
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qcursor.h>
#include <qstylefactory.h>
#include <private/qucomextra_p.h>
#if ! (QT_VERSION >= 303)
#error 1
#endif

int main() {
    (void)QStyleFactory::create(QString::null);
    QCursor c(Qt::WhatsThisCursor);
    return 0;
}
configure:20822: error: Qt (>= Qt 3.0.3) (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!



Więcej informacji o liście dyskusyjnej pld-users-pl