Wie löst man widersprüchliche Versionen derselben Bibliothek, die für zwei Abhängigkeiten in Conan 2.0 erforderlich sindC++

Programme in C++. Entwicklerforum
Anonymous
 Wie löst man widersprüchliche Versionen derselben Bibliothek, die für zwei Abhängigkeiten in Conan 2.0 erforderlich sind

Post by Anonymous »

Ich verwende Conan 2.0 als Paketmanager für ein C++-Projekt und stehe vor einem Abhängigkeitsversionskonflikt. Zwei vorkompilierte Bibliotheken, die ich brauche (

Code: Select all

cpr/1.14.1
und prometheus-cpp/1.3.0) erfordern unterschiedliche Versionen derselben Abhängigkeit (

Code: Select all

libcurl
):
  • Code: Select all

    cpr/1.14.1
    → erfordert libcurl/8.12.Z
  • Code: Select all

    prometheus-cpp/1.3.0
    → erfordert libcurl/8.10.Z
Beide Bibliotheken sind vorkompilierte Binärdateien, die ich nicht neu kompilieren kann. Beim Ausführen von conan install erhalte ich einen Versionskonfliktfehler.

Code: Select all

cpr/1.14.1: WARN: Can't find a 'cpr/1.14.1' package binary '27c09155a6564a22ad006dc0fc40350f35c34006' for the configuration:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=17
compiler.libcxx=libstdc++11
compiler.version=11
os=Linux
[options]
fPIC=True
shared=False
signal=True
verbose_logging=False
with_ssl=openssl
[requires]
libcurl/8.12.Z
openssl/3.5.Z
zlib/1.3.Z

ERROR: Missing prebuilt package for 'cpr/1.14.1'. You can try:
- List all available packages using 'conan list "cpr/1.14.1:*" -r=remote'
- Explain missing binaries: replace 'conan install ...' with 'conan graph explain ...'
- Try to build locally from sources using the '--build=cpr/1.14.1' argument
Installationsbefehl:

Code: Select all

conan install conan
-pr conan/profile
--output-folder=output
-r=custom
--build=never
Kann ich diese Bibliotheken installieren, ohne sie neu zu erstellen?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post