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 install . -if debug -pr vs2019_debug
- conan source . (or, alternatively: cd or-tools; git clean -fd; cd ..)
- conan build . --source-folder=or-tools --build-folder=debug
- conan package . --source-folder=or-tools --build-folder=debug --package-folder=debug_package
- conan export-pkg . user/testing --package-folder=debug/package -pr vs2019_debug --force
- conan test test_package ortools/8.0@user/testing -pr vs2019_debug
- 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
- zlib from conan-center: works
- gflags from conan-center: works
- glog from conan-center: works
- abseil from conan-center:
- 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)