php-qt (http://php-qt.berlios.de) are qt4 bindings for PHP5. The project is in alfa/developement stage but the current code is quite stable. php-qt in portage would atract more testers and developers to the project.
Created attachment 77914 [details] php-qt Ebuild It works but it should check if qt4 was emerged with +accessibility flag. (without it it won't build)
and it should be placed in /dev-php5 :)
php-qt-0.0.2 does not build for me against x11-libs/qt-4.1.0-r2 and dev-lang/php-5.1.2: wopr-mobile ~ # emerge php-qt Calculating dependencies ...done! >>> emerge (1 of 1) dev-php5/php-qt-0.0.2 to / >>> checksums files ;-) php-qt-0.0.2.ebuild >>> checksums files ;-) files/digest-php-qt-0.0.2 >>> checksums src_uri ;-) php_qt-0.0.2_src.tar.gz >>> Unpacking source... >>> Unpacking php_qt-0.0.2_src.tar.gz to /var/tmp/portage/php-qt-0.0.2/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2 ... * * Using dev-lang/php-5.1.2 * Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20050922 Zend Extension Api No: 220051025 checking for egrep... grep -E checking for a sed that does not truncate output... /bin/sed checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether gcc and cc understand -c and -o together... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for PHP prefix... /usr/lib/php5 checking for PHP includes... -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -I/usr/lib/php5/include/php/ext checking for PHP extension directory... /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20050922 checking for PHP installed headers prefix... /usr/lib/php5/include/php checking for re2c... no configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking Qt runtime library... yes, shared checking for Qt binaries... default path checking for php_qt... yes, shared checking for Qt headers in default path... trying different pathes checking for /usr/local/include/qt4/Qt/qobject.h... not found checking for /usr/local/include/Qt/qobject.h... not found checking for /usr/include/qt4/Qt/qobject.h... found checking for /usr/include/Qt/qobject.h... not found checking for /usr/lib/qt4/include/qt4/Qt/qobject.h... not found checking for /usr/lib/qt4/include/Qt/qobject.h... not found checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by gcc... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking how to run the C++ preprocessor... g++ -E checking the maximum length of command line arguments... 32768 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes configure: creating ./config.status config.status: creating config.h /bin/sh /var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/libtool --mode=compile g++ -I. -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2 -DPHP_ATOM_INC -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/include -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/main -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -I/usr/lib/php5/include/php/ext -I/usr/include/qt4/include -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4 -DHAVE_CONFIG_H -c /var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/qt/main_window/qapplication.cpp -o qt/main_window/qapplication.lo mkdir qt/main_window/.libs g++ -I. -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2 -DPHP_ATOM_INC -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/include -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/main -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -I/usr/lib/php5/include/php/ext -I/usr/include/qt4/include -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4 -DHAVE_CONFIG_H -c /var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/qt/main_window/qapplication.cpp -fPIC -DPIC -o qt/main_window/.libs/qapplication.o /bin/sh /var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/libtool --mode=compile g++ -I. -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2 -DPHP_ATOM_INC -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/include -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/main -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -I/usr/lib/php5/include/php/ext -I/usr/include/qt4/include -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4 -DHAVE_CONFIG_H -c /var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/qt/main_window/qcoreapplication.cpp -o qt/main_window/qcoreapplication.lo g++ -I. -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2 -DPHP_ATOM_INC -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/include -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/main -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -I/usr/lib/php5/include/php/ext -I/usr/include/qt4/include -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4 -DHAVE_CONFIG_H -c /var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/qt/main_window/qcoreapplication.cpp -fPIC -DPIC -o qt/main_window/.libs/qcoreapplication.o /bin/sh /var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/libtool --mode=compile g++ -I. -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2 -DPHP_ATOM_INC -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/include -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/main -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -I/usr/lib/php5/include/php/ext -I/usr/include/qt4/include -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4 -DHAVE_CONFIG_H -c /var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/qt/abstract_widgets/qwidget.cpp -o qt/abstract_widgets/qwidget.lo mkdir qt/abstract_widgets/.libs g++ -I. -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2 -DPHP_ATOM_INC -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/include -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/main -I/var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -I/usr/lib/php5/include/php/ext -I/usr/include/qt4/include -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4 -DHAVE_CONFIG_H -c /var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/qt/abstract_widgets/qwidget.cpp -fPIC -DPIC -o qt/abstract_widgets/.libs/qwidget.o /var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/qt/abstract_widgets/qwidget.cpp: In function 'void zif_QWidget_setAccessibleDescription(int, zval*, zval**, zval*, int)': /var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/qt/abstract_widgets/qwidget.cpp:163: error: 'class QWidget' has no member named 'setAccessibleDescription' /var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/qt/abstract_widgets/qwidget.cpp: In function 'void zif_QWidget_setAccessibleName(int, zval*, zval**, zval*, int)': /var/tmp/portage/php-qt-0.0.2/work/php_qt-0.0.2/qt/abstract_widgets/qwidget.cpp:164: error: 'class QWidget' has no member named 'setAccessibleName' make: *** [qt/abstract_widgets/qwidget.lo] Error 1 !!! ERROR: dev-php5/php-qt-0.0.2 failed. !!! Function php-ext-source-r1_src_compile, Line 45, Exitcode 2 !!! Unable to make code !!! If you need support, post the topmost build error, NOT this status message.
Created attachment 77927 [details] dev-php5/php-qt-0.0.2.ebuild
(In reply to comment #3) > php-qt-0.0.2 does not build for me against x11-libs/qt-4.1.0-r2 and > dev-lang/php-5.1.2: > Do you have qt-4.1.0-r2 with accessibility flag?
[ebuild R ] x11-libs/qt-4.1.0-r2 USE="cups gif jpeg mng opengl png zlib -accessibility -debug -doc -examples -firebird -mysql -nas -nis -odbc -postgres -sqlite -xinerama" 0 kb
I added a cleaned-up version of the ebuild to our overlay at http://svn.gnqs.org/projects/gentoo-php-overlay/file/experimental/dev-php5/php-qt/php-qt-0.0.2.ebuild.
(In reply to comment #6) > [ebuild R ] x11-libs/qt-4.1.0-r2 USE="cups gif jpeg mng opengl png zlib > -accessibility -debug -doc -examples -firebird -mysql -nas -nis -odbc -postgres > -sqlite -xinerama" 0 kb > +accessibility is required for php-qt, recompile qt with this flag
Did you actually look at the new ebuild mentioned in comment #7? pkg_setup() { pkg="`best_version '=x11-libs/qt-4*'`" if ! built_with_use =${pkg} accessibility ; then die "You need to re-emerge x11-libs/qt with USE=accessibility." fi } The new ebuild builds fine for me (after re-emerging x11-libs/qt with USE=accessibility, of course).
dev-php5/php-qt is in the official tree now.