microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.18k stars 6.16k forks source link

[whatsapp-api-client-cpp] Build error on x64-windows #39637

Open EscHelpNew opened 3 days ago

EscHelpNew commented 3 days ago

Hello, please help, I can’t assemble my package

Package: whatsapp-api-client-cpp:x64-windows@0.0.1

Host Environment

To Reproduce

vcpkg install whatsapp-api-client-cpp

Failure logs

-- Note: whatsapp-api-client-cpp only supports static library linkage. Building static library.
-- Using cached green-api-whatsapp-api-client-cpp-0.0.1.tar.gz.
-- Extracting source F:/projects/GREEN-API/C++/whatsapp-api-client-cpp/vcpkg/downloads/green-api-whatsapp-api-client-cpp-0.0.1.tar.gz
-- Using source at F:/projects/GREEN-API/C++/whatsapp-api-client-cpp/vcpkg/buildtrees/whatsapp-api-client-cpp/src/0.0.1-692377cfed.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v -j17
    Working Directory: F:/projects/GREEN-API/C++/whatsapp-api-client-cpp/vcpkg/buildtrees/whatsapp-api-client-cpp/x64-windows-dbg
    See logs for more information:
      F:\projects\GREEN-API\C++\whatsapp-api-client-cpp\vcpkg\buildtrees\whatsapp-api-client-cpp\install-x64-windows-dbg-out.log
      F:\projects\GREEN-API\C++\whatsapp-api-client-cpp\vcpkg\buildtrees\whatsapp-api-client-cpp\install-x64-windows-dbg-err.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  F:/projects/GREEN-API/C++/whatsapp-api-client-cpp/custom-overlay/whatsapp-api-client-cpp/portfile.cmake:16 (vcpkg_cmake_install)
  scripts/ports.cmake:192 (include)
F:\projects\GREEN-API\C++\whatsapp-api-client-cpp\vcpkg\buildtrees\whatsapp-api-client-cpp\install-x64-windows-dbg-err.log ``` ninja: error: unknown target 'install' ```
F:\projects\GREEN-API\C++\whatsapp-api-client-cpp\vcpkg\buildtrees\whatsapp-api-client-cpp\install-x64-windows-dbg-out.log ``` Change Dir: 'F:/projects/GREEN-API/C++/whatsapp-api-client-cpp/vcpkg/buildtrees/whatsapp-api-client-cpp/x64-windows-dbg' Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v -v -j17 install ```
jimwang118 commented 2 days ago

The whatsapp-api-client-cpp port does not exist in vcpkg. Did you add this port yourself?

EscHelpNew commented 2 days ago

@jimwang118 Hello, yes, there is no port in vcpkg at the moment, I’m just trying to add it there, following the instructions https://learn.microsoft.com/ru-ru/vcpkg/get_started/get-started-packaging?pivots=shell -cmd

I created vcpkg.json and portfile, but at step 5 after entering the command with my parameters vcpkg install vcpkg-sample-library --overlay-ports=C:\path\to\custom-overlay I get an error

EscHelpNew commented 2 days ago

I think I understand, I need to make a pull request to the main repository with my vcpkg and portfile files. And the instructions I follow are just for local checking.