RainbowRobotics / rby1-sdk

Apache License 2.0
7 stars 0 forks source link

CMake Error: Could not read presets from /rby1-sdk No "version" field #8

Closed bxtbold closed 1 month ago

bxtbold commented 1 month ago

안녕하세요, sdk 빌드하는 중에 이와 같은 오류가 났습니다.

cmake 버전은 이슈 #2 에 나와있는 해결방법 처럼 3.30.2로 설치되었는데 다음과 같은 오류가 납니다. 다른 해결 방법이 혹시 있을까요?

$ cmake --version
cmake version 3.30.2
$ cmake --preset conan-release -D BUILD_EXAMPLES=ON
CMake Error: Could not read presets from /home/user/rby1-sdk:
No "version" field

환경: Ubuntu 22.04, AMD64

messy-snail commented 1 month ago

안녕하세요. 레인보우로보틱스 강한솔입니다.

여기에 있는 CMake 설치 과정을 수행해보시기 바랍니다

혹시 아래 과정을 수행하셨을지요.. 다시 에러를 읽어보니 CMakeUserPresets.json이 없는 것 같습니다. conan install 하면 저 파일이 생성이 되어야 합니다.

conan install . -s build_type=Release -b missing -of build

Question:

Hello, I encountered the following error while building the SDK.

I have installed CMake version 3.30.2 as per the solution in issue #2, but I am still getting the following error. Is there another solution available?

bash Copy code $ cmake --version cmake version 3.30.2 $ cmake --preset conan-release -D BUILD_EXAMPLES=ON CMake Error: Could not read presets from /home/user/rby1-sdk: No "version" field Environment: Ubuntu 22.04, AMD64

Response:

Hello, this is Hansol Kang from Rainbow Robotics.

Please try following the CMake installation process here.

By any chance, have you already performed the steps below? After reviewing the error, it seems that the CMakeUserPresets.json file is missing. This file should be generated when running the following conan install command:

conan install . -s build_type=Release -b missing -of build
bxtbold commented 1 month ago

다음 명령까지 잘 실행이 되어서 이제는 이런 오류가 납니다. cmake --build --preset conan-release

protobuf 버전이 맞지 않은 것 같은데 확인부탁드립나.

