Coder Social home page Coder Social logo

[poco] build failure about vcpkg HOT 5 CLOSED

Nosenzor avatar Nosenzor commented on July 23, 2024
[poco] build failure

from vcpkg.

Comments (5)

jimwang118 avatar jimwang118 commented on July 23, 2024

I can't reproduce this problem locally, you can try using the following statement
find_package(Poco CONFIG REQUIRED COMPONENTS XML JSON Zip)

from vcpkg.

Nosenzor avatar Nosenzor commented on July 23, 2024

I can't reproduce this problem locally, you can try using the following statement find_package(Poco CONFIG REQUIRED COMPONENTS XML JSON Zip)

I then have this error instead. I don't understand why it complain about Poco Util. Is that a component ? Maybe this "hidden" has failed to setup ?

CMake Error at /Users/romainnosenzo/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package):
Found package configuration file:

/Users/romainnosenzo/CLionProjects/PhotoTools/cmake-build-debug/vcpkg_installed/arm64-osx/share/poco/PocoUtilConfig.cmake

but it set PocoUtil_FOUND to FALSE so package "PocoUtil" is considered to
be NOT FOUND. Reason given by package:

The following imported targets are referenced, but are missing: Poco::XML
Poco::JSON

Call Stack (most recent call first):
/Applications/CLion.app/Contents/bin/cmake/mac/aarch64/share/cmake-3.28/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
cmake-build-debug/vcpkg_installed/arm64-osx/share/poco/PocoZipConfig.cmake:3 (find_dependency)
/Users/romainnosenzo/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package)
cmake-build-debug/vcpkg_installed/arm64-osx/share/poco/PocoConfig.cmake:35 (find_package)
/Users/romainnosenzo/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package)

from vcpkg.

Nosenzor avatar Nosenzor commented on July 23, 2024

Now it works : I've destroyed the vcpkg cache and had to do as you told me (added XML and JSON)
find_package(Poco CONFIG REQUIRED COMPONENTS XML JSON Zip)
Now the bug can be turned into why should i add XML and JSON while I only use Zip ? Not a big issue in my case but that's a bit odd.
Feel free to close the issue if you think that behavior is standard.

from vcpkg.

jimwang118 avatar jimwang118 commented on July 23, 2024

Now it works : I've destroyed the vcpkg cache and had to do as you told me (added XML and JSON) find_package(Poco CONFIG REQUIRED COMPONENTS XML JSON Zip) Now the bug can be turned into why should i add XML and JSON while I only use Zip ? Not a big issue in my case but that's a bit odd. Feel free to close the issue if you think that behavior is standard.

Normally, zip calls uitl, and uitl calls json and xml. So when zip is called, uitl, json, and xml are automatically called. However, the search for uitl's dependent json and xml on your device fails.
I cannot reproduce this problem locally, so I cannot locate it. You can also try to create a new folder on the device and clone vcpkg. Try to use the newly cloned code to see if there is the same error. If the problem does not exist in the newly cloned code, it may be caused by the cache.

from vcpkg.

dg0yt avatar dg0yt commented on July 23, 2024

@Nosenzor You can get more tracing information from CMake with --trace-expand or -DCMAKE_FIND_DEBUG_MODE=ON.

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.