Closed Nerlant closed 1 year ago
Ceres::ceres
is the CMake target, conan component names are different.
Ceres::ceres
is the CMake target, conan component names are different.
I know that, and building my library inside Visual Studio, after installing the dependencies using conan install
works just fine. But when I want to create the conan package of my library using conan create
I run into the issue I have described above. Maybe I am missing something obvious, if that is the case, please tell me what it is.
Sure it's obvious: self.cpp_info.components["point_reconstruction"].requires = ["Ceres::ceres"]
is incorrect because requires
for conan must be populated with conan components (or conan recipe), not CMake target name.
It should be self.cpp_info.components["point_reconstruction"].requires = ["ceres-solver::ceres-solver"]
Sure it's obvious:
self.cpp_info.components["point_reconstruction"].requires = ["Ceres::ceres"]
is incorrect becauserequires
for conan must be populated with conan components (or conan recipe), not CMake target name.It should be
self.cpp_info.components["point_reconstruction"].requires = ["ceres-solver::ceres-solver"]
That was indeed the issue. Thank you for your assistance!
Description
First of all I am not sure whether it is a bug in the ceres-solver recipe, inside conan, or if I am just missing something.
I am trying to use the ceres-solver in a conan-package. I include the ceres-solver like this in my
conanfile.py
:and add it as a component requirement like this:
Using
conan install
and building my library in my local build directory is working fine. I only encounter the following error when usingconan create
on my library:Now I have tried to debug conan a bit and placed a print statement inside
check_component_requires
inmodel/build_info.py
. I have placed the print statements right in front of thefor e in external:
loop, which seems to trigger the exception. Here is the output of that print statement:This does explain why the exception is triggered but I have no idea how I would
Ceres
indirect_dependencies
orceres-solver
inexternal
.Package and Environment Details
Conan profile
[settings] arch=x86_64 build_type=Debug compiler=msvc compiler.cppstd=17 compiler.runtime=dynamic compiler.version=193 os=Windows
Steps to reproduce
conan create . -pr:h=msvc-debug -pr:b=msvc-debug -vvv --build missing
Logs
Click to expand log
This is the log with ceres being built: ``` ======== Exporting recipe to the cache ======== toolkit/0.1: Exporting package recipe: D:\Documents\toolkit\backend\conanfile.py toolkit/0.1: Copied 2 '.py' files: conanfile.py, conanfile.py toolkit/0.1: Copied 9 '.txt' files toolkit/0.1: Copied 2 '.json' files: CMakeSettings.json, CMakeUserPresets.json toolkit/0.1: Copied 1 '.in' file: config.cmake.in toolkit/0.1: Copied 1 file: LICENSE toolkit/0.1: Copied 1 '.cmake' file: toolkit-config.cmake toolkit/0.1: Copied 33 '.cpp' files toolkit/0.1: Copied 39 '.hpp' files toolkit/0.1: Copied 1 '.bmp' file: test-bmp.bmp toolkit/0.1: Copied 7 '.jpg' files toolkit/0.1: Copied 5 '.png' files toolkit/0.1: Copied 1 '.h' file: lodepng.h toolkit/0.1: Exported to cache folder: D:\Programs\conan\toolk19355685578b9\e toolkit/0.1: Exported: toolkit/0.1#1fb6e05fc8d9e3f45a83f1dc84293f8e (2023-06-22 16:00:27 UTC) ======== Input profiles ======== Profile host: [settings] arch=x86_64 build_type=Debug compiler=msvc compiler.cppstd=17 compiler.runtime=dynamic compiler.runtime_type=Debug compiler.version=193 os=Windows [conf] tools.cmake.cmaketoolchain:generator=Ninja Profile build: [settings] arch=x86_64 build_type=Debug compiler=msvc compiler.cppstd=17 compiler.runtime=dynamic compiler.runtime_type=Debug compiler.version=193 os=Windows [conf] tools.cmake.cmaketoolchain:generator=Ninja ======== Computing dependency graph ======== ceres-solver/2.1.0: Not found in local cache, looking in remotes... ceres-solver/2.1.0: Checking remote: conancenter ceres-solver/2.1.0: Downloaded recipe revision 4997e7417f80f473410f7f186643533d Graph root cli Requirements ceres-solver/2.1.0#4997e7417f80f473410f7f186643533d - Downloaded (conancenter) eigen/3.4.0#2e192482a8acff96fe34766adca2b24c - Cache libjpeg-turbo/2.1.2#fbc77b35ebe00ef1b4e837729cff9ae0 - Cache nlohmann_json/3.10.5.1#b1214d08cb6231f68d7d98fa0da9f483 - Cache toolkit/0.1#1fb6e05fc8d9e3f45a83f1dc84293f8e - Cache Build requirements nasm/2.15.05#799d63b1672a337584b09635b0f22fc1 - Cache strawberryperl/5.32.1.1#8f83d05a60363a422f9033e52d106b47 - Cache Resolved version ranges ceres-solver/[^2.1]: ceres-solver/2.1.0 ======== Computing necessary packages ======== ceres-solver/2.1.0: Checking 3 compatible configurations: ceres-solver/2.1.0: '49e298c53f76148286c02be7dc11f400661a4c2f': compiler.cppstd=14 ceres-solver/2.1.0: 'e27b63482ce7ffc803e34dac919c9d3129b67acd': compiler.cppstd=20 ceres-solver/2.1.0: '542539414c98dcde31478b8b8a4a9ab2daa8276e': compiler.cppstd=23 toolkit/0.1: Checking 3 compatible configurations: toolkit/0.1: 'dd6b921976f91214e40e6463c9000a6df31d67d3': compiler.cppstd=14 toolkit/0.1: '827e64af623f6467ffc7725f2ce0718d5d923e03': compiler.cppstd=20 toolkit/0.1: '15bdf86184b46b5b353b28455b674470892a0707': compiler.cppstd=23 Requirements ceres-solver/2.1.0#4997e7417f80f473410f7f186643533d:57367824ff636cd12c0bddf75a88b8a6f3a8ad3e - Build eigen/3.4.0#2e192482a8acff96fe34766adca2b24c:da39a3ee5e6b4b0d3255bfef95601890afd80709#b2e7c2d86c5d1dbefc534889aa72e12c - Cache libjpeg-turbo/2.1.2#fbc77b35ebe00ef1b4e837729cff9ae0:a16da075dce47f357025c1c0198b5ca057a6d147#a9219fcf0c5953c64d4cd89fcf0cf1f2 - Cache nlohmann_json/3.10.5.1#b1214d08cb6231f68d7d98fa0da9f483:da39a3ee5e6b4b0d3255bfef95601890afd80709#c55bb58b068205e7291706377b9d2315 - Cache toolkit/0.1#1fb6e05fc8d9e3f45a83f1dc84293f8e:067b3612f2510d1592f77890865c45044e053960 - Build Build requirements nasm/2.15.05#799d63b1672a337584b09635b0f22fc1:e87e09fb175a1b4a35981cd53c3cf142cb86410f#5dc32d04e3c8806011c9202fb47df1a8 - Skip strawberryperl/5.32.1.1#8f83d05a60363a422f9033e52d106b47:522dcea5982a3f8a5b624c16477e47195da2f84f#a365b3810f698e2f0a00fbeece022903 - Skip ======== Installing packages ======== eigen/3.4.0: Already installed! (1 of 5) DEBUG: external: set(), internal: set(), comp.requires: [] nlohmann_json/3.10.5.1: Already installed! (2 of 5) libjpeg-turbo/2.1.2: Already installed! (3 of 5) DEBUG: external: set(), internal: set(), comp.requires: [] ceres-solver/2.1.0: Sources downloaded from 'conancenter' ceres-solver/2.1.0: Calling source() in D:\Programs\conan\ceres8242d8cabe728\s\src -------- Installing package ceres-solver/2.1.0 (4 of 5) -------- ceres-solver/2.1.0: Building from source ceres-solver/2.1.0: Package ceres-solver/2.1.0:57367824ff636cd12c0bddf75a88b8a6f3a8ad3e ceres-solver/2.1.0: Copying sources to build folder ceres-solver/2.1.0: Building your package in D:\Programs\conan\b\ceresef78a68bbb069\b ceres-solver/2.1.0: Calling generate() ceres-solver/2.1.0: Generators folder: D:\Programs\conan\b\ceresef78a68bbb069\b\build\Debug\generators ceres-solver/2.1.0: CMakeToolchain generated: conan_toolchain.cmake ceres-solver/2.1.0: CMakeToolchain generated: CMakePresets.json ceres-solver/2.1.0: CMakeToolchain generated: ..\..\..\src\CMakeUserPresets.json ceres-solver/2.1.0: Generating aggregated env files ceres-solver/2.1.0: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat'] ceres-solver/2.1.0: Calling build() ceres-solver/2.1.0: Apply patch (conan): Robust dependencies handling ceres-solver/2.1.0: Apply patch (portability): Fix MinGW build ceres-solver/2.1.0: Running CMake.configure() ceres-solver/2.1.0: RUN: cmake -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="D:/Programs/conan/b/ceresef78a68bbb069/b/build/Debug/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="D:/Programs/conan/b/ceresef78a68bbb069/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Debug" "D:\Programs\conan\b\ceresef78a68bbb069\b\src" conanvcvars.bat: Activating environment Visual Studio 17 - amd64 - vcvars_ver=14.3 [vcvarsall.bat] Environment initialized for: 'x64' -- Using Conan toolchain: D:/Programs/conan/b/ceresef78a68bbb069/b/build/Debug/generators/conan_toolchain.cmake -- Conan toolchain: C++ Standard 17 with extensions OFF -- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF -- The C compiler identification is MSVC 19.35.32217.1 -- The CXX compiler identification is MSVC 19.35.32217.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test HAVE_BIGOBJ -- Performing Test HAVE_BIGOBJ - Success -- Looking for pow in m -- Looking for pow in m - not found -- Detected Ceres version: 2.1.0 from D:/Programs/conan/b/ceresef78a68bbb069/b/src/include/ceres/version.h -- Detected available Ceres threading models: [CXX_THREADS, OPENMP, NO_THREADS] -- Conan: Component target declared 'Eigen3::Eigen' -- Found Eigen version 3.4.0: D:/Programs/conan/b/ceresef78a68bbb069/b/build/Debug/generators -- Enabling use of Eigen as a sparse linear algebra library. -- Building without CUDA. -- Building without LAPACK. -- Building without SuiteSparse. -- Building without CXSparse. -- Building without Apple's Accelerate sparse support. -- Use of gflags disabled - no tests or tools will be built! -- Compiling minimal glog substitute into Ceres. -- Using minimal glog substitute (include): internal/ceres/miniglog -- Max log level for minimal glog substitute: 2 -- Using Ceres threading model: CXX_THREADS -- Building Ceres as a static library. ================================================================================= -- Build type: Debug. Performance will be terrible! -- Add -DCMAKE_BUILD_TYPE=Release to the CMake command line to get an optimized build. ================================================================================= -- Performing Test HAVE_UNDERSCORE_PREFIXED_BESSEL_FUNCTIONS -- Performing Test HAVE_UNDERSCORE_PREFIXED_BESSEL_FUNCTIONS - Success -- Creating configured Ceres config.h output directory: D:/Programs/conan/b/ceresef78a68bbb069/b/build/Debug/include/ceres/internal -- Enabling CERES_USE_EIGEN_SPARSE in Ceres config.h -- Enabling CERES_NO_LAPACK in Ceres config.h -- Enabling CERES_NO_SUITESPARSE in Ceres config.h -- Enabling CERES_NO_CXSPARSE in Ceres config.h -- Enabling CERES_NO_CUDA in Ceres config.h -- Enabling CERES_NO_ACCELERATE_SPARSE in Ceres config.h -- Enabling CERES_USE_CXX_THREADS in Ceres config.h -- Enabling CERES_MSVC_USE_UNDERSCORE_PREFIXED_BESSEL_FUNCTIONS in Ceres config.h -- Performing Test CHECK_CXX_FLAG_Wno_missing_declarations -- Performing Test CHECK_CXX_FLAG_Wno_missing_declarations - Failed -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed -- Performing Test COMPILER_HAS_DEPRECATED -- Performing Test COMPILER_HAS_DEPRECATED - Success -- Do not build any example. -- Configuring done -- Generating done -- Build files have been written to: D:/Programs/conan/b/ceresef78a68bbb069/b/build/Debug ceres-solver/2.1.0: Running CMake.build() ceres-solver/2.1.0: RUN: cmake --build "D:\Programs\conan\b\ceresef78a68bbb069\b\build\Debug" -- -j12 conanvcvars.bat: Activating environment Visual Studio 17 - amd64 - vcvars_ver=14.3 [vcvarsall.bat] Environment initialized for: 'x64' [154/154] Linking CXX static library lib\ceres-debug.lib ceres-solver/2.1.0: Package '57367824ff636cd12c0bddf75a88b8a6f3a8ad3e' built ceres-solver/2.1.0: Build folder D:\Programs\conan\b\ceresef78a68bbb069\b\build\Debug ceres-solver/2.1.0: Generating the package ceres-solver/2.1.0: Temporary package folder D:\Programs\conan\b\ceresef78a68bbb069\p ceres-solver/2.1.0: Calling package() ceres-solver/2.1.0: Running CMake.install() ceres-solver/2.1.0: RUN: cmake --install "D:\Programs\conan\b\ceresef78a68bbb069\b\build\Debug" --prefix "D:/Programs/conan/b/ceresef78a68bbb069/p" conanvcvars.bat: Activating environment Visual Studio 17 - amd64 - vcvars_ver=14.3 [vcvarsall.bat] Environment initialized for: 'x64' -- Install configuration: "Debug" -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/autodiff_cost_function.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/autodiff_first_order_function.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/autodiff_local_parameterization.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/autodiff_manifold.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/c_api.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/ceres.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/conditioned_cost_function.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/context.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/cost_function.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/cost_function_to_functor.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/covariance.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/crs_matrix.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/cubic_interpolation.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/dynamic_autodiff_cost_function.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/dynamic_cost_function.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/dynamic_cost_function_to_functor.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/dynamic_numeric_diff_cost_function.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/evaluation_callback.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/first_order_function.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/gradient_checker.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/gradient_problem.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/gradient_problem_solver.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/iteration_callback.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/jet.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/jet_fwd.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/line_manifold.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/local_parameterization.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/loss_function.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/manifold.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/manifold_test_utils.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/normal_prior.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/numeric_diff_cost_function.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/numeric_diff_first_order_function.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/numeric_diff_options.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/ordered_groups.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/problem.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/product_manifold.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/rotation.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/sized_cost_function.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/solver.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/sphere_manifold.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/tiny_solver.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/tiny_solver_autodiff_function.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/tiny_solver_cost_function_adapter.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/types.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/version.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/array_selector.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/autodiff.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/disable_warnings.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/eigen.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/fixed_array.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/householder_vector.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/integer_sequence_algorithm.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/jet_traits.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/line_parameterization.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/memory.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/numeric_diff.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/parameter_dims.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/port.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/reenable_warnings.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/sphere_manifold_functions.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/variadic_evaluate.h -- Up-to-date: D:/Programs/conan/b/ceresef78a68bbb069/p/include -- Up-to-date: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres -- Up-to-date: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/config.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/export.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/include/ceres/internal/miniglog/glog/logging.h -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/lib/cmake/Ceres/CeresTargets.cmake -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/lib/cmake/Ceres/CeresTargets-debug.cmake -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/lib/cmake/Ceres/CeresConfig.cmake -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/lib/cmake/Ceres/CeresConfigVersion.cmake -- Installing: D:/Programs/conan/b/ceresef78a68bbb069/p/lib/ceres-debug.lib ceres-solver/2.1.0: package(): Packaged 65 '.h' files ceres-solver/2.1.0: package(): Packaged 1 '.lib' file: ceres-debug.lib ceres-solver/2.1.0: package(): Packaged 1 file: LICENSE ceres-solver/2.1.0: Created package revision 28110a1cbc11c900fd9b87e2c1c0f77f ceres-solver/2.1.0: Package '57367824ff636cd12c0bddf75a88b8a6f3a8ad3e' created ceres-solver/2.1.0: Full package reference: ceres-solver/2.1.0#4997e7417f80f473410f7f186643533d:57367824ff636cd12c0bddf75a88b8a6f3a8ad3e#28110a1cbc11c900fd9b87e2c1c0f77f ceres-solver/2.1.0: Package folder D:\Programs\conan\b\ceresef78a68bbb069\p DEBUG: external: {'eigen'}, internal: set(), comp.requires: ['eigen::eigen'] DEBUG: external: {'eigen'}, direct: ['eigen'] -------- Installing package toolkit/0.1 (5 of 5) -------- toolkit/0.1: Building from source toolkit/0.1: Package toolkit/0.1:067b3612f2510d1592f77890865c45044e053960 toolkit/0.1: Copying sources to build folder toolkit/0.1: Building your package in D:\Programs\conan\b\toolk9f11a58541c99\b toolkit/0.1: Calling generate() toolkit/0.1: Generators folder: D:\Programs\conan\b\toolk9f11a58541c99\b\build\Debug\generators toolkit/0.1: CMakeToolchain generated: conan_toolchain.cmake toolkit/0.1: CMakeToolchain generated: CMakePresets.json toolkit/0.1: CMakeToolchain generated: ..\..\..\CMakeUserPresets.json toolkit/0.1: Generating aggregated env files toolkit/0.1: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat'] toolkit/0.1: Calling build() toolkit/0.1: Running CMake.configure() toolkit/0.1: RUN: cmake -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="D:/Programs/conan/b/toolk9f11a58541c99/b/build/Debug/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="D:/Programs/conan/b/toolk9f11a58541c99/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Debug" "D:\Programs\conan\b\toolk9f11a58541c99\b" conanvcvars.bat: Activating environment Visual Studio 17 - amd64 - vcvars_ver=14.3 [vcvarsall.bat] Environment initialized for: 'x64' -- Using Conan toolchain: D:/Programs/conan/b/toolk9f11a58541c99/b/build/Debug/generators/conan_toolchain.cmake -- Conan toolchain: C++ Standard 17 with extensions OFF -- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF -- The CXX compiler identification is MSVC 19.35.32217.1 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Conan: Target declared 'nlohmann_json::nlohmann_json' -- Conan: Component target declared 'libjpeg-turbo::jpeg-static' -- Conan: Component target declared 'libjpeg-turbo::turbojpeg-static' -- Conan: Target declared 'libjpeg-turbo::libjpeg-turbo' -- Conan: Component target declared 'Ceres::ceres' -- Conan: Component target declared 'Eigen3::Eigen' -- The C compiler identification is MSVC 19.35.32217.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Found Python3: C:/Users/nerlant/AppData/Local/Programs/Python/Python311/python.exe (found version "3.11.0") found components: Interpreter -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - not found -- Found Threads: TRUE -- Configuring done -- Generating done -- Build files have been written to: D:/Programs/conan/b/toolk9f11a58541c99/b/build/Debug toolkit/0.1: Running CMake.build() toolkit/0.1: RUN: cmake --build "D:\Programs\conan\b\toolk9f11a58541c99\b\build\Debug" -- -j12 conanvcvars.bat: Activating environment Visual Studio 17 - amd64 - vcvars_ver=14.3 [vcvarsall.bat] Environment initialized for: 'x64' [4/52] Building CXX object image_manager\CMakeFiles\image_manager.dir\lodepng\lodepng.cpp.obj D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(712): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(730): warning C4267: '=': conversion from 'size_t' to 'unsigned short', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(731): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(754): warning C4267: '=': conversion from 'size_t' to 'unsigned short', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(771): warning C4267: '=': conversion from 'size_t' to 'unsigned short', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(3728): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(4698): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(4920): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(4925): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(4926): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(4927): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(4928): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(4929): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(4930): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(4931): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(5122): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(5146): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(5180): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(5197): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(5219): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(5250): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(5363): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data D:\Programs\conan\b\toolk9f11a58541c99\b\image_manager\lodepng\lodepng.cpp(5441): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) [35/52] Building CXX object _deps\googlemock-build\googlemock\CMakeFiles\gmock.dir\src\gmock-all.cc.obj cl : Command line warning D9025 : overriding '/W4' with '/W3' [36/52] Building CXX object _deps\googlemock-build\googlemock\CMakeFiles\gmock_main.dir\src\gmock_main.cc.obj cl : Command line warning D9025 : overriding '/W4' with '/W3' [39/52] Building CXX object _deps\googlemock-build\googletest\CMakeFiles\gtest_main.dir\src\gtest_main.cc.obj cl : Command line warning D9025 : overriding '/W4' with '/W3' [40/52] Building CXX object _deps\googlemock-build\googlemock\CMakeFiles\gmock.dir\__\googletest\src\gtest-all.cc.obj cl : Command line warning D9025 : overriding '/W4' with '/W3' [42/52] Building CXX object _deps\googlemock-build\googlemock\CMakeFiles\gmock_main.dir\src\gmock-all.cc.obj cl : Command line warning D9025 : overriding '/W4' with '/W3' [43/52] Building CXX object _deps\googlemock-build\googlemock\CMakeFiles\gmock_main.dir\__\googletest\src\gtest-all.cc.obj cl : Command line warning D9025 : overriding '/W4' with '/W3' [49/52] Building CXX object _deps\googlemock-build\googletest\CMakeFiles\gtest.dir\src\gtest-all.cc.obj cl : Command line warning D9025 : overriding '/W4' with '/W3' [52/52] Linking CXX executable g_tests\g_test.exe toolkit/0.1: Package '067b3612f2510d1592f77890865c45044e053960' built toolkit/0.1: Build folder D:\Programs\conan\b\toolk9f11a58541c99\b\build\Debug toolkit/0.1: Generating the package toolkit/0.1: Temporary package folder D:\Programs\conan\b\toolk9f11a58541c99\p toolkit/0.1: Calling package() toolkit/0.1: Running CMake.install() toolkit/0.1: RUN: cmake --install "D:\Programs\conan\b\toolk9f11a58541c99\b\build\Debug" --prefix "D:/Programs/conan/b/toolk9f11a58541c99/p" conanvcvars.bat: Activating environment Visual Studio 17 - amd64 - vcvars_ver=14.3 [vcvarsall.bat] Environment initialized for: 'x64' -- Install configuration: "Debug" -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/logger.lib -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-logger-targets.cmake -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-logger-targets-debug.cmake -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/logger -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/logger/base_logger.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/logger/file_logger.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/logger/logger.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/logger/no_logger.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/logger/stdout_logger.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/image_tools.lib -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-image_tools-targets.cmake -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-image_tools-targets-debug.cmake -- Up-to-date: D:/Programs/conan/b/toolk9f11a58541c99/p/include -- Up-to-date: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_tools -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_tools/image_tools.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_tools/image_tools_math.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_tools/image_tools_sin_cos_lut.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_tools/vector2d.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/image_manager.lib -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-image_manager-targets.cmake -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-image_manager-targets-debug.cmake -- Up-to-date: D:/Programs/conan/b/toolk9f11a58541c99/p/include -- Up-to-date: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_manager -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_manager/bmp_parser -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_manager/bmp_parser/bmp_parser.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_manager/exceptions.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_manager/filename_parser.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_manager/helper.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_manager/image.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_manager/image_data.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_manager/image_loader.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_manager/image_manager.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_manager/image_manager_data_configurator.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_manager/image_manager_interface.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_manager/lodepng -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_manager/lodepng/lodepng.h -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/camera_manager.lib -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-camera_manager-targets.cmake -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-camera_manager-targets-debug.cmake -- Up-to-date: D:/Programs/conan/b/toolk9f11a58541c99/p/include -- Up-to-date: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/camera_manager -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/camera_manager/camera.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/camera_manager/camera_manager.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/project_manager.lib -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-project_manager-targets.cmake -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-project_manager-targets-debug.cmake -- Up-to-date: D:/Programs/conan/b/toolk9f11a58541c99/p/include -- Up-to-date: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/project_manager -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/project_manager/base_module.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/project_manager/file_handler.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/project_manager/helper.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/project_manager/legacy_project.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/project_manager/project.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/project_manager/project_manager.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/project_manager/project_manager_interface.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/image_processing.lib -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-image_processing-targets.cmake -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-image_processing-targets-debug.cmake -- Up-to-date: D:/Programs/conan/b/toolk9f11a58541c99/p/include -- Up-to-date: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_processing -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_processing/coded_target_detection.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_processing/edge_detection.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_processing/ellipse_detection.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/image_processing/ray.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/point_reconstruction.lib -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-point_reconstruction-targets.cmake -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-point_reconstruction-targets-debug.cmake -- Up-to-date: D:/Programs/conan/b/toolk9f11a58541c99/p/include -- Up-to-date: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/point_reconstruction -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/point_reconstruction/bundle_adjustment.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/point_reconstruction/point_estimation.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/point_reconstruction/point_reconstruction_manager.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/mocks -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/mocks/image_manager_fake.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/mocks/image_manager_mock.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/mocks/logger_mock.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/include/toolkit/mocks/project_manager_mock.hpp -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-targets.cmake -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-targets-debug.cmake -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-config.cmake -- Installing: D:/Programs/conan/b/toolk9f11a58541c99/p/lib/cmake/toolkit/toolkit-config-version.cmake toolkit/0.1: package(): Packaged 39 '.hpp' files toolkit/0.1: package(): Packaged 1 '.h' file: lodepng.h toolkit/0.1: package(): Packaged 7 '.lib' files toolkit/0.1: package(): Packaged 18 '.cmake' files toolkit/0.1: package(): Packaged 1 file: LICENSE toolkit/0.1: Created package revision 422427434049f92afca915b02e6d9851 toolkit/0.1: Package '067b3612f2510d1592f77890865c45044e053960' created toolkit/0.1: Full package reference: toolkit/0.1#1fb6e05fc8d9e3f45a83f1dc84293f8e:067b3612f2510d1592f77890865c45044e053960#422427434049f92afca915b02e6d9851 toolkit/0.1: Package folder D:\Programs\conan\b\toolk9f11a58541c99\p DEBUG: external: {'libjpeg-turbo', 'nlohmann_json', 'Ceres'}, internal: set(), comp.requires: ['Ceres::ceres'] DEBUG: external: {'libjpeg-turbo', 'nlohmann_json', 'Ceres'}, direct: ['libjpeg-turbo', 'nlohmann_json', 'ceres-solver'] Traceback (most recent call last): File "C:\Users\nerlant\AppData\Local\Programs\Python\Python311\Lib\site-packages\conan\cli\cli.py", line 172, in run command.run(self._conan_api, args[0][1:]) File "C:\Users\nerlant\AppData\Local\Programs\Python\Python311\Lib\site-packages\conan\cli\command.py", line 125, in run info = self._method(conan_api, parser, *args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\nerlant\AppData\Local\Programs\Python\Python311\Lib\site-packages\conan\cli\commands\create.py", line 81, in create conan_api.install.install_binaries(deps_graph=deps_graph, remotes=remotes) File "C:\Users\nerlant\AppData\Local\Programs\Python\Python311\Lib\site-packages\conan\api\subapi\install.py", line 21, in install_binaries installer.install(deps_graph, remotes) File "C:\Users\nerlant\AppData\Local\Programs\Python\Python311\Lib\site-packages\conans\client\installer.py", line 252, in install self._handle_package(package, install_reference, None, handled_count, package_count) File "C:\Users\nerlant\AppData\Local\Programs\Python\Python311\Lib\site-packages\conans\client\installer.py", line 335, in _handle_package self._call_package_info(conanfile, pkg_folder, is_editable=False) File "C:\Users\nerlant\AppData\Local\Programs\Python\Python311\Lib\site-packages\conans\client\installer.py", line 449, in _call_package_info conanfile.cpp_info.check_component_requires(conanfile) File "C:\Users\nerlant\AppData\Local\Programs\Python\Python311\Lib\site-packages\conans\model\build_info.py", line 586, in check_component_requires raise ConanException( conans.errors.ConanException: toolkit/0.1: required component package 'Ceres::' not in dependencies ERROR: toolkit/0.1: required component package 'Ceres::' not in dependencies ```