conan install . -s build_type=Release -b missing -of build ``` ======== Input profiles ======== Profile host: [settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=gnu17 compiler.libcxx=libstdc++11 compiler.version=11 os=Linux Profile build: [settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=gnu17 compiler.libcxx=libstdc++11 compiler.version=11 os=Linux ======== Computing dependency graph ======== Graph root conanfile.py (rby1-sdk/0.1): /home/user/rby1-sdk/conanfile.py Requirements abseil/20230802.1#a8d06333152eb1926b5dbc51e3bb218d - Cache bzip2/1.0.8#d00dac990f08d991998d624be81a9526 - Cache c-ares/1.33.1#99a35827eebc984885f60362660ea232 - Cache eigen/3.4.0#2e192482a8acff96fe34766adca2b24c - Cache grpc/1.54.3#e0844c82328a52eea475a9090db20bc9 - Cache libcap/2.69#7ef2d60864c2e58e89db957be936dc49 - Cache libmount/2.39.2#64850679fa9d5ead878e5076b0cab2a8 - Cache libselinux/3.6#5a78ff6ae5034eeaac8da723361a8ce4 - Cache libsystemd/255#8e49d0c6b1d63861e3e10665cc1b7b4d - Cache libxcrypt/4.4.36#4b4e8f20794f1997dd59eeed0b7cdcfb - Cache lz4/1.9.4#652b313a0444c8b1d60d1bf9e95fb0a1 - Cache nlohmann_json/3.11.3#45828be26eb619a2e04ca517bb7b828d - Cache openssl/3.3.2#9f9f130d58e7c13e76bb8a559f0a6a8b - Cache pcre2/10.42#576680686b88a4dadf6d382d6d6351d9 - Cache protobuf/3.21.12#2099e6c66fcd31b52c3afc0c096c1d02 - Cache re2/20230301#e8d673155a0494f27c7589b611e8350d - Cache tinyxml2/10.0.0#832c7f8038cef53f6427577d6e66a7a8 - Cache xz_utils/5.4.5#b885d1d79c9d30cff3803f7f551dbe66 - Cache zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache zstd/1.5.5#1f239731dc45147c7fc2f54bfbde73df - Cache Build requirements autoconf/2.71#f9307992909d7fb3df459340f1932809 - Cache automake/1.16.5#058bda3e21c36c9aa8425daf3c1faf50 - Cache flex/2.6.4#e35bc44b3fcbcd661e0af0dc5b5b1ad4 - Cache gnu-config/cci.20210814#dc430d754f465e8c74463019672fb97b - Cache gperf/3.1#1d622ad9717e9348ed3685c9994ad0b9 - Cache libtool/2.4.7#08316dad5c72c541ed21e039e4cf217b - Cache m4/1.4.19#b38ced39a01e31fef5435bc634461fd2 - Cache meson/1.2.2#21b73818ba96d9eea465b310b5bbc993 - Cache meson/1.4.0#2262941cc8fbb0099dd0c196ca2a6c01 - Cache ninja/1.12.1#fd583651bf0c6a901943495d49878803 - Cache pkgconf/2.1.0#27f44583701117b571307cf5b5fe5605 - Cache pkgconf/2.2.0#6462942a22803086372db44689ba825f - Cache protobuf/3.21.12#2099e6c66fcd31b52c3afc0c096c1d02 - Cache zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache Resolved version ranges abseil/[>=20230125.3 <=20230802.1]: abseil/20230802.1 c-ares/[>=1.19.1 <2]: c-ares/1.33.1 ninja/[>=1.10.2 <2]: ninja/1.12.1 openssl/[>=1.1 <4]: openssl/3.3.2 zlib/[>=1.2.11 <2]: zlib/1.3.1 ======== Computing necessary packages ======== abseil/20230802.1: Main binary package '8631cf963dbbb4d7a378a64a6fd1dc57558bc2fe' missing abseil/20230802.1: Checking 7 compatible configurations abseil/20230802.1: Found compatible package '13be611585c95453f1cbbd053cea04b3e64470ca': compiler.cppstd=17 re2/20230301: Main binary package '2071b77a5967e89bf82bb707e63d635b7110bc9c' missing re2/20230301: Checking 9 compatible configurations re2/20230301: Found compatible package '81d35562505eb9186290237bea6e2684b0ba3cc8': compiler.cppstd=17 tinyxml2/10.0.0: Main binary package '8631cf963dbbb4d7a378a64a6fd1dc57558bc2fe' missing tinyxml2/10.0.0: Checking 11 compatible configurations tinyxml2/10.0.0: Found compatible package '13be611585c95453f1cbbd053cea04b3e64470ca': compiler.cppstd=17 protobuf/3.21.12: Main binary package '16adb8fd5924f3e2f846fc02bb6374c9452669e1' missing protobuf/3.21.12: Checking 11 compatible configurations protobuf/3.21.12: Found compatible package '10670e90b03eb1607902ed190ae2fecdc52d69bb': compiler.cppstd=17 grpc/1.54.3: Main binary package '54447d8a6a6f553fd94ae97bbcd85fea9b76d6a3' missing grpc/1.54.3: Checking 7 compatible configurations grpc/1.54.3: Found compatible package '6faaf23df02154e666336269a6160a1fb2e001e1': compiler.cppstd=17 Requirements abseil/20230802.1#a8d06333152eb1926b5dbc51e3bb218d:13be611585c95453f1cbbd053cea04b3e64470ca#d2fd6f681edf818f9fdbb73ce12da097 - Cache bzip2/1.0.8#d00dac990f08d991998d624be81a9526:763ddd53d7a4775fe84a285f56005a096d9786fd#95b3785cd0f27ffb3d7da411e4890fbc - Cache c-ares/1.33.1#99a35827eebc984885f60362660ea232:e3c52a2f5bd5dc2a32df2d25f9f70a04cfd7bea3#2391d487deb885e6e7718e908f688f41 - Cache eigen/3.4.0#2e192482a8acff96fe34766adca2b24c:da39a3ee5e6b4b0d3255bfef95601890afd80709#b2e7c2d86c5d1dbefc534889aa72e12c - Cache grpc/1.54.3#e0844c82328a52eea475a9090db20bc9:6faaf23df02154e666336269a6160a1fb2e001e1#e7ac7742a9e636b3c6dae03a03c4f0ae - Cache libcap/2.69#7ef2d60864c2e58e89db957be936dc49:e394d65b8a668d2483958bc3fb8d1c2c1729493b#3c3933c66c034c965f4630aab05876f8 - Cache libmount/2.39.2#64850679fa9d5ead878e5076b0cab2a8:b647c43bfefae3f830561ca202b6cfd935b56205#384ea68547b57bcf6899e47e474c822c - Cache libselinux/3.6#5a78ff6ae5034eeaac8da723361a8ce4:da733d2d67127a5743fb5f2fa5f8859f298107b1#4ae4e9f08b2c8d6f007587d542976502 - Cache libsystemd/255#8e49d0c6b1d63861e3e10665cc1b7b4d:844b903d2e57f44159ad84c2bc0440709d2da0f3#148663bc887a6a57904f39913ae50aa7 - Cache libxcrypt/4.4.36#4b4e8f20794f1997dd59eeed0b7cdcfb:b647c43bfefae3f830561ca202b6cfd935b56205#037347fd279d062f88208f01ebf84817 - Cache lz4/1.9.4#652b313a0444c8b1d60d1bf9e95fb0a1:b647c43bfefae3f830561ca202b6cfd935b56205#33c306a6f6feabb2e61f84e3b64a3b81 - Cache nlohmann_json/3.11.3#45828be26eb619a2e04ca517bb7b828d:da39a3ee5e6b4b0d3255bfef95601890afd80709#552828a2560333bcbeff9d087ce0af0f - Cache openssl/3.3.2#9f9f130d58e7c13e76bb8a559f0a6a8b:ba0c965640dfc9185194d683d05bfbe6419b47a3#760594d9ffd75bbc5d7930b108bcf782 - Cache pcre2/10.42#576680686b88a4dadf6d382d6d6351d9:3ad2a8f0588fa84c2c7e638193c099d49b433df1#108401e37e4557d89fb173efd1d41138 - Cache protobuf/3.21.12#2099e6c66fcd31b52c3afc0c096c1d02:10670e90b03eb1607902ed190ae2fecdc52d69bb#f15ce1683d5a52b17d64e12871cac225 - Cache re2/20230301#e8d673155a0494f27c7589b611e8350d:81d35562505eb9186290237bea6e2684b0ba3cc8#9a7aa2fcdc3224b32df054cadb7a5439 - Cache tinyxml2/10.0.0#832c7f8038cef53f6427577d6e66a7a8:13be611585c95453f1cbbd053cea04b3e64470ca#c0b1aebff753f0b0a1372d90bac0c68d - Cache xz_utils/5.4.5#b885d1d79c9d30cff3803f7f551dbe66:b647c43bfefae3f830561ca202b6cfd935b56205#3abd876e19d49ed14b83cd115ff1e17c - Cache zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:b647c43bfefae3f830561ca202b6cfd935b56205#6b307bbcbae23635c4006543ffdbf3ef - Cache zstd/1.5.5#1f239731dc45147c7fc2f54bfbde73df:c1b14c3945d5adf1e5ae440c43c12f88117f2edc#5766258f0ea4ee0d0a66a93cffb8b93a - Cache Build requirements Skipped binaries autoconf/2.71, automake/1.16.5, flex/2.6.4, gnu-config/cci.20210814, gperf/3.1, libtool/2.4.7, m4/1.4.19, meson/1.2.2, meson/1.4.0, ninja/1.12.1, pkgconf/2.1.0, pkgconf/2.2.0, protobuf/3.21.12, zlib/1.3.1 ======== Installing packages ======== abseil/20230802.1: Already installed! (1 of 20) bzip2/1.0.8: Already installed! (2 of 20) c-ares/1.33.1: Already installed! (3 of 20) eigen/3.4.0: Already installed! (4 of 20) libcap/2.69: Already installed! (5 of 20) libmount/2.39.2: Already installed! (6 of 20) lz4/1.9.4: Already installed! (7 of 20) nlohmann_json/3.11.3: Already installed! (8 of 20) re2/20230301: Already installed! (9 of 20) tinyxml2/10.0.0: Already installed! (10 of 20) xz_utils/5.4.5: Already installed! (11 of 20) zlib/1.3.1: Already installed! (12 of 20) zstd/1.5.5: Already installed! (13 of 20) libxcrypt/4.4.36: Already installed! (14 of 20) openssl/3.3.2: Already installed! (15 of 20) pcre2/10.42: Already installed! (16 of 20) pcre2/10.42: Appending PATH environment variable: /home/user/.conan2/p/pcre2f28e5cd732c9c/p/bin protobuf/3.21.12: Already installed! (17 of 20) libselinux/3.6: Already installed! (18 of 20) libsystemd/255: Already installed! (19 of 20) grpc/1.54.3: Already installed! (20 of 20) WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X: WARN: deprecated: 'cpp_info.names' used in: protobuf/3.21.12, grpc/1.54.3, pcre2/10.42, eigen/3.4.0, bzip2/1.0.8, xz_utils/5.4.5, zlib/1.3.1, abseil/20230802.1, zstd/1.5.5, openssl/3.3.2, c-ares/1.33.1, lz4/1.9.4 WARN: deprecated: 'cpp_info.build_modules' used in: protobuf/3.21.12, grpc/1.54.3, bzip2/1.0.8, xz_utils/5.4.5, abseil/20230802.1, openssl/3.3.2, lz4/1.9.4 WARN: deprecated: 'env_info' used in: protobuf/3.21.12, grpc/1.54.3, pcre2/10.42, bzip2/1.0.8, zstd/1.5.5, openssl/3.3.2, c-ares/1.33.1 WARN: deprecated: 'cpp_info.filenames' used in: protobuf/3.21.12 ======== Finalizing install (deploy, generators) ======== conanfile.py (rby1-sdk/0.1): Writing generators to /home/user/rby1-sdk/build conanfile.py (rby1-sdk/0.1): Generator 'CMakeDeps' calling 'generate()' conanfile.py (rby1-sdk/0.1): CMakeDeps necessary find_package() and targets for your CMakeLists.txt find_package(gRPC) find_package(Eigen3) find_package(tinyxml2) find_package(nlohmann_json) target_link_libraries(... grpc::grpc Eigen3::Eigen tinyxml2::tinyxml2 nlohmann_json::nlohmann_json) conanfile.py (rby1-sdk/0.1): Generator 'CMakeToolchain' calling 'generate()' conanfile.py (rby1-sdk/0.1): CMakeToolchain generated: conan_toolchain.cmake conanfile.py (rby1-sdk/0.1): CMakeToolchain: Preset 'conan-release' added to CMakePresets.json. (cmake>=3.23) cmake --preset conan-release (cmake<3.23) cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release conanfile.py (rby1-sdk/0.1): CMakeToolchain generated: /home/user/rby1-sdk/build/CMakePresets.json conanfile.py (rby1-sdk/0.1): CMakeToolchain generated: /home/user/rby1-sdk/CMakeUserPresets.json conanfile.py (rby1-sdk/0.1): Generating aggregated env files conanfile.py (rby1-sdk/0.1): Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh'] Install finished successfully ```
cmake --preset conan-release -D BUILD_EXAMPLES=ON ``` Preset CMake variables: CMAKE_BUILD_TYPE="Release" CMAKE_POLICY_DEFAULT_CMP0091="NEW" CMAKE_TOOLCHAIN_FILE:FILEPATH="conan_toolchain.cmake" -- Using Conan toolchain: /home/user/rby1-sdk/build/conan_toolchain.cmake -- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC) -- Conan toolchain: Defining architecture flag: -m64 -- Conan toolchain: C++ Standard 17 with extensions ON -- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF -- RBY1-SDK: Build examples: ON -- Conan: Component target declared 'gRPC::address_sorting' -- Conan: Component target declared 'gRPC::gpr' -- Conan: Component target declared 'gRPC::grpc_plugin_support' -- Conan: Component target declared 'gRPC::upb' -- Conan: Component target declared 'grpc::grpc_execs' -- Conan: Component target declared 'gRPC::grpc' -- Conan: Component target declared 'gRPC::grpc_unsecure' -- Conan: Component target declared 'gRPC::grpc_authorization_provider' -- Conan: Component target declared 'gRPC::grpc++' -- Conan: Component target declared 'gRPC::grpc++_unsecure' -- Conan: Component target declared 'gRPC::grpc++_alts' -- Conan: Component target declared 'gRPC::grpc++_error_details' -- Conan: Component target declared 'gRPC::grpc++_reflection' -- Conan: Component target declared 'gRPC::grpcpp_channelz' -- Conan: Target declared 'grpc::grpc' -- Conan: Component target declared 'absl::config' -- Conan: Component target declared 'absl::pretty_function' -- Conan: Component target declared 'absl::civil_time' -- Conan: Component target declared 'absl::time_zone' -- Conan: Component target declared 'absl::errno_saver' -- Conan: Component target declared 'absl::dynamic_annotations' -- Conan: Component target declared 'absl::core_headers' -- Conan: Component target declared 'absl::fast_type_id' -- Conan: Component target declared 'absl::algorithm' -- Conan: Component target declared 'absl::counting_allocator' -- Conan: Component target declared 'absl::hashtable_debug_hooks' -- Conan: Component target declared 'absl::node_slot_policy' -- Conan: Component target declared 'absl::non_temporal_arm_intrinsics' -- Conan: Component target declared 'absl::log_internal_voidify' -- Conan: Component target declared 'absl::numeric_representation' -- Conan: Component target declared 'absl::random_seed_gen_exception' -- Conan: Component target declared 'absl::random_internal_traits' -- Conan: Component target declared 'absl::random_internal_fast_uniform_bits' -- Conan: Component target declared 'absl::random_internal_platform' -- Conan: Component target declared 'absl::cordz_update_tracker' -- Conan: Component target declared 'absl::if_constexpr' -- Conan: Component target declared 'absl::atomic_hook' -- Conan: Component target declared 'absl::log_severity' -- Conan: Component target declared 'absl::strerror' -- Conan: Component target declared 'absl::prefetch' -- Conan: Component target declared 'absl::hashtable_debug' -- Conan: Component target declared 'absl::non_temporal_memcpy' -- Conan: Component target declared 'absl::leak_check' -- Conan: Component target declared 'absl::flags_commandlineflag_internal' -- Conan: Component target declared 'absl::log_internal_config' -- Conan: Component target declared 'absl::log_internal_nullguard' -- Conan: Component target declared 'absl::type_traits' -- Conan: Component target declared 'absl::bits' -- Conan: Component target declared 'absl::exponential_biased' -- Conan: Component target declared 'absl::random_internal_randen_slow' -- Conan: Component target declared 'absl::random_internal_randen_hwaes_impl' -- Conan: Component target declared 'absl::nullability' -- Conan: Component target declared 'absl::raw_logging_internal' -- Conan: Component target declared 'absl::base_internal' -- Conan: Component target declared 'absl::container_common' -- Conan: Component target declared 'absl::meta' -- Conan: Component target declared 'absl::int128' -- Conan: Component target declared 'absl::periodic_sampler' -- Conan: Component target declared 'absl::random_internal_fastmath' -- Conan: Component target declared 'absl::random_internal_randen_hwaes' -- Conan: Component target declared 'absl::random_internal_uniform_helper' -- Conan: Component target declared 'absl::compare' -- Conan: Component target declared 'absl::spinlock_wait' -- Conan: Component target declared 'absl::throw_delegate' -- Conan: Component target declared 'absl::scoped_set_env' -- Conan: Component target declared 'absl::algorithm_container' -- Conan: Component target declared 'absl::common_policy_traits' -- Conan: Component target declared 'absl::debugging_internal' -- Conan: Component target declared 'absl::memory' -- Conan: Component target declared 'absl::numeric' -- Conan: Component target declared 'absl::random_internal_iostream_state_saver' -- Conan: Component target declared 'absl::random_internal_generate_real' -- Conan: Component target declared 'absl::random_internal_wide_multiply' -- Conan: Component target declared 'absl::random_internal_randen' -- Conan: Component target declared 'absl::cordz_functions' -- Conan: Component target declared 'absl::bad_any_cast_impl' -- Conan: Component target declared 'absl::bad_optional_access' -- Conan: Component target declared 'absl::bad_variant_access' -- Conan: Component target declared 'absl::utility' -- Conan: Component target declared 'absl::base' -- Conan: Component target declared 'absl::cleanup_internal' -- Conan: Component target declared 'absl::compressed_tuple' -- Conan: Component target declared 'absl::container_memory' -- Conan: Component target declared 'absl::hash_policy_traits' -- Conan: Component target declared 'absl::stacktrace' -- Conan: Component target declared 'absl::any_invocable' -- Conan: Component target declared 'absl::random_internal_distribution_caller' -- Conan: Component target declared 'absl::random_internal_pcg_engine' -- Conan: Component target declared 'absl::bad_any_cast' -- Conan: Component target declared 'absl::span' -- Conan: Component target declared 'absl::optional' -- Conan: Component target declared 'absl::variant' -- Conan: Component target declared 'absl::malloc_internal' -- Conan: Component target declared 'absl::endian' -- Conan: Component target declared 'absl::cleanup' -- Conan: Component target declared 'absl::fixed_array' -- Conan: Component target declared 'absl::inlined_vector_internal' -- Conan: Component target declared 'absl::crc_cpu_detect' -- Conan: Component target declared 'absl::demangle_internal' -- Conan: Component target declared 'absl::debugging' -- Conan: Component target declared 'absl::bind_front' -- Conan: Component target declared 'absl::function_ref' -- Conan: Component target declared 'absl::log_internal_conditions' -- Conan: Component target declared 'absl::random_bit_gen_ref' -- Conan: Component target declared 'absl::random_internal_mock_helpers' -- Conan: Component target declared 'absl::string_view' -- Conan: Component target declared 'absl::any' -- Conan: Component target declared 'absl::inlined_vector' -- Conan: Component target declared 'absl::crc_internal' -- Conan: Component target declared 'absl::city' -- Conan: Component target declared 'absl::low_level_hash' -- Conan: Component target declared 'absl::random_internal_randen_engine' -- Conan: Component target declared 'absl::strings_internal' -- Conan: Component target declared 'absl::graphcycles_internal' -- Conan: Component target declared 'absl::strings' -- Conan: Component target declared 'absl::layout' -- Conan: Component target declared 'absl::symbolize' -- Conan: Component target declared 'absl::flags_path_util' -- Conan: Component target declared 'absl::flags_commandlineflag' -- Conan: Component target declared 'absl::hash' -- Conan: Component target declared 'absl::log_internal_proto' -- Conan: Component target declared 'absl::log_internal_nullstream' -- Conan: Component target declared 'absl::log_internal_append_truncated' -- Conan: Component target declared 'absl::random_distributions' -- Conan: Component target declared 'absl::random_internal_seed_material' -- Conan: Component target declared 'absl::str_format_internal' -- Conan: Component target declared 'absl::time' -- Conan: Component target declared 'absl::examine_stack' -- Conan: Component target declared 'absl::flags_private_handle_accessor' -- Conan: Component target declared 'absl::log_internal_globals' -- Conan: Component target declared 'absl::log_globals' -- Conan: Component target declared 'absl::log_entry' -- Conan: Component target declared 'absl::random_internal_pool_urbg' -- Conan: Component target declared 'absl::random_internal_salted_seed_seq' -- Conan: Component target declared 'absl::str_format' -- Conan: Component target declared 'absl::kernel_timeout_internal' -- Conan: Component target declared 'absl::crc32c' -- Conan: Component target declared 'absl::failure_signal_handler' -- Conan: Component target declared 'absl::flags_marshalling' -- Conan: Component target declared 'absl::log_internal_format' -- Conan: Component target declared 'absl::log_initialize' -- Conan: Component target declared 'absl::log_sink' -- Conan: Component target declared 'absl::random_seed_sequences' -- Conan: Component target declared 'absl::random_internal_nonsecure_base' -- Conan: Component target declared 'absl::random_internal_distribution_test_util' -- Conan: Component target declared 'absl::synchronization' -- Conan: Component target declared 'absl::crc_cord_state' -- Conan: Component target declared 'absl::flags_program_name' -- Conan: Component target declared 'absl::log_internal_log_sink_set' -- Conan: Component target declared 'absl::sample_recorder' -- Conan: Component target declared 'absl::random_random' -- Conan: Component target declared 'absl::cordz_statistics' -- Conan: Component target declared 'absl::cordz_handle' -- Conan: Component target declared 'absl::hashtablez_sampler' -- Conan: Component target declared 'absl::flags_config' -- Conan: Component target declared 'absl::log_sink_registry' -- Conan: Component target declared 'absl::cord_internal' -- Conan: Component target declared 'absl::raw_hash_set' -- Conan: Component target declared 'absl::flags_internal' -- Conan: Component target declared 'absl::log_internal_message' -- Conan: Component target declared 'absl::cordz_info' -- Conan: Component target declared 'absl::raw_hash_map' -- Conan: Component target declared 'absl::log_internal_strip' -- Conan: Component target declared 'absl::log_internal_structured' -- Conan: Component target declared 'absl::cordz_sample_token' -- Conan: Component target declared 'absl::cordz_update_scope' -- Conan: Component target declared 'absl::log_internal_check_op' -- Conan: Component target declared 'absl::log_internal_log_impl' -- Conan: Component target declared 'absl::log_structured' -- Conan: Component target declared 'absl::cord' -- Conan: Component target declared 'absl::btree' -- Conan: Component target declared 'absl::hash_function_defaults' -- Conan: Component target declared 'absl::log_internal_check_impl' -- Conan: Component target declared 'absl::absl_log' -- Conan: Component target declared 'absl::log' -- Conan: Component target declared 'absl::status' -- Conan: Component target declared 'absl::flat_hash_map' -- Conan: Component target declared 'absl::flat_hash_set' -- Conan: Component target declared 'absl::node_hash_map' -- Conan: Component target declared 'absl::node_hash_set' -- Conan: Component target declared 'absl::absl_check' -- Conan: Component target declared 'absl::check' -- Conan: Component target declared 'absl::die_if_null' -- Conan: Component target declared 'absl::log_streamer' -- Conan: Component target declared 'absl::statusor' -- Conan: Component target declared 'absl::flags_reflection' -- Conan: Component target declared 'absl::flags' -- Conan: Component target declared 'absl::flags_usage_internal' -- Conan: Component target declared 'absl::log_internal_flags' -- Conan: Component target declared 'absl::flags_usage' -- Conan: Component target declared 'absl::log_flags' -- Conan: Component target declared 'absl::flags_parse' -- Conan: Target declared 'abseil::abseil' -- Conan: Including build module from '/home/user/.conan2/p/abseiae4e4baf273c4/p/lib/cmake/conan_trick/cxx_std.cmake' -- Conan: Component target declared 'protobuf::libprotobuf' -- Conan: Component target declared 'protobuf::libprotoc' -- Conan: Target declared 'protobuf::protobuf' -- Conan: Target declared 'ZLIB::ZLIB' -- Conan: Including build module from '/home/user/.conan2/p/proto5794f10f7a310/p/lib/cmake/protobuf/protobuf-generate.cmake' -- Conan: Including build module from '/home/user/.conan2/p/proto5794f10f7a310/p/lib/cmake/protobuf/protobuf-module.cmake' -- Conan: Including build module from '/home/user/.conan2/p/proto5794f10f7a310/p/lib/cmake/protobuf/protobuf-options.cmake' -- Conan: Including build module from '/home/user/.conan2/p/proto5794f10f7a310/p/lib/cmake/protobuf/protobuf-conan-protoc-target.cmake' -- Conan: Component target declared 'c-ares::cares' -- Conan: Component target declared 'OpenSSL::Crypto' -- Conan: Component target declared 'OpenSSL::SSL' -- Conan: Target declared 'openssl::openssl' -- Conan: Including build module from '/home/user/.conan2/p/opens24deb19120119/p/lib/cmake/conan-official-openssl-variables.cmake' -- Conan: Target declared 're2::re2' -- Conan: Target declared 'libsystemd::libsystemd' -- Conan: Component target declared 'libcap::cap' -- Conan: Target declared 'libcap::libcap' -- Conan: Component target declared 'libmount::libblkid' -- Conan: Component target declared 'libmount::libmount' -- Conan: Target declared 'libxcrypt::libxcrypt' -- Conan: Component target declared 'libselinux::sepol' -- Conan: Component target declared 'libselinux::selinux' -- Conan: Target declared 'libselinux::libselinux' -- Conan: Component target declared 'PCRE2::8BIT' -- Conan: Component target declared 'PCRE2::16BIT' -- Conan: Component target declared 'PCRE2::32BIT' -- Conan: Component target declared 'PCRE2::POSIX' -- Conan: Target declared 'pcre2::pcre2' -- Conan: Target declared 'BZip2::BZip2' -- Conan: Including build module from '/home/user/.conan2/p/bzip23c098e896e3ea/p/lib/cmake/conan-official-bzip2-variables.cmake' -- Conan: Target declared 'LZ4::lz4_static' -- Conan: Target declared 'LibLZMA::LibLZMA' -- Conan: Including build module from '/home/user/.conan2/p/xz_ute24eea7d0b168/p/lib/cmake/conan-official-xz_utils-variables.cmake' -- Conan: Component target declared 'zstd::libzstd_static' -- Conan: Including build module from '/home/user/.conan2/p/grpc24a7180da774b/p/lib/cmake/conan_trick/grpc_cpp_plugin.cmake' -- Conan: Including build module from '/home/user/.conan2/p/grpc24a7180da774b/p/lib/cmake/conan_trick/grpc_csharp_plugin.cmake' -- Conan: Including build module from '/home/user/.conan2/p/grpc24a7180da774b/p/lib/cmake/conan_trick/grpc_node_plugin.cmake' -- Conan: Including build module from '/home/user/.conan2/p/grpc24a7180da774b/p/lib/cmake/conan_trick/grpc_objective_c_plugin.cmake' -- Conan: Including build module from '/home/user/.conan2/p/grpc24a7180da774b/p/lib/cmake/conan_trick/grpc_php_plugin.cmake' -- Conan: Including build module from '/home/user/.conan2/p/grpc24a7180da774b/p/lib/cmake/conan_trick/grpc_python_plugin.cmake' -- Conan: Including build module from '/home/user/.conan2/p/grpc24a7180da774b/p/lib/cmake/conan_trick/grpc_ruby_plugin.cmake' -- Conan: Component target declared 'Eigen3::Eigen' -- Conan: Target declared 'tinyxml2::tinyxml2' -- Conan: Target declared 'nlohmann_json::nlohmann_json' -- Debug mode: -- We are on a Linux system -- Embedded mode: OFF -- Algebra backend: builtin -- Solver profiling: ON -- Solver interrupt: ON -- Using double precision floating-point -- Using long integers -- Code generation: ON -- Derivative support: ON -- Fetching/configuring QDLDL solver CMake Warning (dev) at /usr/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(qdldl) is deprecated, call FetchContent_MakeAvailable(qdldl) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(qdldl) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Call Stack (most recent call first): build/_deps/osqp-src/algebra/_common/lin_sys/qdldl/qdldl.cmake:15 (FetchContent_Populate) build/_deps/osqp-src/algebra/builtin/CMakeLists.txt:2 (include) This warning is for project developers. Use -Wno-dev to suppress it. CMake Deprecation Warning at build/_deps/osqp-src/algebra/_common/lin_sys/qdldl/qdldl_sources/CMakeLists.txt:2 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- Using double precision floats -- Long integers (64bit) are ON -- Static library build is OFF -- Shared library build is OFF -- Demo executable build is OFF -- Not building demo executable -- Unit testing suite build is OFF -- Build static library: ON -- Build shared library: ON -- Build demo executable: OFF -- example_trapezoidal_motion_generator -- example_so3 -- example_optimal_control -- example_velocity_estimation -- example_master_arm -- example_teleoperation_with_joint_mapping -- example_kinematic_calibration -- example_kinematic_calibration2 -- example_log -- example_reset_odometry -- example_power_command -- example_get_robot_state -- example_get_robot_state2 -- example_gravity_compensation -- example_self_collision_checking -- example_demo_motion -- example_real_time_control_command -- example_mobility_command -- example_rtcomm_protocol -- Configuring done (0.4s) -- Generating done (0.1s) -- Build files have been written to: /home/user/rby1-sdk/build ```

