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

How to install or-tools? #3587

Closed
growly opened this issue Dec 6, 2022 · 3 comments
Closed

How to install or-tools? #3587

growly opened this issue Dec 6, 2022 · 3 comments
Assignees
Labels
Doc: Optimization Site Issue related to https://developers.google.com/optimization/ or Documentation in general Duplicate
Milestone

Comments

@growly
Copy link

growly commented Dec 6, 2022

I cannot find usable instructions on how to install or-tools. READMEs and online documentation seem to be out of date.

'make install_cc' does not work.

make: *** No rule to make target 'install_cc'.  Stop.

The CMake build instructions do not work:

cmake -S. -Bbuild
cmake --build build

fail because

-- Found Protobuf: /usr/local/lib/libprotobuf.so;-lpthread (found version "3.18.1") 
-- SCIP_ROOT: 
CMake Error at cmake/FindSCIP.cmake:67 (message):
  SCIP_ROOT: not found

... even though all documentation I've seen suggests that SCIP should now just be included with or-tools.

I found this on both the stable and main branches from a fresh clone today. I downloaded the v9.5 source and attempted it there, same results.

In the v9.5 source I then spied a build_make directory. In there I can issue make install to some effect, and it seems to have used the root extraction directory as the prefix. Is that how you do it?

What version of OR-Tools and what language are you using?
Version: stable/main/v9.5
Language: C++

Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
Any

What operating system (Linux, Windows, ...) and version?
Debian (sid from about 12 months ago)

@growly
Copy link
Author

growly commented Dec 6, 2022

I'm not sure, but this is possibly a duplicate of:

@growly
Copy link
Author

growly commented Dec 6, 2022

I seem to have gotten it to work with make cpp INSTALL_DIR=/usr/local

@lperron
Copy link
Collaborator

lperron commented Dec 6, 2022

As you said. Duplicate.

We are rewriting the docs.

You should add -DBUILD_DEPS=ON when using cmake to build the libraries.
ref: https://github.com/google/or-tools/tree/main/cmake#cmake-options

@lperron lperron closed this as completed Dec 6, 2022
@Mizux Mizux self-assigned this Dec 6, 2022
@Mizux Mizux added Duplicate Doc: Optimization Site Issue related to https://developers.google.com/optimization/ or Documentation in general labels Dec 6, 2022
@Mizux Mizux added this to the v9.6 milestone Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Doc: Optimization Site Issue related to https://developers.google.com/optimization/ or Documentation in general Duplicate
Projects
None yet
Development

No branches or pull requests

3 participants