tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

when i build example cpp ,i got this : TdConfig.cmake, version: 1.8.34 (32bit) #3012

Closed Dear-Jn closed 2 months ago

Dear-Jn commented 2 months ago

C:\Users\Administrator\td\example\cpp\build (master) $ cmake -DCMAKE_BUILD_TYPE=Debug -DTd_DIR=C:/Users/Administrator/td/example/cpp/td/lib/cmake/Td .. CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell

CMake that the project does not need compatibility with older versions.

-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045. CMake Error at CMakeLists.txt:5 (find_package): Could not find a configuration file for package "Td" that is compatible with requested version "1.8.34".

The following configuration files were considered but not accepted:

C:/Users/Administrator/td/example/cpp/td/lib/cmake/Td/TdConfig.cmake, version: 1.8.34 (32bit)

-- Configuring incomplete, errors occurred!

Actually, i have build all the need in example project image

image

levlam commented 2 months ago

The error "The following configuration files were considered but not accepted:" means that you build TDLib for x86, but trying to build the example for x64/ARM64. You need to specify the same -A parameter to cmake as was specified during TDLib building.

Dear-Jn commented 2 months ago

The error "The following configuration files were considered but not accepted:" means that you build TDLib for x86, but trying to build the example for x64/ARM64. You need to specify the same -A parameter to cmake as was specified during TDLib building.

Thank you very much, it is working now, thank you.😄