Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Error when running "vcpkg install tgbot-cpp" on windows #16584

Closed
PetroRudyi opened this issue Mar 7, 2021 · 4 comments
Closed

Error when running "vcpkg install tgbot-cpp" on windows #16584

PetroRudyi opened this issue Mar 7, 2021 · 4 comments
Assignees
Labels
category:question This issue is a question

Comments

@PetroRudyi
Copy link

Windows 10 19042
Vcpkg package management program version 2021-01-13-d67989bce1043b98092ac45996a8230a059a2d7e

C:\Users\P\Documents\С++\library\vcpkg>vcpkg`` install tgbot-cpp
Computing installation plan...
The following packages will be built and installed:
  * boost-algorithm[core]:x86-windows -> 1.75.0
  * boost-align[core]:x86-windows -> 1.75.0
  * boost-any[core]:x86-windows -> 1.75.0
  * boost-array[core]:x86-windows -> 1.75.0
  * boost-asio[core]:x86-windows -> 1.75.0#1
  * boost-assert[core]:x86-windows -> 1.75.0
  * boost-atomic[core]:x86-windows -> 1.75.0
  * boost-bind[core]:x86-windows -> 1.75.0
  * boost-build[core]:x86-windows -> 1.75.0.beta1#1
  * boost-chrono[core]:x86-windows -> 1.75.0
  * boost-compatibility[core]:x86-windows -> 1.75.0
  * boost-concept-check[core]:x86-windows -> 1.75.0#1
  * boost-config[core]:x86-windows -> 1.75.0
  * boost-container[core]:x86-windows -> 1.75.0
  * boost-container-hash[core]:x86-windows -> 1.75.0
  * boost-context[core]:x86-windows -> 1.75.0#1
  * boost-conversion[core]:x86-windows -> 1.75.0
  * boost-core[core]:x86-windows -> 1.75.0
  * boost-coroutine[core]:x86-windows -> 1.75.0
  * boost-date-time[core]:x86-windows -> 1.75.0
  * boost-detail[core]:x86-windows -> 1.75.0
  * boost-endian[core]:x86-windows -> 1.75.0
  * boost-exception[core]:x86-windows -> 1.75.0
  * boost-foreach[core]:x86-windows -> 1.75.0
  * boost-format[core]:x86-windows -> 1.75.0
  * boost-function[core]:x86-windows -> 1.75.0
  * boost-function-types[core]:x86-windows -> 1.75.0
  * boost-functional[core]:x86-windows -> 1.75.0
  * boost-fusion[core]:x86-windows -> 1.75.0
  * boost-integer[core]:x86-windows -> 1.75.0
  * boost-intrusive[core]:x86-windows -> 1.75.0
  * boost-io[core]:x86-windows -> 1.75.0
  * boost-iterator[core]:x86-windows -> 1.75.0
  * boost-lambda[core]:x86-windows -> 1.75.0
  * boost-lexical-cast[core]:x86-windows -> 1.75.0
  * boost-math[core]:x86-windows -> 1.75.0
  * boost-modular-build-helper[core]:x86-windows -> 1.75.0#6
  * boost-move[core]:x86-windows -> 1.75.0
  * boost-mp11[core]:x86-windows -> 1.75.0
  * boost-mpl[core]:x86-windows -> 1.75.0
  * boost-multi-index[core]:x86-windows -> 1.75.0
  * boost-numeric-conversion[core]:x86-windows -> 1.75.0
  * boost-optional[core]:x86-windows -> 1.75.0
  * boost-phoenix[core]:x86-windows -> 1.75.0
  * boost-pool[core]:x86-windows -> 1.75.0
  * boost-predef[core]:x86-windows -> 1.75.0
  * boost-preprocessor[core]:x86-windows -> 1.75.0
  * boost-property-tree[core]:x86-windows -> 1.75.0
  * boost-proto[core]:x86-windows -> 1.75.0
  * boost-range[core]:x86-windows -> 1.75.0
  * boost-ratio[core]:x86-windows -> 1.75.0
  * boost-rational[core]:x86-windows -> 1.75.0
  * boost-regex[core]:x86-windows -> 1.75.0
  * boost-serialization[core]:x86-windows -> 1.75.0
  * boost-smart-ptr[core]:x86-windows -> 1.75.0
  * boost-spirit[core]:x86-windows -> 1.75.0
  * boost-static-assert[core]:x86-windows -> 1.75.0
  * boost-system[core]:x86-windows -> 1.75.0
  * boost-test[core]:x86-windows -> 1.75.0
  * boost-thread[core]:x86-windows -> 1.75.0
  * boost-throw-exception[core]:x86-windows -> 1.75.0
  * boost-tokenizer[core]:x86-windows -> 1.75.0
  * boost-tuple[core]:x86-windows -> 1.75.0
  * boost-type-index[core]:x86-windows -> 1.75.0
  * boost-type-traits[core]:x86-windows -> 1.75.0
  * boost-typeof[core]:x86-windows -> 1.75.0
  * boost-uninstall[core]:x86-windows -> 1.75.0
  * boost-unordered[core]:x86-windows -> 1.75.0
  * boost-utility[core]:x86-windows -> 1.75.0
  * boost-variant[core]:x86-windows -> 1.75.0
  * boost-vcpkg-helpers[core]:x86-windows -> 7#2
  * boost-winapi[core]:x86-windows -> 1.75.0
  * curl[core,non-http,schannel,ssl,sspi,winssl]:x86-windows -> 7.74.0#3
  * openssl[core]:x86-windows -> 1.1.1i
    tgbot-cpp[core]:x86-windows -> 1.2.1
  * zlib[core]:x86-windows -> 1.2.11#9
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x86-windows...
A suitable version of powershell-core was not found (required v7.1.0). Downloading portable powershell-core v7.1.0...
Downloading powershell-core...
  https://github.com/PowerShell/PowerShell/releases/download/v7.1.0/PowerShell-7.1.0-win-x86.zip -> C:\Users\P\Documents\С++\library\vcpkg\downloads\PowerShell-7.1.0-win-x86.zip
