Giter Site home page Giter Site logo

error in cmake about operon HOT 4 CLOSED

heal-research avatar heal-research commented on July 17, 2024
error in cmake

from operon.

Comments (4)

foolnotion avatar foolnotion commented on July 17, 2024

Hi,

It seems that vcpkg failes to parse or understand the vcpkg.json manifest file.
Could you please post the full vcpkg-manifest-install.log?

Alternatively, could you make sure that you use the latest version of vcpkg and that you run it from the operon root folder?

cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=/Users/apdoshi/vcpkg/scripts/buildsystems/vcpkg.cmake`

We are using the official vcpkg guide for packaging: https://vcpkg.io/en/docs/examples/packaging-github-repos.html

Thanks

from operon.

anishpdoshi avatar anishpdoshi commented on July 17, 2024

Thanks. The full manifest install log is just this:

Error: while loading aria-csv:
The port directory (/Users/apdoshi/vcpkg/ports/aria-csv) does not exist
Error: failed to load port from /Users/apdoshi/vcpkg/ports/aria-csv
note: updating vcpkg by rerunning bootstrap-vcpkg may resolve this failure.

I am on the latest vcpkg and reran boostratp-vckpgs.sh, but ports/aria-csv still does not exist unfortunately

from operon.

foolnotion avatar foolnotion commented on July 17, 2024

That's because aria-csv is not in the official ports, we provide it locally under the operon/ports folder.
Normally vcpkg should read the vcpkg.json manifest file and figure this out.
However, it does seem like vcpkg is more fragile than it looks.

Some things to try:

  • setting up the VCPKG_OVERLAY_PORTS env variable as per instructions here
  • passing --preset build-windows-vcpkg (or whichever fits your system) to CMake (use cmake --list-presets or have a look at the CMakePresets.json file
  • passing -DVCPKG_OVERLAY_PORTS=./ports to CMake

from operon.

anishpdoshi avatar anishpdoshi commented on July 17, 2024

I see. Passing in the -DVCPKG_OVERLAY_PORTS option worked, and it built. Thanks!

from operon.

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.