open-simulation-platform / libcosim

OSP C++ co-simulation library
https://open-simulation-platform.github.io/libcosim
Mozilla Public License 2.0
61 stars 10 forks source link

build error : "BOOST_ALL_NO_LIB" redefined #717

Open tamago117 opened 2 years ago

tamago117 commented 2 years ago

I'm trying How to build section. But I face an error at Step 3: Build and test

$ conan install .. --build=missing
$ cmake .. -DLIBCOSIM_USING_CONAN=TRUE -DCMAKE_BUILD_TYPE=Debug

$ cmake --build .
Scanning dependencies of target osp-xsd-embedder
[  1%] Building CXX object tools/osp-xsd-embedder/CMakeFiles/osp-xsd-embedder.dir/osp-xsd-embedder.cpp.o
[  2%] Linking CXX executable ../../output/debug/bin/osp-xsd-embedder
[  2%] Built target osp-xsd-embedder
[  3%] Generating ../generated/osp_system_structure_schema.hpp
 Embedding: /home/tamago/workspace/libcosim/data/xsd/OspSystemStructure.xsd -> /home/tamago/workspace/libcosim/build/generated/osp_system_structure_schema.hpp
Scanning dependencies of target cosim
[  4%] Building CXX object src/CMakeFiles/cosim.dir/cosim/algorithm/fixed_step_algorithm.cpp.o
<command-line>: error: "BOOST_ALL_NO_LIB" redefined [-Werror]
<command-line>: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/cosim.dir/build.make:68: src/CMakeFiles/cosim.dir/cosim/algorithm/fixed_step_algorithm.cpp.o] error 1
make[1]: *** [CMakeFiles/Makefile2:242: src/CMakeFiles/cosim.dir/all] error 2
make: *** [Makefile:141: all] error 2

enviroment