-
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
TdConfig.cmake version: unknown #72
Comments
That's because tdlib was updated to version 1.6.10. Please update from latest commit and try again. |
Thanks for the fast answer! I tried again and have the same problem:
|
Seems that submodules didn't updated. Or something wrong with installed
Which one do you use? Please describe what you do. |
I tried to remove PHP-CPP and phptdlib then I repeated all steps from this instruction https://yaroslavche.github.io/phptdlib/installation.html install openssl ( sudo ln -s /usr/local/Cellar/[email protected]/1.1.1g/lib/libcrypto.1.1.dylib /usr/local/lib/libcrypto.dylib
sudo ln -s /usr/local/Cellar/[email protected]/1.1.1g/lib/libcrypto.1.1.dylib /usr/local/lib/libcrypto.dylib cd projects
git clone https://github.com/CopernicaMarketingSoftware/PHP-CPP.git
cd PHP-CPP
make
sudo make install
cd ../
git clone --recurse-submodules https://github.com/yaroslavche/phptdlib.git
cd phptdlib && mkdir build && cd build
cmake .. -DOPENSSL_ROOT_DIR="/usr/local/opt/[email protected]" -DOPENSSL_CRYPTO_LIBRARY="/usr/local/lib/libcrypto.dylib" -DOPENSSL_SSL_LIBRARY=/usr/local/lib/libssl.dylib
make
But I got new error: Scanning dependencies of target tdlib
[ 98%] Building CXX object CMakeFiles/tdlib.dir/tdlib.cpp.o
/Users/vip/projects/phptdlib/tdlib.cpp:3:10: fatal error: 'phpcpp.h' file not found
#include <phpcpp.h>
^~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/tdlib.dir/tdlib.cpp.o] Error 1
make[1]: *** [CMakeFiles/tdlib.dir/all] Error 2
make: *** [all] Error 2 I also checked /usr/local/include and there is phpcpp.h NOTE: My OS is OSX |
Now looks like cmake found needed dependecies and you have problem with
before In few words, what you need:
And |
PHP-CPP is installed correctly but I it's OSX problem (https://bbqsoftwares.com/blog/xdebug-catalina-issue#the-catalina-issue) because there is not Do you know how can I change |
Try to specify include path as arg:
or maybe:
And I can't answer to your question, since I don't know |
@edvardpotter , seems I've understood your question and have an answer. It lies in error message:
You could try to Also you could try to add INCLUDE path for
and if need (but shouldn't), also specify LIB path:
This would better way since you don't need edit code. |
Both options don't work correctly:
If I change path to
get this error:
|
You should specify dir, where
If this wont help, then I just don't know how to help and just can advise to use docker (or maybe linux) or try to find how to include needed file for make (or through cmake) in OSX. |
My
|
Sorry then, IDK why |
Okay, thank you for your help) |
When I build phptdlib (cmake .. in phptdlib/build), I get this error:
How can I fix it?
The text was updated successfully, but these errors were encountered: