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 tdlib i got could not find cmake_root! #2228

Closed testtest954 closed 1 year ago

testtest954 commented 1 year ago

how do i fix this? this everything of powershell

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\TheEzraGamer> e: PS E:> cd PS E:> cd telegram PS E:\telegram> git clone https://github.com/tdlib/td.git

cd td git clone https://github.com/Microsoft/vcpkg.git cd vcpkg git checkout 1b1ae50e1a69f7c659bd7d731e80b358d21c86ad ./bootstrap-vcpkg.bat ./vcpkg.exe install gperf:x64-windows openssl:x64-windows zlib:x64-windows cd .. Remove-Item build -Force -Recurse -ErrorAction SilentlyContinue mkdir build cd build cmake -A x64 -DCMAKE_INSTALL_PREFIX:PATH=../tdlib -DCMAKE_TOOLCHAIN_FILE:FILEPATH=../vcpkg/scripts/buildsystems/vcpkg.cmake .. cmake --build . --target install --config Release cd .. cd .. dir td/tdlib Cloning into 'td'... remote: Enumerating objects: 80857, done. remote: Counting objects: 100% (110/110), done. remote: Compressing objects: 100% (65/65), done. remote: Total 80857 (delta 50), reused 87 (delta 44), pack-reused 80747 Receiving objects: 100% (80857/80857), 40.88 MiB | 15.21 MiB/s, done. Resolving deltas: 100% (58290/58290), done. Cloning into 'vcpkg'... remote: Enumerating objects: 171601, done. remote: Counting objects: 100% (156/156), done. remote: Compressing objects: 100% (138/138), done. remote: Total 171601 (delta 81), reused 72 (delta 18), pack-reused 171445 Receiving objects: 100% (171601/171601), 65.33 MiB | 10.19 MiB/s, done. Resolving deltas: 100% (108565/108565), done. Updating files: 100% (9592/9592), done. Updating files: 100% (5786/5786), done. Note: switching to '1b1ae50e1a69f7c659bd7d731e80b358d21c86ad'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 1b1ae50e1 [vcpkg-tools] update cmake and git (windows only) (#22985) Downloading https://github.com/microsoft/vcpkg-tool/releases/download/2022-02-24/vcpkg.exe -> E:\telegram\td\vcpkg\vcpkg.exe... done. Validating signature... done.

Telemetry

vcpkg collects usage data in order to help us improve your experience. The data collected by Microsoft is anonymous. You can opt-out of telemetry by re-running the bootstrap-vcpkg script with -disableMetrics, passing --disable-metrics to vcpkg on the command line, or by setting the VCPKG_DISABLE_METRICS environment variable.

Read more about vcpkg telemetry at docs/about/privacy.md Computing installation plan... CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modules directory not found in

