Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error : "BOOST_ALL_NO_LIB" redefined #717

Open
tamago117 opened this issue Sep 24, 2022 · 0 comments
Open

build error : "BOOST_ALL_NO_LIB" redefined #717

tamago117 opened this issue Sep 24, 2022 · 0 comments

Comments

@tamago117
Copy link

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

  • ubuntu 20.04
  • gcc version 9.4.0
  • cmake version 3.16.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant