Git Product home page Git Product logo

Comments (6)

Telokis avatar Telokis commented on May 18, 2024

Same issue with libwebsockets. This is strange but it won't download the dependencies.

from vcpkg.

ras0219-msft avatar ras0219-msft commented on May 18, 2024

This is an issue with the (currently undocumented) build command. vcpkg install handles dependency resolution before delegating to the build command.

from vcpkg.

alexkaratarakis avatar alexkaratarakis commented on May 18, 2024

Dependencies must be installed to get picked up during dependency resolution, and build does not install packages automatically, whereas install does

Currently the behavior is:
vcpkg install libpng will result in: zlib==installed and libpng==installed.
vcpkg build libpng will fail if zlib!=installed
vcpkg build libpng will result in zlib==installed (if it already was) and libpng==built-but-not-installed

This can also be achieved unconditionally via:
vcpkg install libpng
vcpkg remove libpng

Do you think it would be intuitive to have vcpkg build package-x install all dependencies of package-x and then build package-x without installing it?

from vcpkg.

Telokis avatar Telokis commented on May 18, 2024

No, I definitely agree that this behavior seems to be the proper one.
But without any kind of error message, I was kinda surprised, my bad.

from vcpkg.

alexkaratarakis avatar alexkaratarakis commented on May 18, 2024

However, you are right that the error message used to be unhelpful. Fixed after: 5b89712
Modified the command so that it doesn't start building if the dependencies are not already installed, as opposed to the previous behavior where it would fail during the build. It will now display something like this:

C:\path\to\vcpkg>vcpkg build opencv
The build command requires all dependencies to be already installed.
The following dependencies are missing:

    zlib
    libpng
    libjpeg-turbo

Thanks for reporting!

from vcpkg.

alexkaratarakis avatar alexkaratarakis commented on May 18, 2024

0b59e6c changes the output to show the triplet along with the missing package name, i.e:

C:\path\to\vcpkg> vcpkg build opencv
The build command requires all dependencies to be already installed.
The following dependencies are missing:

    libjpeg-turbo:x86-windows

from vcpkg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.