d8187afd-ea4a-4fc3-9aa4-a6782e1ed9af c35112b6-d1ba-415b-aa5d-81de856ef8eb VCPKG_TARGET_ARCHITECTURE=x64 VCPKG_CMAKE_SYSTEM_NAME= VCPKG_CMAKE_SYSTEM_VERSION= VCPKG_PLATFORM_TOOLSET= VCPKG_PLATFORM_TOOLSET_VERSION= VCPKG_VISUAL_STUDIO_PATH= VCPKG_CHAINLOAD_TOOLCHAIN_FILE= VCPKG_BUILD_TYPE= VCPKG_LIBRARY_LINKAGE=dynamic VCPKG_CRT_LINKAGE=dynamic e1e74b5c-18cb-4474-a6bd-5c1c8bc81f3f c35112b6-d1ba-415b-aa5d-81de856ef8eb VCPKG_PUBLIC_ABI_OVERRIDE= VCPKG_ENV_PASSTHROUGH= VCPKG_ENV_PASSTHROUGH_UNTRACKED= VCPKG_LOAD_VCVARS_ENV= VCPKG_DISABLE_COMPILER_TRACKING= e1e74b5c-18cb-4474-a6bd-5c1c8bc81f3f 8c504940-be29-4cba-9f8f-6cd83e9d87b7 d8187afd-ea4a-4fc3-9aa4-a6782e1ed9af c35112b6-d1ba-415b-aa5d-81de856ef8eb VCPKG_TARGET_ARCHITECTURE=x64 VCPKG_CMAKE_SYSTEM_NAME= VCPKG_CMAKE_SYSTEM_VERSION= VCPKG_PLATFORM_TOOLSET= VCPKG_PLATFORM_TOOLSET_VERSION= VCPKG_VISUAL_STUDIO_PATH= VCPKG_CHAINLOAD_TOOLCHAIN_FILE= VCPKG_BUILD_TYPE= VCPKG_LIBRARY_LINKAGE=dynamic VCPKG_CRT_LINKAGE=dynamic e1e74b5c-18cb-4474-a6bd-5c1c8bc81f3f c35112b6-d1ba-415b-aa5d-81de856ef8eb VCPKG_PUBLIC_ABI_OVERRIDE= VCPKG_ENV_PASSTHROUGH= VCPKG_ENV_PASSTHROUGH_UNTRACKED= VCPKG_LOAD_VCVARS_ENV= VCPKG_DISABLE_COMPILER_TRACKING= e1e74b5c-18cb-4474-a6bd-5c1c8bc81f3f 8c504940-be29-4cba-9f8f-6cd83e9d87b7 d8187afd-ea4a-4fc3-9aa4-a6782e1ed9af c35112b6-d1ba-415b-aa5d-81de856ef8eb VCPKG_TARGET_ARCHITECTURE=x64 VCPKG_CMAKE_SYSTEM_NAME= VCPKG_CMAKE_SYSTEM_VERSION= VCPKG_PLATFORM_TOOLSET= VCPKG_PLATFORM_TOOLSET_VERSION= VCPKG_VISUAL_STUDIO_PATH= VCPKG_CHAINLOAD_TOOLCHAIN_FILE= VCPKG_BUILD_TYPE= VCPKG_LIBRARY_LINKAGE=dynamic VCPKG_CRT_LINKAGE=dynamic e1e74b5c-18cb-4474-a6bd-5c1c8bc81f3f c35112b6-d1ba-415b-aa5d-81de856ef8eb VCPKG_PUBLIC_ABI_OVERRIDE= VCPKG_ENV_PASSTHROUGH= VCPKG_ENV_PASSTHROUGH_UNTRACKED= VCPKG_LOAD_VCVARS_ENV= VCPKG_DISABLE_COMPILER_TRACKING= e1e74b5c-18cb-4474-a6bd-5c1c8bc81f3f 8c504940-be29-4cba-9f8f-6cd83e9d87b7 d8187afd-ea4a-4fc3-9aa4-a6782e1ed9af c35112b6-d1ba-415b-aa5d-81de856ef8eb VCPKG_TARGET_ARCHITECTURE=x64 VCPKG_CMAKE_SYSTEM_NAME= VCPKG_CMAKE_SYSTEM_VERSION= VCPKG_PLATFORM_TOOLSET= VCPKG_PLATFORM_TOOLSET_VERSION= VCPKG_VISUAL_STUDIO_PATH= VCPKG_CHAINLOAD_TOOLCHAIN_FILE= VCPKG_BUILD_TYPE= VCPKG_LIBRARY_LINKAGE=dynamic VCPKG_CRT_LINKAGE=dynamic e1e74b5c-18cb-4474-a6bd-5c1c8bc81f3f c35112b6-d1ba-415b-aa5d-81de856ef8eb VCPKG_PUBLIC_ABI_OVERRIDE= VCPKG_ENV_PASSTHROUGH= VCPKG_ENV_PASSTHROUGH_UNTRACKED= VCPKG_LOAD_VCVARS_ENV= VCPKG_DISABLE_COMPILER_TRACKING= e1e74b5c-18cb-4474-a6bd-5c1c8bc81f3f 8c504940-be29-4cba-9f8f-6cd83e9d87b7 d8187afd-ea4a-4fc3-9aa4-a6782e1ed9af c35112b6-d1ba-415b-aa5d-81de856ef8eb VCPKG_TARGET_ARCHITECTURE=x64 VCPKG_CMAKE_SYSTEM_NAME= VCPKG_CMAKE_SYSTEM_VERSION= VCPKG_PLATFORM_TOOLSET= VCPKG_PLATFORM_TOOLSET_VERSION= VCPKG_VISUAL_STUDIO_PATH= VCPKG_CHAINLOAD_TOOLCHAIN_FILE= VCPKG_BUILD_TYPE= VCPKG_LIBRARY_LINKAGE=dynamic VCPKG_CRT_LINKAGE=dynamic e1e74b5c-18cb-4474-a6bd-5c1c8bc81f3f c35112b6-d1ba-415b-aa5d-81de856ef8eb VCPKG_PUBLIC_ABI_OVERRIDE= VCPKG_ENV_PASSTHROUGH= VCPKG_ENV_PASSTHROUGH_UNTRACKED= VCPKG_LOAD_VCVARS_ENV= VCPKG_DISABLE_COMPILER_TRACKING= e1e74b5c-18cb-4474-a6bd-5c1c8bc81f3f 8c504940-be29-4cba-9f8f-6cd83e9d87b7

Directory: E:\telegram\td

Mode LastWriteTime Length Name


d----- 12/11/2022 6:24 PM build CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modules directory not found in

CMake Error: Error executing cmake::LoadCache(). Aborting.

Error: could not load cache dir : Cannot find path 'E:\telegram\td\tdlib' because it does not exist. At line:16 char:1

PS E:\telegram>

when i look at it it says CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modules directory not found in

CMake Error: Error executing cmake::LoadCache(). Aborting.

Error: could not load cache dir : Cannot find path 'E:\telegram\td\tdlib' because it does not exist. At line:16 char:1

levlam commented 1 year ago

CMake has most likely not been installed correctly.

You need to reinstall cmake.