Compiling PHP-Qt

I can’t get PHP-Qt to compile, while running cmake it craps out on me saying it can’t find PHP5

cmake ..
-- Found Qt-Version 4.5.0
CMake Error at cmake/modules/FindPHP5.cmake:139 (LIST):
  list index: 0 out of range (-0, 18446744073709551615)
Call Stack (most recent call first):
  CMakeLists.txt:13 (include)


-- /main
CMake Error at CMakeLists.txt:16 (MESSAGE):
  PHP5 could not be found!


-- Configuring incomplete, errors occurred!

PHP5 is however installed and I tried editting the cmake/modules/FindPHP5.cmake file by adding


  /usr/share/php5
  /usr/bin/php5

to SET(PHP5_POSSIBLE_INCLUDE_PATHS)
Didn’t help me one bit, still the same error.

When you just need to run ‘foo’ you install the package ‘foo’ and perhaps ‘foo-libs’. But when you want to compile something against ‘foo’, you need at least the package ‘foo-devel’ and perhaps others.

Thanks that did work, did install every -dev besides that one it seems.

Don’t seem to be getting much further though, running make gets a lot of “undefined”'s and

problem with QwtPlotMagnifier missing parent at /home/Pascal/phpqt/phpqt/kalyptus/kalyptusCxxToSmoke.pm line 1954.
make[2]: *** [smoke/qt/smokedata.cpp] Error 25
make[1]: *** [smoke/qt/CMakeFiles/smokeqt.dir/all] Error 2
make: *** [all] Error 2

full version