Building C++ or-tools library with CPLEX integration

447 views
Skip to first unread message

fbahr

unread,
Apr 19, 2022, 9:19:38 AM4/19/22
to or-tools-discuss
I'm trying to build the latest stable release (v9.3) with CPLEX integration (on a Manjaro Linux machine).

When I adapt Makefile.cpp.mk so that "USE_CPLEX ?= ON" and provide the location of my CPLEX Studio installation via UNIX_CPLEX_DIR, "make third_party" reports:

"""
-- CPLEX support: ON
...
-- CPLEX_ROOT: /opt/ibm/ILOG/CPLEX_Studio221
"""

While make proceeds (sort of) successfully, it also reports:

"""
IMPORTED_LOCATION not set for imported target "CPLEX::CPLEX" configuration
  "Release".
"""

And in dependencies/CMakeFiles/ortools.dir/build.make I find the line: "lib/libortools.so.9.3.10497: CPLEX::CPLEX-NOTFOUND"

...which is where a subsequent run of "make cc" ultimately fails.

FindCPLEX.cmake looks for libcplex.a at "${CPLEX_ROOT}/cplex/lib/x86-64_linux/static_pic/libcplex.a" ...which is exactly where it is to be found.

Any ideas, hints? Thanks in advance, Florian


fbahr

unread,
Apr 20, 2022, 4:27:54 AM4/20/22
to or-tools-discuss
I've just noticed that a similar/the same issue has been reported here https://github.com/google/or-tools/issues/3252 yesterday.
Reply all
Reply to author
Forward
0 new messages