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

Error: in triplet x64-windows #2403

Closed p-vorobyev closed 1 year ago

p-vorobyev commented 1 year ago

Hello! Please, help me to build TDLib for Windows. I have an error on step:

$ ./vcpkg install gperf:x64-windows openssl:x64-windows zlib:x64-windows
Computing installation plan...
The following packages will be built and installed:
    gperf[core]:x64-windows -> 3.1#3
    openssl[core]:x64-windows -> 1.1.1m#2
  * vcpkg-cmake[core]:x64-windows -> 2022-01-19
  * vcpkg-cmake-config[core]:x64-windows -> 2022-02-06
    zlib[core]:x64-windows -> 1.2.11#13
Additional packages (*) will be modified to complete this operation.
Error: in triplet x64-windows: Unable to find a valid Visual Studio instance
Could not locate a complete Visual Studio instance
The following paths were examined for Visual Studio instances:
    D:\VisualStudio_Windows\VisualStudio\VC\Auxiliary/Build\vcvarsall.bat

I've installed VS community edition with EN lang and tools for C++. vcvarsall.bat exists, but in stdout above slash used instead of backslash also for some reason VC\Auxiliary/Build\vcvarsall.bat.

vorobyev@DESKTOP-N2EGPTV MINGW64 /d/VisualStudio_Windows/VisualStudio/VC/Auxiliary/Build
$ ls -lah
total 1,3M
drwxr-xr-x 1 vorobyev 197121   0 апр 15 21:43 ./
drwxr-xr-x 1 vorobyev 197121   0 апр 15 21:40 ../
-rw-r--r-- 1 vorobyev 197121  13 апр 15 21:43 Microsoft.VCRedistVersion.default.txt
-rw-r--r-- 1 vorobyev 197121 401 апр 15 21:43 Microsoft.VCToolsVersion.default.props
-rw-r--r-- 1 vorobyev 197121  13 апр 15 21:43 Microsoft.VCToolsVersion.default.txt
-rw-r--r-- 1 vorobyev 197121 401 апр 15 21:43 Microsoft.VCToolsVersion.v143.default.props
-rw-r--r-- 1 vorobyev 197121  13 апр 15 21:43 Microsoft.VCToolsVersion.v143.default.txt
-rw-r--r-- 1 vorobyev 197121  39 апр 15 21:43 vcvars32.bat
-rw-r--r-- 1 vorobyev 197121  39 апр 15 21:44 vcvars64.bat
-rw-r--r-- 1 vorobyev 197121 11K апр 15 21:43 vcvarsall.bat
-rw-r--r-- 1 vorobyev 197121  43 апр 15 21:44 vcvarsamd64_x86.bat
-rw-r--r-- 1 vorobyev 197121  43 апр 15 21:43 vcvarsx86_amd64.bat

Did you face such a problem?

levlam commented 1 year ago

Slash and backslash are interchangeable on Windows, so this is not an issue.

But there is definitely an issue with MSVC installation, for example, shell wasn't reopened after relevant environment variables were changed. Anyway, you have issue with vcpkg and it is better to search for solution in https://github.com/microsoft/vcpkg/issues. For example, see issues 25986 and 22074 there.

p-vorobyev commented 1 year ago

Thanks! Installation VS on the system disk helped.

jonnjonnjo commented 3 months ago

sorry for asking again, so your solution is basically installing the VS on local disk C????