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

System wide boost is preferred over Conan installed boost #682

Closed
THEvang opened this issue Feb 16, 2022 · 1 comment · Fixed by #747
Closed

System wide boost is preferred over Conan installed boost #682

THEvang opened this issue Feb 16, 2022 · 1 comment · Fixed by #747
Labels
bug Something isn't working

Comments

@THEvang
Copy link
Member

THEvang commented Feb 16, 2022

If boost is installed on your system libcosim will use the system wide installation rather than the conan installed version even if LIBCOSIM_USE_CONAN=True is defined. I had to remove the system wide installation in order to build libcosim.

CNake configuration log is attached

-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Current libcosim version: 0.8.3

-- Conan: Using cmake global configuration
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Current conanbuildinfo.cmake directory: /home/thomas/Repositories/libcosim/build
-- Conan: Compiler GCC>=5, checking major version 9.3
-- Conan: Checking correct version: 9.3
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package):
Could not find a package configuration file provided by "boost_fiber"
(requested version 1.71.0) with any of the following names:

boost_fiberConfig.cmake
boost_fiber-config.cmake

Add the installation prefix of "boost_fiber" to CMAKE_PREFIX_PATH or set
"boost_fiber_DIR" to a directory containing one of the above files. If
"boost_fiber" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component)
/usr/share/cmake-3.16/Modules/FindBoost.cmake:443 (find_package)
CMakeLists.txt:110 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/thomas/Repositories/libcosim/build/CMakeFiles/CMakeOutput.log".

@THEvang THEvang added the bug Something isn't working label Feb 16, 2022
@kyllingstad
Copy link
Member

This is no longer a problem with Conan 2 (see #747) because it generates package configuration files that will take precedence over “find scripts”.

@kyllingstad kyllingstad linked a pull request Nov 21, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants