-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TDApi and TDLib not visible on PHP #70
Comments
Are you sure, that you have installed extension? What output you see for following:
|
i get the following message:
$ php -m | grep tdlib
$ php -r "echo (function_exists('td_json_client_create') ? 'ok' : 'failed')
. PHP_EOL;"
failed
Em qua., 22 de jul. de 2020 às 13:44, Yaroslav <[email protected]>
escreveu:
… Are you sure, that you have installed extension? What output you see for
following:
$ php -m | grep tdlib
$ php -r "echo (function_exists('td_json_client_create') ? 'ok' : 'failed') . PHP_EOL;"
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#70 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADVAEXRETUQLU3HADAH222LR44JPDANCNFSM4PEW3SKA>
.
|
The whole error message: $ cmake .. -- Using the single-header code from /Applications/Ampps/www/phptdlib/modules/json/single_include/ CMake Error at CMakeLists.txt:230 (add_executable): CMake Error at CMakeLists.txt:183 (add_library): CMake Error at CMakeLists.txt:183 (add_library): -- Generating done |
Please install OpenSSL first, then follow installation instructions |
openssl installed:
|
I really don't know what's going on, even following all the steps on the video and documentation. The files TdConfig.cmake and td-config.cmake just not generate. pwd/phptdlib/build cmake -D USE_SHARED_TD:BOOL=ON -D USE_SHARED_JSON:BOOL=ON -D USE_SHARED_PHPCPP:BOOL=ON ..-- The CXX compiler identification is GNU 8.3.0 Could not find a package configuration file provided by "Td" (requested
Add the installation prefix of "Td" to CMAKE_PREFIX_PATH or set "Td_DIR" to -- Configuring incomplete, errors occurred! pwd/phptdlib/build cmake ..CMake Error at CMakeLists.txt:111 (find_package): Could not find a package configuration file provided by "Td" (requested
Add the installation prefix of "Td" to CMAKE_PREFIX_PATH or set "Td_DIR" to -- Configuring incomplete, errors occurred! |
If you want use shared libs, then you firstly should install them. Run
Please read docs carefully. |
The whole process, step by step, was followed, same result, same error. I tried everything, but nothing seems to make it work, i really don't know. iMac-de-Luciano-4:phptdlib lucianopezzin$ CONFIG=gcc CC=gcc CXX=g++ ./scripts/install.sh |
Following "installation with shared libraries", step by step strictly, but the same error, doesn't work for me. Could not find a package configuration file provided by "Td" (requested
Add the installation prefix of "Td" to CMAKE_PREFIX_PATH or set "Td_DIR" to -- Configuring incomplete, errors occurred! |
Read carefully. I can't say anything about macOS. Please use docker or find how to build And I've checked what wrong. Seems in macOS not possible to declare assoc array in shell script. Anyway you should install |
php -i | grep tdlib how to set this command to work |
I tried to use phptdlib, but the classes in TDLib and TDApi are not visible to use.
Error:
Fatal error: Uncaught Error: Class 'TDApi\LogConfiguration' not found in /Applications/AMPPS/www/td/phptdlib/php_examples/client.php:13 Stack trace: #0 {main} thrown in /Applications/AMPPS/www/td/phptdlib/php_examples/client.php on line 13
Fatal error: Uncaught Error: Class 'TDLib\JsonClient' not found in /Applications/AMPPS/www/td/phptdlib/php_examples/client.php:15 Stack trace: #0 {main} thrown in /Applications/AMPPS/www/td/phptdlib/php_examples/client.php on line 15
The text was updated successfully, but these errors were encountered: