» Content »pkg://kdebindings-4.6.1.tar.bz2:7078534
/ info downloads
PHP-Qt - an extension for PHP5 that enables the writing of PHP software using
the Qt Toolkit.
PHP-Qt is an extension for PHP5 that provides an object-oriented interface to
the Qt4 Framework and allows
one to write Qt applications in the PHP language.
PHP 5.1 or greater (5.2 or greater is recommended)
PHP header files and the development scripts
(package may be called php-devel)
Qt4 header files
(package may be called qt4-devel)
Note: at this time compilation has only been tested in a Unix environment.
Compiling and installation
Both of these methods will compile and install PHP-Qt as a module.
The quick and easy way:
1) change to the directory where you placed the php-qt sources
2) create a directory here named 'build' and change into it
3) run 'cmake ..' (see Troubleshooting below if you have more than one
version of Qt installed or you get errors here)
4) run 'make'
5) run 'make install'
6) run 'ldconfig'
7) add the line 'extension=php_qt.so' to your php.ini
8) run make test (if phpunit was found)
The more detailed way:
First make sure CMake, your PHP header files, and your Qt header files are
Then, get PHP-Qt either by downloading or checking out from SVN and placing it
into its own directory.
Next it is necessary to create your build environment for compiling.
To do this, just change into the directory where you placed PHP-Qt and
create a directory named 'build'
If needed you can give arguments to CMake via the -D option, such as:
If no arguments are given, CMake will try to find the Qt4 and PHP5 files in
the default or standard paths such as /usr/include, /usr/local/include etc.
to build the extension. If the compilation is successful run:
to copy 'php_qt.so' into php's extension directory. If it fails please check
if you have permissions and all related paths on your system are correct.
To update the cache of the run-time linker run:
so that the shared libraries will be found when starting PHP.
Edit your php.ini configuration file and add the line:
to enable the extension.
You can test whether your installation was successful by executing:
php -i | grep -i qt
You should get an output like this:
PHP-Qt support => enabled
qt.codec => UTF8 => UTF8
To run tests go into your build dir and invoke:
Alternatively you can run 'phpunit QtBasicTestCase.php' or other tests in the tests folder.
More tests can be found in tests/misc/
To remove old objectfiles run:
To create documentation go into your build dir and invoke:
If you get the following error:
CMake Error: Could NOT find QtCore.
Try running cmake as:
cmake .. -DQT_QMAKE_EXECUTABLE=/usr/lib/qt4/bin/qmake
(you may need to replace the /usr/lib/qt4/bin/qmake if yours is in another
For other problems try checking CMakeFiles/CMakeError.log for more details.
Hint: enable debugging with
cmake .. -DCMAKE_BUILD_TYPE=debug
users mailing list
The website for the project:
Results 1 - 1 of 1Search over 15 billion files
© 1997-2017 FileWatcher.com