Skip to content

philsuess/conan-or-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

conan-or-tools

This is a conan recipe to download and install ortools (currently v8.0) from https://github.com/google/or-tools.

My ultimate goal is to build ortools without any dependencies, but pull them from conan-center.

I have not been able to build it this way without dependencies (cmake.definitions['BUILD_DEPS'] = "OFF") and supplying the necessary dependencies via conan packages. Something always fails... :(

At the moment (see branch re. abseil), it is the requirement to compile all libs using c++17. My machine quits with clp for this. I've had enough... I am going to straight CLP interface without or-tools. Goodbye or-tools. Anybody from google reading this: please come over to our side where we rely on pre-built binaries. If everybody plays nice, everything actually works out nicely. Really.

Still, if anybody else is out there: Any help is (still) VERY welcome!

conan workflow

  1. conan install . -if debug -pr vs2019_debug
  2. conan source . (or, alternatively: cd or-tools; git clean -fd; cd ..)
  3. conan build . --source-folder=or-tools --build-folder=debug
  4. conan package . --source-folder=or-tools --build-folder=debug --package-folder=debug_package
  5. conan export-pkg . user/testing --package-folder=debug/package -pr vs2019_debug --force
  6. conan test test_package ortools/8.0@user/testing -pr vs2019_debug

Known issues

  • scip: It doesn't find zlib if BUILD_ZLIB=OFF. scip has its own CMakeLists.txt where CMAKE_MODULE_PATH is set and thus the FindZLIB.cmake generated by conan is never found. --> turning scip off for now
  • protobuf: ortools requires 3.13.0, but conan center only has 3.11.4

CHANGELOG

Fixed

  • zlib from conan-center: works
  • gflags from conan-center: works
  • glog from conan-center: works
  • abseil from conan-center:

Added

  • merger of my previos conanfile.py and the one provided by @Talkless here
  • all cmake build options for or-tools as options for conan (all untested)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published