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

Documentation on Getting started with C++ is wrong/outdated. #3723

Closed
krishvk opened this issue Mar 29, 2023 · 1 comment
Closed

Documentation on Getting started with C++ is wrong/outdated. #3723

krishvk opened this issue Mar 29, 2023 · 1 comment
Assignees
Labels
Doc: Optimization Site Issue related to https://developers.google.com/optimization/ or Documentation in general
Milestone

Comments

@krishvk
Copy link

krishvk commented Mar 29, 2023

What version of OR-Tools and what language are you using?
Version: or-tools_x86_64_Ubuntu-22.04_cpp_v9.6.2534
Language: C++

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

What operating system (Linux, Windows, ...) and version?
Ubuntu-22.04

What did you do?
Steps to reproduce the behavior:

  1. Downloaded and extracted the or-tools for Ubuntu 22.04 LTS from https://developers.google.com/optimization/install/cpp/binary_linux
  2. Saved the example from https://developers.google.com/optimization/introduction/cpp into a file ../program.cc
  3. Ran make run SOURCE=../program.cc as said on the above page
  4. Error message: make: *** No rule to make target 'examples/program/CMakeLists.txt', needed by 'build'. Stop.

Tried creating a CMakeList.txt file beside the program.cc

> mkdir ../program
> mv ../program.cc ../program
> cp examples/knapsack/CMakeLists.txt ../program
> sed -i 's#knapsack#program#g' ../program/CMakeLists.txt
> make run SOURCE=../program/program.cc

Still the same error

make: *** No rule to make target 'examples/program/CMakeLists.txt', needed by 'build'. Stop.

Moved the directory to the examples directory and ran it again and it worked now

mv ../program examples
make run SOURCE=examples/program/program.cc

I think

  1. The documentation should be updated
  2. The flow should be simpler as before. Should be possible to run remotely

Please do let me know if I am missing anything

@lperron
Copy link
Collaborator

lperron commented Mar 30, 2023

Duplicate of #3558

@lperron lperron marked this as a duplicate of #3558 Mar 30, 2023
@lperron lperron closed this as completed Mar 30, 2023
@Mizux Mizux self-assigned this Mar 30, 2023
@Mizux Mizux added this to the v9.7 milestone Mar 30, 2023
@Mizux Mizux added the Doc: Optimization Site Issue related to https://developers.google.com/optimization/ or Documentation in general label Mar 30, 2023
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
Projects
None yet
Development

No branches or pull requests

3 participants