open-rmf / rmf

Root repository for the RMF software
Apache License 2.0
223 stars 58 forks source link

Build failure on Ubuntu 20.04 and Foxy when running "colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release" #281

Closed shyamkris closed 1 year ago

shyamkris commented 1 year ago

Bug report

Getting the following error while building the RMF source using "colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release"

--- stderr: nlohmann_json_schema_validator_vendor In file included from /home/admin/rmf_foxy_ws/build/nlohmann_json_schema_validator_vendor/nlohmann_json_schema_validator-1063c9adbafc25f5a14bae15c3babdb039de86c6-prefix/src/nlohmann_json_schema_validator-1063c9adbafc25f5a14bae15c3babdb039de86c6/src/json-validator.cpp:9: /home/admin/rmf_foxy_ws/build/nlohmann_json_schema_validator_vendor/nlohmann_json_schema_validator-1063c9adbafc25f5a14bae15c3babdb039de86c6-prefix/src/nlohmann_json_schema_validator-1063c9adbafc25f5a14bae15c3babdb039de86c6/src/nlohmann/json-schema.hpp:28:4: error: #error "Please use this library with NLohmann's JSON version 3.8.0 or higher" 28 | # error "Please use this library with NLohmann's JSON version 3.8.0 or higher" | ^~~~~

Required information:

Description of the bug

--- stderr: nlohmann_json_schema_validator_vendor In file included from /home/admin/rmf_foxy_ws/build/nlohmann_json_schema_validator_vendor/nlohmann_json_schema_validator-1063c9adbafc25f5a14bae15c3babdb039de86c6-prefix/src/nlohmann_json_schema_validator-1063c9adbafc25f5a14bae15c3babdb039de86c6/src/json-validator.cpp:9: /home/admin/rmf_foxy_ws/build/nlohmann_json_schema_validator_vendor/nlohmann_json_schema_validator-1063c9adbafc25f5a14bae15c3babdb039de86c6-prefix/src/nlohmann_json_schema_validator-1063c9adbafc25f5a14bae15c3babdb039de86c6/src/nlohmann/json-schema.hpp:28:4: error: #error "Please use this library with NLohmann's JSON version 3.8.0 or higher" 28 | # error "Please use this library with NLohmann's JSON version 3.8.0 or higher" | ^~~~~

Steps to reproduce the bug