Package Details: or-tools 9.9-2

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.099182
First Submitted: 2018-06-14 21:35 (UTC)
Last Updated: 2024-04-02 20:12 (UTC)

Dependencies (9)

Required by (1)

Sources (1)

Latest Comments

1 2 Next › Last »

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

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

side note: Since Release v8.1 ortools do not depends on gflags nor google-glog ref: https://github.com/google/or-tools/releases/tag/v8.1

peets commented on 2021-03-07 21:00 (UTC)

Build failed for me on 879bed8f because MAKEFLAGS is not defined in my environment. Here's a patch that sidesteps that: https://pastebin.com/J7LG1a5J

akstrfn commented on 2020-01-28 22:55 (UTC) (edited on 2020-01-28 22:55 (UTC) by akstrfn)

thx I'll try to update the package this weekend :)