-
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
error building from source on windows with CPLEX #3061
Comments
Makefile and CMake based build currently only build a big fat ortools lib. IIRC we try to build everything using or-tools/makefiles/Makefile.win.mk Line 104 in 2cb85b4
Is is possible that xpress is built using /MT thus your bug ?note: i think we use the stat_mda (which could stand for static MD release ?)or-tools/makefiles/Makefile.win.mk Line 122 in 2cb85b4
Do you have this issue if you disable cplex support ? |
I have similar issues without CPLEX (and more third party deps disabled). After build with cmake from master:
I get many errors of the following category
If relevant, I have two projects: core and CLI-App. The core project compiles without error but only when the CLI-App links to the core project, the compilation errors occur in the CLI-App. Don't know what to make of this. Also tried to build with The project works fine when or-tools is built with the make toolchain instead of the cmake build (everything else is the same: flags, or-tools version)... |
Regrouped into Please followup there. |
What version of OR-Tools and what language are you using?
Version: master/v9.2
Language: Python
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
cplex
What operating system (Linux, Windows, ...) and version?
windows 10
What did you do?
Steps to reproduce the behavior:
to build from source.
I succeeded in tools\make third_party, but failed in tools\make python.
Here is the error messages:
ortools.lib(common.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(knapsack_solver_python_wrap.obj 中)
ortools.lib(status.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(knapsack_solver_python_wrap.obj 中)
ortools.lib(strutil.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(knapsack_solver_python_wrap.obj 中)
ortools.lib(int128.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(knapsack_solver_python_wrap.obj 中)
ortools.lib(arenastring.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(knapsack_solver_python_wrap.obj 中)
ortools.lib(repeated_ptr_field.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(knapsack_solver_python_wrap.obj 中)
ortools.lib(repeated_field.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(knapsack_solver_python_wrap.obj 中)
ortools.lib(descriptor.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(knapsack_solver_python_wrap.obj 中)
ortools.lib(generated_message_reflection.cc.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MD_DynamicRelease”(knapsack_solver_python_wrap.obj 中)
It seems that somthing wrong with knapsack solver. Since I do not need knapsack solver, I wonder if I can switch off knapsack solver build?
The text was updated successfully, but these errors were encountered: