Comments (11)
https://github.com/google/or-tools/blob/main/tools/docker/Makefile do support arm64 qemu docker build so on my way to generate a arm64 debian-11 cpp archive... (should take ~4/5h to build)
from or-tools.
may I have the error log, since we are building for manylinux arm64, it should work on debian arm64 image.
Also since we don't provide any ruby gem support which language do you need ? only the C++ version ?
from or-tools.
may I have the error log, since we are building for manylinux arm64, it should work on debian arm64 image.
Error log for cmake -S. -Bbuild
42.47 -- Configuring done
42.97 CMake Error at cmake/cpp.cmake:355 (target_link_libraries):
42.97 Target "ortools" links to:
42.97
42.97 absl::absl_check
42.97
42.97 but the target was not found. Possible reasons include:
42.97
42.97 * There is a typo in the target name.
42.97 * A find_package call is missing for an IMPORTED target.
42.97 * An ALIAS target is missing.
42.97
42.97 Call Stack (most recent call first):
42.97 CMakeLists.txt:412 (include)
42.97
42.97
42.97 CMake Error at ortools/graph/CMakeLists.txt:39 (target_link_libraries):
42.97 Target "ortools_graph" links to:
42.97
42.97 Coin::Cbc
42.97
42.97 but the target was not found. Possible reasons include:
42.97
42.97 * There is a typo in the target name.
42.97 * A find_package call is missing for an IMPORTED target.
42.97 * An ALIAS target is missing.
42.97
42.97
42.97
42.97 CMake Error at ortools/gurobi/CMakeLists.txt:26 (target_link_libraries):
42.97 Target "ortools_gurobi" links to:
42.97
42.97 Coin::Cbc
42.97
42.97 but the target was not found. Possible reasons include:
42.97
42.97 * There is a typo in the target name.
42.97 * A find_package call is missing for an IMPORTED target.
42.97 * An ALIAS target is missing.
42.97
42.97
42.97
42.97 CMake Error at ortools/linear_solver/CMakeLists.txt:34 (target_link_libraries):
42.97 Target "ortools_linear_solver" links to:
42.97
42.97 Coin::Cbc
42.97
42.97 but the target was not found. Possible reasons include:
42.97
42.97 * There is a typo in the target name.
42.97 * A find_package call is missing for an IMPORTED target.
42.97 * An ALIAS target is missing.
42.97
42.97
42.97
42.97 CMake Error at ortools/sat/CMakeLists.txt:31 (target_link_libraries):
42.97 Target "ortools_sat" links to:
42.97
42.97 Coin::Cbc
42.97
42.97 but the target was not found. Possible reasons include:
42.97
42.97 * There is a typo in the target name.
42.97 * A find_package call is missing for an IMPORTED target.
42.97 * An ALIAS target is missing.
42.97
42.97
42.97
42.97 -- Generating done
42.99 CMake Generate step failed. Build files cannot be regenerated correctly.
I installed these deps:
apt-get install -y --no-install-recommends cmake/bullseye-backports libabsl-dev libprotobuf-dev libre2-dev libeigen3-dev coinor-libcoinutils-dev libcliquer1 libgsl25 libopenblas0 libtbb2;
curl -fsSL -o SCIPOptSuite-8.0.4-Linux-arm64.deb https://github.com/scipopt/scip/releases/download/v804/SCIPOptSuite-8.0.4-Linux-arm64.deb; \
dpkg -i SCIPOptSuite-8.0.4-Linux-arm64.deb;
Also since we don't provide any ruby gem support which language do you need ? only the C++ version ?
Yep, the gem doesn't find a package for arm64 and tries to use https://github.com/google/or-tools/releases/download/v9.6/or-tools_amd64_debian-11_cpp_v9.6.2534.tar.gz which doesn't work, so I think the cpp package is the one we need
from or-tools.
coinutils is just a deps of the CBC and CLP solver....
see: https://raw.githubusercontent.com/google/or-tools/main/cmake/docs/cmake.svg
Otherwise you can use -DBUILD_DEPS=ON
so or-tools will FetchContent() deps...
note: can still not use https://cmake.org/cmake/help/latest/module/FetchContent.html#variable:FETCHCONTENT_TRY_FIND_PACKAGE_MODE too early (CMake 3.24...)
from or-tools.
coinutils is just a deps of the CBC and CLP solver.... see: https://raw.githubusercontent.com/google/or-tools/main/cmake/docs/cmake.svg
thanks for the pointer! 🙇 the error message is different from the ones I was getting for the other missing deps, it totally fooled me.
I'll try and see where this brings me 🤞
Otherwise you can use
-DBUILD_DEPS=ON
so or-tools will FetchContent() deps... note: can still not use https://cmake.org/cmake/help/latest/module/FetchContent.html#variable:FETCHCONTENT_TRY_FIND_PACKAGE_MODE too early (CMake 3.24...)
Yes, that works (it also takes too much time for my use case) but then I can't seem to find a way to make the ruby gem use it (not your problem, I know, telling you just FYI)
from or-tools.
coinutils is just a deps of the CBC and CLP solver.... see: https://raw.githubusercontent.com/google/or-tools/main/cmake/docs/cmake.svg
Sadly seems a dead-end: I installed deb packages for coinor-libcoinutils-dev
and coinor-libcoinutils3v5
but the errors didn't change a bit.
What's baffling me is that the errors talk about missing targets instead of missing deps 🧐
from or-tools.
What I don't understand is if using -DBUILD_DEPS=OFF
(default) you should have trigger all find_package( REQUIRED)
below...
https://github.com/google/or-tools/blob/main/cmake/deps.cmake
You can also start testing without the coin-or (CBC, CLP) support (you'll still have glop, cp-sat...)
using -DUSE_COINOR=OFF
.
Also did you take a look at this community repo: https://github.com/or-tools/ruby_or-tools
from or-tools.
I was able to build my own cpp .tar.gz archive for arm64 on debian11, so now my problem has a workaround.
Would be cool if you provided such archive yourselves so that then people over at the ruby gem repo can update the gem to use it: ankane/or-tools-ruby#54
from or-tools.
in v9.8 release page you have:
- https://github.com/google/or-tools/releases/download/v9.8/or-tools_arm64_debian-11_cpp_v9.8.3296.tar.gz
- https://github.com/google/or-tools/releases/download/v9.8/or-tools_aarch64_AlmaLinux-8.8_cpp_v9.8.3296.tar.gz
from or-tools.
in v9.8 release page you have:
Thank you 🙇
from or-tools.
Thanks @Mizux
from or-tools.
Related Issues (20)
- use or-tools in a project HOT 1
- Solving the max flow problem failed HOT 2
- RuntimeError('Unrecognized new version of ortools (9.8.3296). Expected < 9.8.0. Please open a feature request on cvxpy to enable support for this version.') HOT 1
- how to get current variable value? HOT 2
- Python builds are failing in the current `main` branch HOT 1
- Building from source OR-Tools C++ on Windows generates "Internal compilation error" at build HOT 1
- Linker tools error on ortools_full.lib: "int CbcOrClpEnvironmentIndex" (?CbcOrClpEnvironmentIndex@@3HA) already defined HOT 1
- Bug? Huge variance in CBC solver
- How IntExpr().Var() affect the search process. HOT 1
- what difference between IntVar.setRange and solver.addConstraints HOT 1
- AddNoverlap2D does not work with OnlyEnforceIf HOT 2
- MiniZinc `network_flow_cost` broken HOT 9
- MiniZinc 2.8.2 + CP-SAT 9.8.3296 (bundled): diffn: missing solutions HOT 1
- Version 9.8 fails to build with abseil-20230125.3: error: no matching function for call to 'StrCat' HOT 2
- Support for Gurobi v11 HOT 4
- Inverse constraint crashes presolve HOT 2
- Dynamic Library Support for Windows HOT 3
- 9.8 fails to build with abseil-20240116.0: error: nested name specifier 'LogSeverity::' for declaration does not refer into a class, class template or class template partial specialization HOT 1
- Build error: patch for pybind11_protobuf is outdated HOT 2
- Same problem, different optimal solutions with different solvers? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from or-tools.