Конан не может построить повышениеC++

Программы на C++. Форум разработчиков
Ответить
Anonymous
 Конан не может построить повышение

Сообщение Anonymous »

Я новичок в Конане, я пытаюсь интегрировать его в свой проект через conanfile.py < /p>
my conanfile.py - это < /p>

Код: Выделить всё

from conan import ConanFile
from conan.tools.cmake import cmake_layout

class ProjectName(ConanFile):
name = "Project"
version = "1.0.0"
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeDeps", "CMakeToolchain"

def requirements(self):
self.requires("boost/1.83.0")
self.requires("drogon/1.9.10")
self.requires("indicators/2.3")
self.requires("libpqxx/7.10.0")
self.requires("minizip/1.3.1")
self.requires("nlohmann_json/3.11.3")
self.requires("yaml-cpp/0.8.0")

def layout(self):
cmake_layout(self)

< /code>
, пытаясь выполнить установку Conan, я получаю следующую ошибку: < /p>
boost/1.83.0: Already installed! (10 of 16)
boost/1.83.0: Disabled magic autolinking (smart and magic decisions)
boost/1.83.0: WARN: Boost component 'atomic' is missing libraries. Try building boost with '-o boost:without_atomic'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'chrono' is missing libraries. Try building boost with '-o boost:without_chrono'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'container' is missing libraries. Try building boost with '-o boost:without_container'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'context' is missing libraries. Try building boost with '-o boost:without_context'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'contract' is missing libraries. Try building boost with '-o boost:without_contract'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'coroutine' is missing libraries. Try building boost with '-o boost:without_coroutine'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'date_time' is missing libraries. Try building boost with '-o boost:without_date_time'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'exception' is missing libraries. Try building boost with '-o boost:without_exception'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'fiber' is missing libraries. Try building boost with '-o boost:without_fiber'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'fiber_numa' is missing libraries. Try building boost with '-o boost:without_fiber_numa'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'filesystem' is missing libraries. Try building boost with '-o boost:without_filesystem'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'graph' is missing libraries. Try building boost with '-o boost:without_graph'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'iostreams' is missing libraries. Try building boost with '-o boost:without_iostreams'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'json' is missing libraries. Try building boost with '-o boost:without_json'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'locale' is missing libraries. Try building boost with '-o boost:without_locale'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'log' is missing libraries. Try building boost with '-o boost:without_log'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'log_setup' is missing libraries. Try building boost with '-o boost:without_log_setup'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'math_c99' is missing libraries. Try building boost with '-o boost:without_math_c99'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'math_c99f' is missing libraries. Try building boost with '-o boost:without_math_c99f'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'math_c99l' is missing libraries. Try building boost with '-o boost:without_math_c99l'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'math_tr1' is missing libraries. Try building boost with '-o boost:without_math_tr1'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'math_tr1f' is missing libraries. Try building boost with '-o boost:without_math_tr1f'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'math_tr1l' is missing libraries. Try building boost with '-o boost:without_math_tr1l'.  (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'nowide' is missing libraries. Try building boost with '-o boost:without_nowide'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'prg_exec_monitor' is missing libraries. Try building boost with '-o boost:without_prg_exec_monitor'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'program_options' is missing libraries. Try building boost with '-o boost:without_program_options'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'random' is missing libraries. Try building boost with '-o boost:without_random'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'regex' is missing libraries. Try building boost with '-o boost:without_regex'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'serialization' is missing libraries. Try building boost with '-o boost:without_serialization'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'stacktrace_noop' is missing libraries. Try building boost with '-o boost:without_stacktrace_noop'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'stacktrace_windbg' is missing libraries. Try building boost with '-o boost:without_stacktrace_windbg'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'stacktrace_windbg_cached' is missing libraries. Try building boost with '-o boost:without_stacktrace_windbg_cached'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'system' is missing libraries. Try building boost with '-o boost:without_system'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'test_exec_monitor' is missing libraries. Try building boost with '-o boost:without_test_exec_monitor'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'thread' is missing libraries. Try building boost with '-o boost:without_thread'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'timer' is missing libraries. Try building boost with '-o boost:without_timer'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'type_erasure' is missing libraries. Try building boost with '-o boost:without_type_erasure'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'unit_test_framework' is missing libraries. Try building boost with '-o boost:without_unit_test_framework'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'url' is missing libraries. Try building boost with '-o boost:without_url'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'wave' is missing libraries. Try building boost with '-o boost:without_wave'. (Option is not guaranteed to exist)
boost/1.83.0: WARN: Boost component 'wserialization' is missing libraries. Try building boost with '-o boost:without_wserialization'.  (Option is not guaranteed to exist)
ERROR: boost/1.83.0: Error in package_info() method, line 2007
raise ConanException(f"These libraries were built, but were not used in any boost module: {non_used}")
ConanException: These libraries were built, but were not used in any boost module: {'libboost_random-vc143-mt-gd-x64-1_83', 'libboost_stacktrace_windbg_cached-vc143-mt-gd-x64-1_83', 'libboost_math_tr1l-vc143-mt-gd-x64-1_83', 'libboost_contract-vc143-mt-gd-x64-1_83', 'libboost_test_exec_monitor-vc143-mt-gd-x64-1_83', 'libboost_json-vc143-mt-gd-x64-1_83', 'libboost_graph-vc143-mt-gd-x64-1_83', 'libboost_regex-vc143-mt-gd-x64-1_83', 'libboost_url-vc143-mt-gd-x64-1_83', 'libboost_atomic-vc143-mt-gd-x64-1_83', 'libboost_unit_test_framework-vc143-mt-gd-x64-1_83', 'libboost_math_tr1-vc143-mt-gd-x64-1_83', 'libboost_locale-vc143-mt-gd-x64-1_83', 'libboost_serialization-vc143-mt-gd-x64-1_83', 'libboost_coroutine-vc143-mt-gd-x64-1_83', 'libboost_math_c99f-vc143-mt-gd-x64-1_83', 'libboost_exception-vc143-mt-gd-x64-1_83', 'libboost_log_setup-vc143-mt-gd-x64-1_83', 'libboost_math_tr1f-vc143-mt-gd-x64-1_83', 'libboost_log-vc143-mt-gd-x64-1_83', 'libboost_stacktrace_noop-vc143-mt-gd-x64-1_83', 'libboost_wave-vc143-mt-gd-x64-1_83', 'libboost_date_time-vc143-mt-gd-x64-1_83', 'libboost_stacktrace_windbg-vc143-mt-gd-x64-1_83', 'libboost_wserialization-vc143-mt-gd-x64-1_83', 'libboost_nowide-vc143-mt-gd-x64-1_83', 'libboost_iostreams-vc143-mt-gd-x64-1_83', 'libboost_type_erasure-vc143-mt-gd-x64-1_83', 'libboost_context-vc143-mt-gd-x64-1_83', 'libboost_program_options-vc143-mt-gd-x64-1_83', 'libboost_chrono-vc143-mt-gd-x64-1_83', 'libboost_fiber_numa-vc143-mt-gd-x64-1_83', 'libboost_system-vc143-mt-gd-x64-1_83', 'libboost_prg_exec_monitor-vc143-mt-gd-x64-1_83', 'libboost_container-vc143-mt-gd-x64-1_83', 'libboost_math_c99l-vc143-mt-gd-x64-1_83', 'libboost_fiber-vc143-mt-gd-x64-1_83', 'libboost_math_c99-vc143-mt-gd-x64-1_83', 'libboost_timer-vc143-mt-gd-x64-1_83', 'libboost_thread-vc143-mt-gd-x64-1_83', 'libboost_filesystem-vc143-mt-gd-x64-1_83'}
Единственный вариант, который мне нужен из Boost, это Boost :: Program_options (на данный момент), а также необходимо из пакета Drogon, я попытался отключить остальные параметры или добавить «B2/5.2.0», как упомянуто в другом посте, но я получил одинаковую ошибку ...

Подробнее здесь: https://stackoverflow.com/questions/795 ... uild-boost
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C++»