Thread: [Php-qt-users] 6th tutorial available
Status: Beta
Brought to you by:
tm243
From: Thomas M. <tm...@ip...> - 2006-01-15 18:30:44
|
Hi, I added the 6th tutorial to the svn repository. A lot of new classes were added, they are most complete. You can help testing if you want. qactionevent.cpp qdatetime.cpp qfocusevent.cpp qinputevent.cpp qobjectdata.cpp qstatustipevent.cpp qwidgetdata.cpp qchar.cpp qdragenterevent.cpp qfont.cpp qinputmethodevent.cpp qobjectuserdata.cpp qtabletevent.cpp qwidgetitem.cpp qcharref.cpp qdragleaveevent.cpp qgridlayout.cpp qkeyevent.cpp qpainter.cpp qtime.cpp qwindowstatechangeevent.cpp qclipboardevent.cpp qdragmoveevent.cpp qhelpevent.cpp qlabel.cpp qpaintevent.cpp qtimer.cpp qcloseevent.cpp qdragresponseevent.cpp qhideevent.cpp qlatin1char.cpp qresizeevent.cpp qtoolbarchangeevent.cpp qcontextmenuevent.cpp qdropevent.cpp qhoverevent.cpp qmouseevent.cpp qshortcutevent.cpp qwhatsthisclickedevent.cpp qdate.cpp qfileopenevent.cpp qicondragevent.cpp qmoveevent.cpp qshowevent.cpp qwheelevent.cpp -- Thomas |
From: Ferenc V. <li...@ne...> - 2006-01-15 21:18:21
|
Hi everyone, I must do the following command line to start it compiling: /usr/local/php511/bin/phpize ./configure --enable-php_qt --prefix=3D/usr/local/php511/ --with-qtlib=3D/usr/lib/qt4/lib --with-php_qt=3D/usr/lib/qt4/include make clean make (I hope that --with-php_qt=3D/usr/lib/qt4/include is what you wanted, because that's the only combination which creates the INCLUDES variable right. Hopefully QT4 and PHP5.1.x will became standard installation soon so we don't need any path tricks. :-) ) Compiling fails with the error attached below, but probably I checked out some unfinished changes. Ferenc g++ -I. -I/home/lion/install/php-5.1.1/ext/php_qt -DPHP_ATOM_INC -I/home/lion/install/php-5.1.1/ext/php_qt/include -I/home/lion/install/php-5.1.1/ext/php_qt/main -I/home/lion/install/php-5.1.1/ext/php_qt -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/lib/qt4/include/include -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include -DHAVE_CONFIG_H -c /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on.cpp -fPIC -DPIC -o qt/abstract_widgets/.libs/qabstractbutton.o /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on.cpp: In function =E2=80=98void zif_QAbstractButton_setAutoExclusive(int, zval*= , zval*, int)=E2=80=99: /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on.cpp:40: error: =E2=80=98zend_update_property_bool=E2=80=99 was not declared in th= is scope /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on.cpp: In function =E2=80=98void zif_QAbstractButton_setAutoRepeat(int, zval*, z= val*, int)=E2=80=99: /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on.cpp:41: error: =E2=80=98zend_update_property_bool=E2=80=99 was not declared in th= is scope /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on.cpp: In function =E2=80=98void zif_QAbstractButton_setCheckable(int, zval*, zv= al*, int)=E2=80=99: /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on.cpp:42: error: =E2=80=98zend_update_property_bool=E2=80=99 was not declared in th= is scope /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on.cpp: In function =E2=80=98void zif_QAbstractButton_setDown(int, zval*, zval*, = int)=E2=80=99: /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on.cpp:43: error: =E2=80=98zend_update_property_bool=E2=80=99 was not declared in th= is scope make: *** [qt/abstract_widgets/qabstractbutton.lo] Error 1 |
From: Thomas M. <tm...@ip...> - 2006-01-15 21:48:08
|
=46erenc Veres wrote on Sonntag, 15. Januar 2006 14:18: > Hi everyone, > > I must do the following command line to start it compiling: > > /usr/local/php511/bin/phpize Right. > ./configure --enable-php_qt --prefix=3D/usr/local/php511/ > --with-qtlib=3D/usr/lib/qt4/lib --with-php_qt=3D/usr/lib/qt4/include > make clean > make Ok, I should update the README file. We figured that out a few weeks before. > (I hope that --with-php_qt=3D/usr/lib/qt4/include is what you wanted, > because that's the only combination which creates the INCLUDES variable > right. Hopefully QT4 and PHP5.1.x will became standard installation soon > so we don't need any path tricks. :-) ) Yeah! We can dream :-) > Compiling fails with the error attached below, but probably I checked > out some unfinished changes. =2E.. > g++ -I. -I/home/lion/install/php-5.1.1/ext/php_qt -DPHP_ATOM_INC > -I/home/lion/install/php-5.1.1/ext/php_qt/include > -I/home/lion/install/php-5.1.1/ext/php_qt/main > -I/home/lion/install/php-5.1.1/ext/php_qt -I/usr/include/php > -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend > -I/usr/lib/qt4/include/include -I/usr/lib/qt4/include/QtGui > -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include -DHAVE_CONFIG_H -c > /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on >.cpp -fPIC -DPIC -o qt/abstract_widgets/.libs/qabstractbutton.o > /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on >.cpp: In function =E2=80=98void zif_QAbstractButton_setAutoExclusive(int, = zval*, > zval*, int)=E2=80=99: > /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on >.cpp:40: error: =E2=80=98zend_update_property_bool=E2=80=99 was not declar= ed in this scope > /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on >.cpp: In function =E2=80=98void zif_QAbstractButton_setAutoRepeat(int, zva= l*, zval*, > int)=E2=80=99: > /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on >.cpp:41: error: =E2=80=98zend_update_property_bool=E2=80=99 was not declar= ed in this scope > /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on >.cpp: In function =E2=80=98void zif_QAbstractButton_setCheckable(int, zval= *, zval*, > int)=E2=80=99: > /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on >.cpp:42: error: =E2=80=98zend_update_property_bool=E2=80=99 was not declar= ed in this scope > /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on >.cpp: In function =E2=80=98void zif_QAbstractButton_setDown(int, zval*, zv= al*, > int)=E2=80=99: > /home/lion/install/php-5.1.1/ext/php_qt/qt/abstract_widgets/qabstractbutt= on >.cpp:43: error: =E2=80=98zend_update_property_bool=E2=80=99 was not declar= ed in this scope > make: *** [qt/abstract_widgets/qabstractbutton.lo] Error 1 > zend_update_property_bool is implemented in Zend/zend_API.c and defined in= =20 Zend/zend_API.h. =46or you, it should be here: /usr/include/php/Zend/zend_API.h Is it? In december you have used this command: =2E/configure --prefix=3D/usr/local/php511/ =2D-with-php-config=3D/usr/local/php511/bin/php-config =2D-with-qtlib=3D/usr/lib/qt4 --with-php_qt=3D/usr/lib/qt4/include Meanwhile I removed the --prefix argument because it is usual to use php's = own=20 prefix specified at configuration and compilation of php. =2D-=20 Thomas |
From: Ferenc V. <li...@ne...> - 2006-01-15 23:08:16
|
Hi, Thomas Moenicke wrote: > zend_update_property_bool is implemented in Zend/zend_API.c and defined in > Zend/zend_API.h. > > For you, it should be here: /usr/include/php/Zend/zend_API.h > > Is it? /usr/local/php511/include/php/Zend/ It is there, probably it was not detected because I forgot the "--with-php-config" option! > In december you have used this command: > > ./configure --prefix=/usr/local/php511/ > --with-php-config=/usr/local/php511/bin/php-config > --with-qtlib=/usr/lib/qt4 --with-php_qt=/usr/lib/qt4/include > > Meanwhile I removed the --prefix argument because it is usual to use php's own > prefix specified at configuration and compilation of php. Yes, I have notes of my old build line, but I remembered that some things were changed, so I made a new one according to the README! :-D Thanks, the adjusted configure line worked and tutorial 6 runs well. I will check what's new. :-) Ferenc |
From: Thomas M. <tm...@ip...> - 2006-01-15 23:18:16
|
Ferenc Veres wrote on Montag, 16. Januar 2006 00:08: > Yes, I have notes of my old build line, but I remembered that some > things were changed, so I made a new one according to the README! :-D > > Thanks, the adjusted configure line worked and tutorial 6 runs well. I > will check what's new. :-) Ferenc, this are good news! I made tutorial 7 too, but it does not work correctly because it lacks custom widgets. But I work on it actually. And the README before I forget it ;-) -- Thomas |