-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet with CPLEX: not linked or license not found #3475
Comments
Can you check it does not uses the package from nuget ? |
Thanks for the reply. I'm using the nuget packages generated from the compilation process. PS: a friend of mine reproduced steps 4. and 5. in his computer, with the .nupkgs generated in my local, and it worked with CPLEX 12.7! |
@jjaneto in your cplex install dir what is the name of the " ps: note: PR welcome to have a more versatile cplex find package or-tools/cmake/FindCPLEX.cmake Lines 76 to 87 in e8a854d
|
@Mizux the name of the lib is I also checked for any error involving environment variables, but could not find evidences for it. I reproduced again the steps of the original post, changing the |
Make is deprecated. Followup |
What version of OR-Tools and what language are you using?
Version: stable/v9.4
Language: C#
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
CPLEX 20.10
What operating system (Linux, Windows, ...) and version?
Windows 11
What did you do?
Right after cloning the repository:
Makefile.cpp.mk
addingUSE_CPLEX ?= ON
and providing the-DCPLEX_ROOT
option in thethird_party
target recipe.tools\make third_party
tools\make dotnet
.\or-tools\build_make\dotnet\packages
into my project.What did you expect to see
Execute with success the simple MIP example.
What did you see instead?
An error. The console outputs:
Anything else we should know about your project / environment
I thought that this could be an error involving not supported CPLEX versions. After seeing this answer, I changed the FindCPLEX.cmake file right after the
elseif(MSVC)
line to:set_target_properties(CPLEX::CPLEX PROPERTIES IMPORTED_LOCATION "${CPLEX_ROOT}/cplex/lib/x64_windows_msvc14/stat_mda/cplex2010.lib")
which was somehow
cplex12100.lib
before.The text was updated successfully, but these errors were encountered: