danog / php-libtgvoip

PHP extension that wraps the telegram VoIP library.
https://voip.madelineproto.xyz
GNU Affero General Public License v3.0
24 stars 5 forks source link

error make #4

Closed gerlo99 closed 6 years ago

gerlo99 commented 6 years ago

mkdir -p shared/common mkdir -p shared/zend g++ -Wall -c -std=c++11 -fvisibility=hidden -DBUILDING_PHPCPP -Wno-write-strings -MD -g -fpic -o shared/common/streambuf.o common/streambuf.cpp make: g++: Command not found Makefile:198: recipe for target 'shared/common/streambuf.o' failed make: *** [shared/common/streambuf.o] Error 127

danog commented 6 years ago

Install build-essential

gerlo99 commented 6 years ago

In file included from zend/inivalue.cpp:8:0: zend/includes.h:40:17: fatal error: php.h: No such file or directory compilation terminated. Makefile:204: recipe for target 'shared/zend/inivalue.o' failed make: *** [shared/zend/inivalue.o] Error 1

danog commented 6 years ago

@gerlo99 Install php development headers

gerlo99 commented 6 years ago

please send me the command

danog commented 6 years ago

@gerlo99 sudo apt install php7.version-dev

gerlo99 commented 6 years ago

E: Unable to locate package php7.version-dev E: Couldn't find any package by glob 'php7.version-dev' E: Couldn't find any package by regex 'php7.version-dev'

danog commented 6 years ago

@gerlo99 Substitute version with your minor php version

gerlo99 commented 6 years ago

now say this: /usr/bin/ld: cannot find -lbfd collect2: error: ld returned 1 exit status Makefile:140: recipe for target 'libtgvoip.so' failed make: *** [libtgvoip.so] Error 1

FabianPastor commented 6 years ago

install binutils-dev

danog commented 6 years ago

Or use the latest version, this is fixed now

gerlo99 commented 6 years ago

done,but the userbot says this: MadelineProto requires the libtgvoip extension to run. Follow the instructions @ https://voip.madelineproto.xyz to install it.

gerlo99 commented 6 years ago

ok,now work. thank you