Add Example Dockerfile #4709
Replies: 10 comments 1 reply
-
we have plenty of dockerfiles that build the libraries. |
Beta Was this translation helpful? Give feedback.
-
you can also check the github runner. They correctly build the libraries. |
Beta Was this translation helpful? Give feedback.
-
Finally, OR-Tools is also delivered by homebrew. |
Beta Was this translation helpful? Give feedback.
-
First of all thank you for the work and the answers. I either didn't explain myself correctly or you are pointing me towards something but i am just too overwhelmed to find it. The idea is: a dockerfile not just with the installed or-tools but with a functioning external project based on one of the examples provided. (in case this exists already, can you please comment with a link to the file as i definitely missed it) Background/Rant: |
Beta Was this translation helpful? Give feedback.
-
In java, dotnet, and python, we already support the standard package manager (maven, nuget, pypi). So this only applies in C++. Furthermore, unless you are using windows, the easiest way to try the library in C++ is to use bazel. And we do have examples on how to use them: |
Beta Was this translation helpful? Give feedback.
-
Alright, fair enough. I guess i will switch languages and make another try. Thanks for the quick answers. |
Beta Was this translation helpful? Give feedback.
-
Otherwise like laurent said you have:
|
Beta Was this translation helpful? Give feedback.
-
Most/all flags are automatically carried by the CMake ortools target, how did you try to build and use ortools if it wasn't using the CMake ecosystem and usual workflow (using cmake install then consume it, using ExternalProject (old) or FetchContent (recommended and use by or-tools/cmake_ortools template project)) ? |
Beta Was this translation helpful? Give feedback.
-
did you have the cmd to reproduce it ? 50% chance it may be a missing header (bug on our side)
Can you run
|
Beta Was this translation helpful? Give feedback.
-
I will give c++ another try with Bazel then with docker and let you know. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What language and solver does this apply to?
All
Describe the problem you are trying to solve.
I have a macbook M1Pro and I have been trying to just install the or-tools c++ library for 4 days without any success. There is always something. There is always a mismatch of library or missing definition or missing flag not remotely mentioned in the guide.
I also tried to create it in docker with DebianBullseye to no avail.
Describe the solution you'd like
I was thinking maybe someone can add dockerfile(s), where the library gets installed and any example program is run. This way we can guarantee atleast an environment has no problems and the margin of chaos (that is hardware, OS, external dependencies) are limited or at least highlighted
Additional context
I was thinking just one file per language would help alot
Beta Was this translation helpful? Give feedback.
All reactions