phptdlib: Error "install FILES given no DESTINATION"
I have errors during the compilation of phptdlib. I use a MacOS HighSierra v. 10.13.6.
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_INCLUDE_DIR)
CMake Warning at modules/td/CMakeLists.txt:249 (message):
Not found OpenSSL: skip TDLib, tdactor, tdnet, tddb
-- Using the single-header code from /Applications/MAMP/htdocs/TelegramRecorder/phptdlib/modules/json/single_include/
CMake Error at CMakeLists.txt:175 (install):
install FILES given no DESTINATION!
-- Configuring incomplete, errors occurred!
The first error (OPEN SSL) managed to solve it with:
cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl/ ..
But the error “install FILES given no DESTINATION!” I do not know what can be caused or how to solve it.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (4 by maintainers)
@DavidCima and one more thing to try.
Find the following fragment in
CMakeLists.txtand replace it with
I have no Mac so I cannot try it by myself currently.
Well, I have managed to solve the problems with write permissions in the / usr / lib / php / extensions / no-debug-non-zts-20160303 folder.
It has been really difficult since my system did not allow me to change the read to write permission. In case someone else happens, this is what you need to do:
Once the writing is allowed, I execute “sudo make install” and it compiles well, at least in appearance.
I modify my “php.ini” file by adding the line extension = tdlib.dylib
and then I get this error …
Hi @maxvgi @yaroslavche It seems that after the last “commit” the problem with the command has been solved and it no longer throws the error: “Undefined symbols for architecture x86_64.”
make
directory tree “build”
However now it throws me another error when I run “sudo make install”:
It occurs to me that maybe it is a problem with the write permissions. I will check and comment on the result. No doubt it seems that we are on the right track.
@DavidCima, did you try to build the project after the latest cc8ebc3 commit?
Hi, @DavidCima It seems that there is a bug in CMakeLists.txt
I will try to fix it. For now, please send me output of command
php-config --configure-optionsI am intrested in
--with-config-file-scan-dir=option.