Re: [Php-qt-users] compile error of abstract classes
Status: Beta
Brought to you by:
tm243
From: h z <zhi...@go...> - 2009-09-18 12:05:38
|
i'v forgot to search in the archive. There is alreay something like http://sourceforge.net/mailarchive/message.php?msg_id=0CB982C7-B8FA-477C-8494-5F85CF132DFF%40php-qt.org On Fri, Sep 18, 2009 at 1:50 PM, h z <zhi...@go...> wrote: > Hello everyone, > > i'm new in php-qt and have problem by compiling php-qt. > > (php5, php5-dev, php-cli, qt-X11-4.5.2 are installed) > > tar -xvzf php-qt-0.9.tar.gz > cd phpqt > mkdir build > cd build > cmake .. -DQT_INCLUDE_DIR=/usr/local/Trolltech/Qt-4.5.2/include > -DQT_LIBRARY_DIR=/usr/local/Trolltech/Qt-4.5.2/lib > -DQT_QMAKE_EXECUTABLE=/usr/local/Trolltech/Qt-4.5.2/bin/qmake > make > > and failed at [ 6%] Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/x_1.o > /home/haining/Desktop/phpqt/build/smoke/qt/x_1.cpp: In static member > function »static void > x_QAbstractGraphicsShapeItem::x_0(Smoke::StackItem*)«: > /home/haining/Desktop/phpqt/build/smoke/qt/x_1.cpp:1733: Fehler: es > kann kein Objekt des abstrakten Typs »x_QAbstractGraphicsShapeItem« > belegt werden > /home/haining/Desktop/phpqt/build/smoke/qt/x_1.cpp:1729: Anmerkung: > denn die folgenden virtuellen Funktionen sind rein innerhalb > »x_QAbstractGraphicsShapeItem«: > /usr/local/Trolltech/Qt-4.5.2/include/Qt/qgraphicsitem.h:254: > Anmerkung: virtual QRectF QGraphicsItem::boundingRect() const > /usr/local/Trolltech/Qt-4.5.2/include/Qt/qgraphicsitem.h:275: > Anmerkung: virtual void QGraphicsItem::paint(QPainter*, const > QStyleOptionGraphicsItem*, QWidget*) > > > Sorry, my console is in german. > It just says that x_QAbstractGraphicsShapeItem is an abstract class, > because there are two pure virtual methodes from QGraphicsItem. And it > can not be instanced. I have tried to declare them in > x_QAbstractGraphicsShapeItem. But some other abstract classes failed > in the same way. How can i deal with these error? > > thanks in anticipation > |