Extracting powershell-core...
A suitable version of 7zip was not found (required v18.1.0). Downloading portable 7zip v18.1.0...
Downloading 7zip...
  https://www.nuget.org/api/v2/package/7-Zip.CommandLine/18.1.0 -> C:\Users\P\Documents\С++\library\vcpkg\downloads\7-zip.commandline.18.1.0.nupkg
Extracting 7zip...
Error: while detecting compiler information:
The log content at C:\Users\P\Documents\С++\library\vcpkg\buildtrees\detect_compiler\stdout-x86-windows.log is:
-- Found external ninja('1.10.2').
-- Configuring x86-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:105 (message):
    Command failed: ninja -v
    Working Directory: C:/Users/P/Documents/С++/library/vcpkg/buildtrees/detect_compiler/x86-windows-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      C:\Users\P\Documents\С++\library\vcpkg\buildtrees\detect_compiler\config-x86-windows-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_cmake.cmake:324 (vcpkg_execute_required_process)
  scripts/detect_compiler/portfile.cmake:18 (vcpkg_configure_cmake)
  scripts/ports.cmake:139 (include)



Error: vcpkg was unable to detect the active compiler's information. See above for the CMake failure output.

stdout-x86-windows.log
config-x86-windows-out.log

@JackBoosY JackBoosY added the category:question This issue is a question label Mar 8, 2021
@JackBoosY
Copy link
Contributor

Please make sure you have installed the required Visual Studio components.

Thanks.

@PetroRudyi
Copy link
Author

Please make sure you have installed the required Visual Studio components.

Thanks.

I have installed Visual Studio

@JackBoosY
Copy link
Contributor

Oh sorry, it seems that your path contains non-ASCII characters, please clone vcpkg and try again in a path that does not contain non-ASCII characters or spaces.

Thanks.

@PetroRudyi
Copy link
Author

Oh sorry, it seems that your path contains non-ASCII characters, please clone vcpkg and try again in a path that does not contain non-ASCII characters or spaces.

Thanks.

Thanks, now it is working. I created C:\devcpp and clone here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants