Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Could not find a configuration file for package "Td" that is compatible with requested version "1.7.10". #57

Closed
ghost opened this issue Mar 4, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 4, 2022

Trying to install tg2sip and getting error:

/usr/src/tg2sip/build# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig && cmake -DCMAKE_BUILD_TYPE=Release -DTd_DIR=/usr/src/td/tdlib/lib/cmake/Td/ -DCMAKE_INSTALL_PREFIX:PATH=.. ..
CMake Error at CMakeLists.txt:10 (find_package):
  Could not find a configuration file for package "Td" that is compatible
  with requested version "1.7.10".

  The following configuration files were considered but not accepted:

    /usr/src/td/tdlib/lib/cmake/Td/TdConfig.cmake, version: 1.8.1
    /usr/src/td/TdConfig.cmake, version: unknown
@Infactum
Copy link
Owner

Infactum commented Mar 8, 2022

Current gateway branch was build against TdLib 1.7.10.
There is no direct commit with this version in tdlib repository, so you should use direct commit hash.
See docker build env scripts for details:

# TDLib 1.7.10
RUN source /opt/rh/devtoolset-7/enable \
&& git clone https://github.com/tdlib/td.git \
&& cd td \
&& git reset --hard a53cb30e99f937cfd64e0266fa558785a184a553 \
&& git apply /tdlib_header.patch \
&& git apply /tdlib_threadname.patch \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
&& cmake --build . --target install -j $(grep -c ^processor /proc/cpuinfo) \
&& cd / \
&& rm -rf td

@Infactum Infactum closed this as completed Mar 8, 2022
@ghost
Copy link
Author

ghost commented Mar 11, 2022

Thank you. But now i have another error:

[ 98%] Building CXX object CMakeFiles/tg2sip.dir/tg2sip/utils.cpp.o /usr/src/tg2sip/tg2sip/utils.cpp:21:64: error: implicit instantiation of undefined template 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >' bool is_digits(const std::string &str) { return std::all_of(str.begin(), str.end(), ::isdigit); }; ^ /usr/lib/llvm-10/bin/../include/c++/v1/iosfwd:209:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; ^ /usr/src/tg2sip/tg2sip/utils.cpp:21:77: error: implicit instantiation of undefined template 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >' bool is_digits(const std::string &str) { return std::all_of(str.begin(), str.end(), ::isdigit); }; ^ /usr/lib/llvm-10/bin/../include/c++/v1/iosfwd:209:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; ^ /usr/src/tg2sip/tg2sip/utils.cpp:21:87: error: no member named 'isdigit' in the global namespace; did you mean 'is_digits'? bool is_digits(const std::string &str) { return std::all_of(str.begin(), str.end(), ::isdigit); }; ~~^~~~~~~ is_digits /usr/src/tg2sip/tg2sip/utils.cpp:21:6: note: 'is_digits' declared here bool is_digits(const std::string &str) { return std::all_of(str.begin(), str.end(), ::isdigit); }; ^ 3 errors generated. make[2]: *** [CMakeFiles/tg2sip.dir/build.make:128: CMakeFiles/tg2sip.dir/tg2sip/utils.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:125: CMakeFiles/tg2sip.dir/all] Error 2 make: *** [Makefile:84: all] Error 2

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant