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

Can not build on redHat 7 #1

Closed
Program-Bear opened this issue Aug 5, 2021 · 2 comments
Closed

Can not build on redHat 7 #1

Program-Bear opened this issue Aug 5, 2021 · 2 comments

Comments

@Program-Bear
Copy link

I am trying to build CLP on Linux server(redHat 7), but I encountered CMake(version: 3.21.1) build failure. The debug messages refer it could not find Boost (missing iostreams, program_options filesystem system). But I have libboost-iostreams.a, libboost-program_options.a, libboost-filesystem.a and libboost-system.a(all are in version 1.59.0) under /usr/include/lib/, I wonder why the Cmake program could not find them.
I am looking forward to a solution, thanks.

@kirkrodrigues
Copy link
Member

Hey @Program-Bear,

First, could you clear the cmake cache in the build folder (rm CMakeCache.txt) and then try again to see if you get the same error? (After installing new libraries, etc., sometimes the cmake cache needs to be forcibly refreshed.)

Did you install boost from source or from a RHEL package? When I install from source, cmake seems to be able to locate the Boost packages.

One thing you could try is to add the directory containing Boost's includes and libs to CMakeLists.txt:49. Assuming that's /usr/include for you, the line should be:
find_package(Boost REQUIRED iostreams program_options filesystem system PATHS /usr/include)
Then clear the cmake cache and retry.

@Program-Bear
Copy link
Author

Thanks for your response, I have solved this problem with a new version of Boost(at least Boost 1.76)

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

2 participants