Closed Zhangyl09 closed 2 months ago
The setting in UserConfig.cmake
does not look correct, as it indicates "environment" variables. Either you have to set the paths to the following environment variables
set(CPLEX_LIB_DIR "$ENV{CPLEX_LIB_DIR}")
set(CPLEX_INC_DIR "$ENV{CPLEX_INC_DIR}")
or set the absolute paths as follows:
set(CPLEX_LIB_DIR "/Applications/CPLEX_Studio2211/cplex/lib/arm64_osx/static_pic")
set(CPLEX_INC_DIR "/Applications/CPLEX_Studio2211/cplex/include/ilcplex")
It worked. Thanks for your help!
Hello,
I’m encountering an issue using DSP through DSPopt.jl on my Mac (Apple M1 Pro, macOS Sonoma 14.5). Despite setting the CPLEX path in UserConfig.cmake during DSP compilation, DSP can’t locate CPLEX solver (as shown in the figure below). I was able to use CPLEX with Python without any issues, and I’ve tried running Julia under Rosetta to enable Intel-based packages, but the problem persists.
Here is the building setting of my mac:
The
UserConfig.cmake
content:And, the output from cmake:
Your assistance would be greatly appreciated.