cmake --build --preset conan-release

[  0%] Built target qdldlobject
[  4%] Built target DynamixelSDK
[ 14%] Built target OSQPLIB
[ 16%] Built target osqpstatic
[ 17%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/body_component_based_command.pb.cc.o
[ 17%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/basic_command.pb.cc.o
[ 18%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/component_based_command.pb.cc.o
[ 17%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/command_header.pb.cc.o
[ 18%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/arm_command.pb.cc.o
[ 19%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/control_manager.pb.cc.o
[ 19%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/body_command.pb.cc.o
[ 19%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/gamepad.pb.cc.o
[ 20%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/gamepad_service.pb.cc.o
[ 20%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/control_manager_service.pb.cc.o
[ 20%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/gripper_command.pb.cc.o
[ 20%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/geometry.pb.cc.o
[ 20%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/head_command.pb.cc.o
[ 21%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/gripper_command_service.pb.cc.o
[ 21%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/header.pb.cc.o
[ 22%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/log.pb.cc.o
[ 22%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/log_service.pb.cc.o
[ 22%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/mobility_command.pb.cc.o
[ 24%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/parameter.pb.cc.o
[ 24%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/ping.pb.cc.o
[ 24%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/parameter_service.pb.cc.o
[ 25%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/ping_service.pb.cc.o
[ 25%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/power.pb.cc.o
[ 27%] Built target OsqpEigen
[ 27%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/power_service.pb.cc.o
In file included from /home/user/rby1-sdk/build/_protobuf/rb/api/component_based_command.pb.cc:4:
/home/user/rby1-sdk/build/_protobuf/rb/api/component_based_command.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
   17 | #error This file was generated by an older version of protoc which is
      |  ^~~~~
In file included from /home/user/rby1-sdk/build/_protobuf/rb/api/body_command.pb.cc:4:
/home/user/rby1-sdk/build/_protobuf/rb/api/body_command.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
   17 | #error This file was generated by an older version of protoc which is
      |  ^~~~~
/home/user/rby1-sdk/build/_protobuf/rb/api/component_based_command.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
   18 | #error incompatible with your Protocol Buffer headers. Please
      |  ^~~~~
...
...

In file included from /home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/parse_context.h:50,
                 from /home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/map_type_handler.h:37,
                 from /home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/map.h:61,
                 from /usr/include/google/protobuf/generated_message_table_driven.h:34,
                 from /home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.h:26,
                 from /home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:4:
/home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/wire_format_lite.h:631:19: note: candidate: ‘static uint8_t* google::protobuf::internal::WireFormatLite::InternalWriteMessage(int, const google::protobuf::MessageLite&, int, uint8_t*, google::protobuf::io::EpsCopyOutputStream*)’
  631 |   static uint8_t* InternalWriteMessage(int field_number,
      |                   ^~~~~~~~~~~~~~~~~~~~
/home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/wire_format_lite.h:631:19: note:   candidate expects 5 arguments, 4 provided
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc: In member function ‘void rb::api::RealTimeControlCommand_Feedback::SharedCtor()’:
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:10599:38: error: ‘InitSCC’ is not a member of ‘google::protobuf::internal’
10599 |   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto.base);
      |                                      ^~~~~~~
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:10599:47: error: ‘scc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto’ was not declared in this scope; did you mean ‘InitDefaultsscc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto’?
10599 |   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto.base);
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                               InitDefaultsscc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc: In static member function ‘static const rb::api::RealTimeControlCommand_Feedback& rb::api::RealTimeControlCommand_Feedback::default_instance()’:
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:10624:38: error: ‘InitSCC’ is not a member of ‘google::protobuf::internal’
10624 |   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto.base);
      |                                      ^~~~~~~
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:10624:49: error: ‘::scc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto’ has not been declared; did you mean ‘InitDefaultsscc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto’?
10624 |   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto.base);
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                 InitDefaultsscc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc: In member function ‘virtual google::protobuf::uint8* rb::api::RealTimeControlCommand_Feedback::_InternalSerialize(google::protobuf::uint8*, google::protobuf::io::EpsCopyOutputStream*) const’:
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:10689:27: error: no matching function for call to ‘google::protobuf::internal::WireFormatLite::InternalWriteMessage(int, const rb::api::CommandHeader_Feedback&, google::protobuf::uint8*&, google::protobuf::io::EpsCopyOutputStream*&)’
10688 |     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10689 |       InternalWriteMessage(
      |       ~~~~~~~~~~~~~~~~~~~~^
10690 |         1, _Internal::command_header_feedback(this), target, stream);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/parse_context.h:50,
                 from /home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/map_type_handler.h:37,
                 from /home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/map.h:61,
                 from /usr/include/google/protobuf/generated_message_table_driven.h:34,
                 from /home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.h:26,
                 from /home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:4:
/home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/wire_format_lite.h:631:19: note: candidate: ‘static uint8_t* google::protobuf::internal::WireFormatLite::InternalWriteMessage(int, const google::protobuf::MessageLite&, int, uint8_t*, google::protobuf::io::EpsCopyOutputStream*)’
  631 |   static uint8_t* InternalWriteMessage(int field_number,
      |                   ^~~~~~~~~~~~~~~~~~~~
/home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/wire_format_lite.h:631:19: note:   candidate expects 5 arguments, 4 provided
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc: In static member function ‘static const rb::api::RealTimeControlCommand& rb::api::RealTimeControlCommand::default_instance()’:
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:10824:38: error: ‘InitSCC’ is not a member of ‘google::protobuf::internal’
10824 |   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RealTimeControlCommand_rb_2fapi_2fbasic_5fcommand_2eproto.base);
      |                                      ^~~~~~~
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:10824:49: error: ‘::scc_info_RealTimeControlCommand_rb_2fapi_2fbasic_5fcommand_2eproto’ has not been declared; did you mean ‘InitDefaultsscc_info_RealTimeControlCommand_rb_2fapi_2fbasic_5fcommand_2eproto’?
10824 |   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RealTimeControlCommand_rb_2fapi_2fbasic_5fcommand_2eproto.base);
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                 InitDefaultsscc_info_RealTimeControlCommand_rb_2fapi_2fbasic_5fcommand_2eproto
gmake[2]: *** [CMakeFiles/proto-objects.dir/build.make:602: CMakeFiles/proto-objects.dir/_protobuf/rb/api/basic_command.pb.cc.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:370: CMakeFiles/proto-objects.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
messy-snail commented 1 month ago

혹시 기존에 설치되었던 혹은 설치했던 protoc이 존재하나요? 지우고 진행해주셔야합니다. conan에서 protoc 패키지를 관리하므로 별도로 설치해줄 필요가 없습니다.

#apt로 설치한 경우
sudo apt-get remove --purge protobuf-compiler

#snap으로 설치한 경우
sudo snap remove protoc

#아래 명령어를 수행했을 때 버전이 아무것도 뜨지 않아야함.
protoc --version

기존의 build 폴더 삭제 아래 명령어 다시 수행

conan install . -s build_type=Release -b missing -of build
cmake --preset conan-release -D BUILD_EXAMPLES=ON
cmake --build --preset conan-release

Question:

I ran the following commands successfully, but now I'm encountering an error when running:

cmake --build --preset conan-release

It seems like there is a mismatch with the protobuf version. Can you please check?

Commands I ran:

conan install . -s build_type=Release -b missing -of build
cmake --preset conan-release -D BUILD_EXAMPLES=ON
cmake --build --preset conan-release
  0%] Built target qdldlobject
[  4%] Built target DynamixelSDK
[ 14%] Built target OSQPLIB
[ 16%] Built target osqpstatic
[ 17%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/body_component_based_command.pb.cc.o
[ 17%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/basic_command.pb.cc.o
[ 18%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/component_based_command.pb.cc.o
[ 17%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/command_header.pb.cc.o
[ 18%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/arm_command.pb.cc.o
[ 19%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/control_manager.pb.cc.o
[ 19%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/body_command.pb.cc.o
[ 19%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/gamepad.pb.cc.o
[ 20%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/gamepad_service.pb.cc.o
[ 20%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/control_manager_service.pb.cc.o
[ 20%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/gripper_command.pb.cc.o
[ 20%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/geometry.pb.cc.o
[ 20%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/head_command.pb.cc.o
[ 21%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/gripper_command_service.pb.cc.o
[ 21%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/header.pb.cc.o
[ 22%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/log.pb.cc.o
[ 22%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/log_service.pb.cc.o
[ 22%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/mobility_command.pb.cc.o
[ 24%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/parameter.pb.cc.o
[ 24%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/ping.pb.cc.o
[ 24%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/parameter_service.pb.cc.o
[ 25%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/ping_service.pb.cc.o
[ 25%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/power.pb.cc.o
[ 27%] Built target OsqpEigen
[ 27%] Building CXX object CMakeFiles/proto-objects.dir/_protobuf/rb/api/power_service.pb.cc.o
In file included from /home/user/rby1-sdk/build/_protobuf/rb/api/component_based_command.pb.cc:4:
/home/user/rby1-sdk/build/_protobuf/rb/api/component_based_command.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
   17 | #error This file was generated by an older version of protoc which is
      |  ^~~~~
In file included from /home/user/rby1-sdk/build/_protobuf/rb/api/body_command.pb.cc:4:
/home/user/rby1-sdk/build/_protobuf/rb/api/body_command.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
   17 | #error This file was generated by an older version of protoc which is
      |  ^~~~~
/home/user/rby1-sdk/build/_protobuf/rb/api/component_based_command.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
   18 | #error incompatible with your Protocol Buffer headers. Please
      |  ^~~~~
...
...

In file included from /home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/parse_context.h:50,
                 from /home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/map_type_handler.h:37,
                 from /home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/map.h:61,
                 from /usr/include/google/protobuf/generated_message_table_driven.h:34,
                 from /home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.h:26,
                 from /home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:4:
/home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/wire_format_lite.h:631:19: note: candidate: ‘static uint8_t* google::protobuf::internal::WireFormatLite::InternalWriteMessage(int, const google::protobuf::MessageLite&, int, uint8_t*, google::protobuf::io::EpsCopyOutputStream*)’
  631 |   static uint8_t* InternalWriteMessage(int field_number,
      |                   ^~~~~~~~~~~~~~~~~~~~
/home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/wire_format_lite.h:631:19: note:   candidate expects 5 arguments, 4 provided
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc: In member function ‘void rb::api::RealTimeControlCommand_Feedback::SharedCtor()’:
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:10599:38: error: ‘InitSCC’ is not a member of ‘google::protobuf::internal’
10599 |   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto.base);
      |                                      ^~~~~~~
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:10599:47: error: ‘scc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto’ was not declared in this scope; did you mean ‘InitDefaultsscc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto’?
10599 |   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto.base);
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                               InitDefaultsscc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc: In static member function ‘static const rb::api::RealTimeControlCommand_Feedback& rb::api::RealTimeControlCommand_Feedback::default_instance()’:
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:10624:38: error: ‘InitSCC’ is not a member of ‘google::protobuf::internal’
10624 |   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto.base);
      |                                      ^~~~~~~
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:10624:49: error: ‘::scc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto’ has not been declared; did you mean ‘InitDefaultsscc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto’?
10624 |   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto.base);
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                 InitDefaultsscc_info_RealTimeControlCommand_Feedback_rb_2fapi_2fbasic_5fcommand_2eproto
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc: In member function ‘virtual google::protobuf::uint8* rb::api::RealTimeControlCommand_Feedback::_InternalSerialize(google::protobuf::uint8*, google::protobuf::io::EpsCopyOutputStream*) const’:
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:10689:27: error: no matching function for call to ‘google::protobuf::internal::WireFormatLite::InternalWriteMessage(int, const rb::api::CommandHeader_Feedback&, google::protobuf::uint8*&, google::protobuf::io::EpsCopyOutputStream*&)’
10688 |     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10689 |       InternalWriteMessage(
      |       ~~~~~~~~~~~~~~~~~~~~^
10690 |         1, _Internal::command_header_feedback(this), target, stream);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/parse_context.h:50,
                 from /home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/map_type_handler.h:37,
                 from /home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/map.h:61,
                 from /usr/include/google/protobuf/generated_message_table_driven.h:34,
                 from /home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.h:26,
                 from /home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:4:
/home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/wire_format_lite.h:631:19: note: candidate: ‘static uint8_t* google::protobuf::internal::WireFormatLite::InternalWriteMessage(int, const google::protobuf::MessageLite&, int, uint8_t*, google::protobuf::io::EpsCopyOutputStream*)’
  631 |   static uint8_t* InternalWriteMessage(int field_number,
      |                   ^~~~~~~~~~~~~~~~~~~~
/home/user/.conan2/p/proto5794f10f7a310/p/include/google/protobuf/wire_format_lite.h:631:19: note:   candidate expects 5 arguments, 4 provided
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc: In static member function ‘static const rb::api::RealTimeControlCommand& rb::api::RealTimeControlCommand::default_instance()’:
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:10824:38: error: ‘InitSCC’ is not a member of ‘google::protobuf::internal’
10824 |   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RealTimeControlCommand_rb_2fapi_2fbasic_5fcommand_2eproto.base);
      |                                      ^~~~~~~
/home/user/rby1-sdk/build/_protobuf/rb/api/basic_command.pb.cc:10824:49: error: ‘::scc_info_RealTimeControlCommand_rb_2fapi_2fbasic_5fcommand_2eproto’ has not been declared; did you mean ‘InitDefaultsscc_info_RealTimeControlCommand_rb_2fapi_2fbasic_5fcommand_2eproto’?
10824 |   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RealTimeControlCommand_rb_2fapi_2fbasic_5fcommand_2eproto.base);
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                 InitDefaultsscc_info_RealTimeControlCommand_rb_2fapi_2fbasic_5fcommand_2eproto
gmake[2]: *** [CMakeFiles/proto-objects.dir/build.make:602: CMakeFiles/proto-objects.dir/_protobuf/rb/api/basic_command.pb.cc.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:370: CMakeFiles/proto-objects.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

Response:

Is it possible that there is an existing installation of protoc on your system? You need to remove it because conan manages the protoc package, so there's no need for a separate installation.

Run the following commands depending on how protoc was installed:

# If installed via apt
sudo apt-get remove --purge protobuf-compiler

# If installed via snap
sudo snap remove protoc

# After running this, `protoc --version` should not return any version.
protoc --version

Then, delete the existing build folder and re-run the following commands:

conan install . -s build_type=Release -b missing -of build
cmake --preset conan-release -D BUILD_EXAMPLES=ON
cmake --build --preset conan-release
bxtbold commented 1 month ago

I ended up creating a docker container with a clean environment, and it is working. Thank you :)