I tried to compile homegear 0.6 from git on Arch Linux. libhomegear.base worked without a problem. However, homegear fails with the following error:
In file included from ScriptEngine/php_sapi.cpp:32:0:
ScriptEngine/php_sapi.h:44:17: fatal error: php.h: No such file or directory
compilation terminated.
Makefile:670: recipe for target 'ScriptEngine/libscriptengine_a-php_sapi.o' failed
PHP 7 is already installed. A look into the makefile makes me wonder who should provide /usr/include/php7-homegear: github.com/Homegear/Homegear/bl … ile.am#L26
I only have /usr/include/php with the same subfolders.
That’s the right one . Homegear needs PHP7 with thread support. That’s why it needs to be compiled manually. Most distributions only provide PHP7 without thread support.
Not directly. PHP does. You don’t need to compile all PHP modules. Homegear doesn’t depend on any of them except pthreads. So tell configure to not compile qdbm: “–without-qdbm”.
Ah, thanks for the information. do I need nothing but --enable-pthreads?
No --enable-xml, no --enable-zip, etc? That would make thinks a lot easier.
While compiling homegear, it expects several libraries (-lqdbm, -lenchant). Are these dependencies gone when compiling php without these modules?
In addition, compiling failed because -lphp7-homegear was missing. Does homegear expect a shared library (.so)? I thought php7-homegear is only an executable.
It is probably better to include more dependencies than less. The configuration I use is based on the Debian default configuration. If only a minimal configuration is used, it might be, (future) Homegear modules (similar to the OpenWeatherMap module) are not working.