Thread: [Php-qt-users] compiling php-qt on FreeBSD
Status: Beta
Brought to you by:
tm243
From: Ole V. <su...@gm...> - 2008-10-27 22:30:55
|
Hello, Maillist! I try to porting php-qt to FreeBSD platform. After correct of some individual include_path of depend's product, i got the follow error when compiling the smokeqt : --- ... UnregisterMode isn't a known type (type=UnregisterMode) UpdateHandler isn't a known type (type=UpdateHandler) WId isn't a known type (type=WId) WhiteSpaceMode isn't a known type (type=WhiteSpaceMode) WriteFunc isn't a known type (type=WriteFunc) QPoint isn't a known type (type=const QPoint) QRect isn't a known type (type=const QRect) QSize isn't a known type (type=const QSize) picture_io_handler isn't a known type (type=picture_io_handler) qint64 isn't a known type (type=qint64) qlonglong isn't a known type (type=qlonglong) quint64 isn't a known type (type=quint64) qulonglong isn't a known type (type=qulonglong) va_list isn't a known type (type=va_list) Writing x_*.cpp... Done. Scanning dependencies of target smokeqt [ 4%] Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/smokedata.o [ 6%] Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/x_1.o /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp: In static member function 'static void x_QAbstractGraphicsShapeItem::x_0(Smoke::StackItem*)': /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp:1942: error: cannot allocate an object of abstract type 'x_QAbstractGraphicsShapeItem' /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp:1938: note: because the following virtual functions are pure within 'x_QAbstractGraphicsShapeItem': /usr/local/include/qt4/Qt/qgraphicsitem.h:246: note: virtual QRectF QGraphicsItem::boundingRect() const /usr/local/include/qt4/Qt/qgraphicsitem.h:265: note: virtual void QGraphicsItem::paint(QPainter*, const QStyleOptionGraphicsItem*, QWidget*) /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp: In static member function 'static void x_QAbstractGraphicsShapeItem::x_1(Smoke::StackItem*)': /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp:1949: error: cannot allocate an object of abstract type 'x_QAbstractGraphicsShapeItem' /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp:1938: note: since type 'x_QAbstractGraphicsShapeItem' has pure virtual functions /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp: In static member function 'static void x_QAbstractGraphicsShapeItem::x_2(Smoke::StackItem*)': /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp:1956: error: cannot allocate an object of abstract type 'x_QAbstractGraphicsShapeItem' /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp:1938: note: since type 'x_QAbstractGraphicsShapeItem' has pure virtual functions /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp: In static member function 'static void x_QAbstractGraphicsShapeItem::x_9(Smoke::StackItem*)': /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp:1993: error: cannot allocate an object of abstract type 'x_QAbstractGraphicsShapeItem' /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp:1938: note: since type 'x_QAbstractGraphicsShapeItem' has pure virtual functions *** Error code 1 -- Anoybody compile php-qt on FreeBSD? (i working with -HEAD aka FreeBSD8/amd64 and FreeBSD 7.1-PRERELEASE i386) ? Or, may be get some light for illuminate the cause of failure like and say what i doing wrong. Thanks! PS: installed soft on my system: [oleg@ole ~]$ ls /var/db/pkg |grep ^qt4 qt4-4.4.1_2 qt4-accessible-4.4.1 qt4-assistant-4.4.1 qt4-assistant-adp-4.4.1 qt4-clucene-4.4.1 qt4-corelib-4.4.1 qt4-dbus-4.4.1 qt4-designer-4.4.1 qt4-doc-4.4.1 qt4-gui-4.4.1_1 qt4-help-4.4.1 qt4-iconengines-4.4.1 qt4-imageformats-4.4.1 qt4-inputmethods-4.4.1 qt4-libQtAssistantClient-4.4.1 qt4-makeqpf-4.4.1 qt4-moc-4.4.1 qt4-mysql-plugin-4.4.1 qt4-network-4.4.1 qt4-opengl-4.4.1 qt4-phonon-4.4.1 qt4-phonon-gst-4.4.1 qt4-pixeltool-4.4.1 qt4-porting-4.4.1 qt4-qdbusviewer-4.4.1 qt4-qmake-4.4.1 qt4-qt3support-4.4.1 qt4-qtconfig-4.4.1 qt4-qtestlib-4.4.1 qt4-qvfb-4.4.1_1 qt4-rcc-4.4.1 qt4-script-4.4.1 qt4-sql-4.4.1 qt4-sqlite-plugin-4.4.1 qt4-svg-4.4.1 qt4-uic-4.4.1 qt4-uic3-4.4.1 qt4-webkit-4.4.1 qt4-xml-4.4.1 qt4-xmlpatterns-4.4.1 qt4-xmlpatterns-tool-4.4.1 -- cmake --version cmake version 2.6-patch 1 -- php -v PHP 5.2.6 with Suhosin-Patch 0.9.6.2 (cli) (built: Oct 23 2008 23:27:58) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies -- CMAKE_ARGS= -DQT_INCLUDE_DIR="/usr/local/include/qt4" \ -DQT_LIBRARY_DIR="/usr/local/lib/qt4" \ - DQT_QT3SUPPORT_INCLUDE_DIR="/usr/local/include/qt4/Qt3Support" \ -DQT_QTGUI_INCLUDE_DIR="/usr/local/include/qt4/QtGui" \ -DQT_QTNETWORK_INCLUDE_DIR="/usr/local/include/qt4/QtNetwork" \ -DQT_QTOPENGL_INCLUDE_DIR="/usr/local/include/qt4/QtOpenGL" \ -DQT_QTSQL_INCLUDE_DIR="/usr/local/include/qt4/QtSql" \ -DQT_QTSVG_INCLUDE_DIR="/usr/local/include/qt4/QtSvg" \ -DQT_QTXML_INCLUDE_DIR="/usr/local/include/qt4/QtXml" \ -DPHP5_INCLUDE_DIR="/usr/local/include/php/main" \ -DPHP5_MAIN_INCLUDE_DIR="/usr/local/include/php/main" \ -DPHP5_TSRM_INCLUDE_DIR="/usr/local/include/php/TSRM" \ -DPHP5_ZEND_INCLUDE_DIR="/usr/local/include/php/Zend" \ -DPHP5_REGEX_INCLUDE_DIR="/usr/local/include/php/regex" \ -DPHP5_EXT_INCLUDE_DIR="/usr/local/include/php/ext" \ -DFREEBSD_INCLUDES="/usr/local/include" \ |
From: Thomas M. <tm...@ph...> - 2008-10-27 23:09:12
|
Hi Ole, to me it looks like the verion of PHP-Qt you're using is a bit outdated, it is worth to give the svn version a try: svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebindings/php/phpqt There you'll find a build.sh script, invoking it should compile it for you. Please let me know if it works for you. Cheers, Thomas On Oct 27, 2008, at 11:03 PM, Ole Vole wrote: > Hello, Maillist! > > I try to porting php-qt to FreeBSD platform. After correct of some > individual > include_path of depend's product, i got the follow error when > compiling the > smokeqt : > > --- > ... > UnregisterMode isn't a known type (type=UnregisterMode) > UpdateHandler isn't a known type (type=UpdateHandler) > WId isn't a known type (type=WId) > WhiteSpaceMode isn't a known type (type=WhiteSpaceMode) > WriteFunc isn't a known type (type=WriteFunc) > QPoint isn't a known type (type=const QPoint) > QRect isn't a known type (type=const QRect) > QSize isn't a known type (type=const QSize) > picture_io_handler isn't a known type (type=picture_io_handler) > qint64 isn't a known type (type=qint64) > qlonglong isn't a known type (type=qlonglong) > quint64 isn't a known type (type=quint64) > qulonglong isn't a known type (type=qulonglong) > va_list isn't a known type (type=va_list) > Writing x_*.cpp... > Done. > Scanning dependencies of target smokeqt > [ 4%] Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/smokedata.o > [ 6%] Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/x_1.o > /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp: In static > member function > 'static void x_QAbstractGraphicsShapeItem::x_0(Smoke::StackItem*)': > /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp:1942: error: > cannot > allocate an object of abstract type 'x_QAbstractGraphicsShapeItem' > /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp:1938: note: > because the > following virtual functions are pure within > 'x_QAbstractGraphicsShapeItem': > /usr/local/include/qt4/Qt/qgraphicsitem.h:246: note: virtual QRectF > QGraphicsItem::boundingRect() const > /usr/local/include/qt4/Qt/qgraphicsitem.h:265: note: virtual void > QGraphicsItem::paint(QPainter*, const QStyleOptionGraphicsItem*, > QWidget*) > /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp: In static > member function > 'static void x_QAbstractGraphicsShapeItem::x_1(Smoke::StackItem*)': > /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp:1949: error: > cannot > allocate an object of abstract type 'x_QAbstractGraphicsShapeItem' > /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp:1938: note: > since type > 'x_QAbstractGraphicsShapeItem' has pure virtual functions > /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp: In static > member function > 'static void x_QAbstractGraphicsShapeItem::x_2(Smoke::StackItem*)': > /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp:1956: error: > cannot > allocate an object of abstract type 'x_QAbstractGraphicsShapeItem' > /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp:1938: note: > since type > 'x_QAbstractGraphicsShapeItem' has pure virtual functions > /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp: In static > member function > 'static void x_QAbstractGraphicsShapeItem::x_9(Smoke::StackItem*)': > /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp:1993: error: > cannot > allocate an object of abstract type 'x_QAbstractGraphicsShapeItem' > /usr/ports/devel/php-qt/work/phpqt/smoke/qt/x_1.cpp:1938: note: > since type > 'x_QAbstractGraphicsShapeItem' has pure virtual functions > *** Error code 1 > -- > > > Anoybody compile php-qt on FreeBSD? (i working with -HEAD aka > FreeBSD8/amd64 > and FreeBSD 7.1-PRERELEASE i386) ? Or, may be get some light for > illuminate > the cause of failure like and say what i doing wrong. > > Thanks! > > > PS: > installed soft on my system: > [oleg@ole ~]$ ls /var/db/pkg |grep ^qt4 > qt4-4.4.1_2 > qt4-accessible-4.4.1 > qt4-assistant-4.4.1 > qt4-assistant-adp-4.4.1 > qt4-clucene-4.4.1 > qt4-corelib-4.4.1 > qt4-dbus-4.4.1 > qt4-designer-4.4.1 > qt4-doc-4.4.1 > qt4-gui-4.4.1_1 > qt4-help-4.4.1 > qt4-iconengines-4.4.1 > qt4-imageformats-4.4.1 > qt4-inputmethods-4.4.1 > qt4-libQtAssistantClient-4.4.1 > qt4-makeqpf-4.4.1 > qt4-moc-4.4.1 > qt4-mysql-plugin-4.4.1 > qt4-network-4.4.1 > qt4-opengl-4.4.1 > qt4-phonon-4.4.1 > qt4-phonon-gst-4.4.1 > qt4-pixeltool-4.4.1 > qt4-porting-4.4.1 > qt4-qdbusviewer-4.4.1 > qt4-qmake-4.4.1 > qt4-qt3support-4.4.1 > qt4-qtconfig-4.4.1 > qt4-qtestlib-4.4.1 > qt4-qvfb-4.4.1_1 > qt4-rcc-4.4.1 > qt4-script-4.4.1 > qt4-sql-4.4.1 > qt4-sqlite-plugin-4.4.1 > qt4-svg-4.4.1 > qt4-uic-4.4.1 > qt4-uic3-4.4.1 > qt4-webkit-4.4.1 > qt4-xml-4.4.1 > qt4-xmlpatterns-4.4.1 > qt4-xmlpatterns-tool-4.4.1 > > -- > cmake --version > cmake version 2.6-patch 1 > > > > -- > php -v > PHP 5.2.6 with Suhosin-Patch 0.9.6.2 (cli) (built: Oct 23 2008 > 23:27:58) > Copyright (c) 1997-2008 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies > > -- > > CMAKE_ARGS= -DQT_INCLUDE_DIR="/usr/local/include/qt4" \ > -DQT_LIBRARY_DIR="/usr/local/lib/qt4" \ > - > DQT_QT3SUPPORT_INCLUDE_DIR="/usr/local/include/qt4/Qt3Support" \ > -DQT_QTGUI_INCLUDE_DIR="/usr/local/include/qt4/QtGui" \ > -DQT_QTNETWORK_INCLUDE_DIR="/usr/local/include/qt4/ > QtNetwork" > \ > -DQT_QTOPENGL_INCLUDE_DIR="/usr/local/include/qt4/ > QtOpenGL" \ > -DQT_QTSQL_INCLUDE_DIR="/usr/local/include/qt4/QtSql" \ > -DQT_QTSVG_INCLUDE_DIR="/usr/local/include/qt4/QtSvg" \ > -DQT_QTXML_INCLUDE_DIR="/usr/local/include/qt4/QtXml" \ > -DPHP5_INCLUDE_DIR="/usr/local/include/php/main" \ > -DPHP5_MAIN_INCLUDE_DIR="/usr/local/include/php/main" \ > -DPHP5_TSRM_INCLUDE_DIR="/usr/local/include/php/TSRM" \ > -DPHP5_ZEND_INCLUDE_DIR="/usr/local/include/php/Zend" \ > -DPHP5_REGEX_INCLUDE_DIR="/usr/local/include/php/ > regex" \ > -DPHP5_EXT_INCLUDE_DIR="/usr/local/include/php/ext" \ > -DFREEBSD_INCLUDES="/usr/local/include" \ > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Php-qt-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/php-qt-users |