Package Details: or-tools 9.11-1

Git Clone URL: https://aur.archlinux.org/or-tools.git (read-only, click to copy)
Package Base: or-tools
Description: Google's Operations Research tools.
Upstream URL: https://github.com/google/or-tools
Licenses: Apache
Submitter: akstrfn
Maintainer: akstrfn
Last Packager: akstrfn
Votes: 4
Popularity: 0.000750
First Submitted: 2018-06-14 21:35 (UTC)
Last Updated: 2024-12-11 11:40 (UTC)

Dependencies (9)

Required by (1)

Sources (1)

Latest Comments

1 2 3 Next › Last »

dstego commented on 2024-08-24 15:25 (UTC)

Updated abseil-cpp introduced some breaking changes regarding VLOG_IS_ON. If you are getting errors in building you needs to edit the PKGBUILD and add

prepare() {
  cd "$srcdir/or-tools-$pkgver"
  sed -i '23i#include "absl/log/vlog_is_on.h"' ortools/base/logging.h
}

Alad commented on 2024-08-10 14:47 (UTC) (edited on 2024-08-10 14:50 (UTC) by Alad)

And a new failure with gcc 14.2.1 and abseil-cpp 20240722.0-1

[ 39%] Building CXX object ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/search.cc.o
/home/user/.cache/aurutils/sync/or-tools/src/or-tools-9.10/ortools/constraint_solver/search.cc: In member function ‘virtual bool operations_research::ObjectiveMonitor::AtSolution()’:
/home/user/.cache/aurutils/sync/or-tools/src/or-tools-9.10/ortools/constraint_solver/search.cc:2990:9: error: ‘VLOG_IS_ON’ was not declared in this scope; did you mean ‘VLOG_FIRST_N’?
 2990 |     if (VLOG_IS_ON(2) && !ObjectiveVar(i)->Bound()) {
      |         ^~~~~~~~~~
      |         VLOG_FIRST_N
/home/user/.cache/aurutils/sync/or-tools/src/or-tools-9.10/ortools/constraint_solver/search.cc: In member function ‘operations_research::RegularLimit* operations_research::RegularLimit::MakeIdenticalClone() const’:
/home/user/.cache/aurutils/sync/or-tools/src/or-tools-9.10/ortools/constraint_solver/search.cc:4392:22: warning: ‘operations_research::RegularLimit* operations_research::Solver::MakeLimit(int64_t, int64_t, int64_t, int64_t, bool, bool)’ is deprecated: Use other MakeLimit() versions [-Wdeprecated-declarations]
 4392 |   return s->MakeLimit(wall_time(), branches_, failures_, solutions_,
      |          ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 4393 |                       smart_time_check_);
      |                       ~~~~~~~~~~~~~~~~~~
In file included from /home/user/.cache/aurutils/sync/or-tools/src/or-tools-9.10/ortools/constraint_solver/search.cc:41:
/home/user/.cache/aurutils/sync/or-tools/src/or-tools-9.10/ortools/constraint_solver/constraint_solver.h:2379:38: note: declared here
 2379 |   ABSL_MUST_USE_RESULT RegularLimit* MakeLimit(int64_t time, int64_t branches,
      |                                      ^~~~~~~~~
[ 39%] Building CXX object ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/table.cc.o
make[2]: *** [ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/build.make:608: ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/search.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1347: ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Maybe it makes sense to bundle the dependencies?

Alad commented on 2024-07-05 11:51 (UTC)

Doesn't build with gcc 14.1.1

[ 14%] Building CXX object CMakeFiles/math_opt_proto.dir/ortools/math_opt/infeasible_subsystem.pb.cc.o
/build/or-tools/src/or-tools-9.9/ortools/base/file.cc:243:8: error: ‘void file::{anonymous}::NoOpErrorCollector::AddError(int, int, const std::string&)’ marked ‘override’, but does not override
  243 |   void AddError(int line, int column, const std::string& message) override {}
      |        ^~~~~~~~
/build/or-tools/src/or-tools-9.9/ortools/base/file.cc: In function ‘bool file::ReadFileToProto(absl::lts_20240116::string_view, google::protobuf::Message*)’:
/build/or-tools/src/or-tools-9.9/ortools/base/file.cc:260:22: error: cannot declare variable ‘error_collector’ to be of abstract type ‘file::{anonymous}::NoOpErrorCollector’
  260 |   NoOpErrorCollector error_collector;
      |                      ^~~~~~~~~~~~~~~
/build/or-tools/src/or-tools-9.9/ortools/base/file.cc:240:7: note:   because the following virtual functions are pure within ‘file::{anonymous}::NoOpErrorCollector’:
  240 | class NoOpErrorCollector : public google::protobuf::io::ErrorCollector {
      |       ^~~~~~~~~~~~~~~~~~
In file included from /build/or-tools/src/or-tools-9.9/ortools/base/file.cc:39:
/usr/include/google/protobuf/io/tokenizer.h:57:16: note:     ‘virtual void google::protobuf::io::ErrorCollector::RecordError(int, google::protobuf::io::ColumnNumber, absl::lts_20240116::string_view)’
   57 |   virtual void RecordError(int line, ColumnNumber column,
      |                ^~~~~~~~~~~
[ 14%] Building CXX object ortools/linear_solver/proto_solver/CMakeFiles/ortools_linear_solver_proto_solver.dir/gurobi_proto_solver.cc.o
make[2]: *** [ortools/base/CMakeFiles/ortools_base.dir/build.make:118: ortools/base/CMakeFiles/ortools_base.dir/file.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1251: ortools/base/CMakeFiles/ortools_base.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

juanmah commented on 2024-04-02 06:41 (UTC) (edited on 2024-04-02 06:42 (UTC) by juanmah)

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR
  GTEST_MAIN_LIBRARY)

I didn't have extra/gtest installed.

After installing it, it compiled successfully.

mizux commented on 2023-12-21 14:16 (UTC) (edited on 2023-12-21 14:16 (UTC) by mizux)

for re2 only the pkgconfig is installed
ref: https://archlinux.org/packages/extra/x86_64/re2/ so we have a custom FindRe2.cmake to find it
https://github.com/google/or-tools/blob/main/cmake/Findre2.cmake you may try to add it in your CMAKE_PREFIX_PATH in order to find re2
On my way to debug it...

Alad commented on 2023-12-21 13:10 (UTC) (edited on 2023-12-21 18:51 (UTC) by Alad)

I'm trying to use or-tools in a CMake project with

find_package(ortools CONFIG REQUIRED)

but I get the error

/usr/lib/cmake/ortools/ortoolsTargets.cmake:85: error: The link interface of target "ortools::ortools" contains: PkgConfig::re2 but the target was not found.  
Possible reasons include: 
* There is a typo in the target name. 
* A find_package call is missing for an IMPORTED target. 
* An ALIAS target is missing. /usr/lib/cmake/ortools/ortoolsConfig.cmake:98 (include) CMakeLists.txt:24 (find_package)

Any idea what might be going on? re2 is installed.

edit: I had to add the following lines before find_package(ortools CONFIG REQUIRED):

find_package(PkgConfig REQUIRED)
pkg_check_modules(RE2 REQUIRED IMPORTED_TARGET re2)
pkg_check_modules(CBC REQUIRED IMPORTED_TARGET cbc)

akstrfn commented on 2022-10-03 10:32 (UTC)

Hi, the package is building in clean chroot and Eigen is specified as dependency so likely you are not building the package with all dependencies.

vmaffione commented on 2022-10-03 10:23 (UTC)

Hello, I keep getting this

[...]
-- CPLEX support: OFF
-- XPRESS support: OFF
-- Found long size: 8
-- Found long long size: 8
-- Found int64_t size: 8
-- Found unsigned long size: 8
-- Found unsigned long long size: 8
-- Found uint64_t size: 8
-- Found int * size: 8
CMake Error at cmake/deps.cmake:112 (message):
  Target Eigen3::Eigen not available.
Call Stack (most recent call first):
  CMakeLists.txt:304 (include)


-- Configuring incomplete, errors occurred!
See also "/home/vmaffione/.cache/pacaur/or-tools/src/or-tools-9.4/build/CMakeFiles/CMakeOutput.log".
==> ERROR: A failure occurred in prepare().
    Aborting...
:: failed to verify integrity or prepare or-tools package

akstrfn commented on 2021-04-01 11:24 (UTC)

Thanks for the tips!

mizux commented on 2021-03-31 13:15 (UTC)

since you are using -DBUILD_EXAMPLES=OFF, then -DBUILD_CXX_EXAMPLES=OFF is not needed ref: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=or-tools#n28 see: https://github.com/google/or-tools/blob/fa84bc05e72641dddfbb98164d81b8bc9bef6ea5/CMakeLists.txt#L129