CyLP icon indicating copy to clipboard operation
CyLP copied to clipboard

Cbc binary version to use?

Open HuangRicky opened this issue 2 years ago • 5 comments

I have a simple question: in CyLP documentation, it says: Cbc. The version should be 2.10 (recommended)

is that still the case or we can use 2.10.8 binary to build CyLP? thank you.

HuangRicky avatar Sep 21 '22 12:09 HuangRicky

Any release in the 2.10 stable series should work fine (modulo possible bugs in earlier releases). So yes, 2.10.8 should be OK.

tkralphs avatar Sep 21 '22 15:09 tkralphs

When I downloaed Cbc github release 2.10.8 windows x86_64 msvc 16 md, I got this Static vs MD Dynamic mismatch. seems MSVC lib is dynamic?

error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in IClpPrimalColumnPivotBase.obj Creating library build\temp.win-amd64-cpython-311\Release\cylp\cpp\CyCl

HuangRicky avatar Oct 02 '22 17:10 HuangRicky

FYI: i'm using VS 2019 built tools

HuangRicky avatar Oct 03 '22 12:10 HuangRicky

Good news, i found adding '/MT' to the compile args works:

else: # Assuming Windows extra_link_args = [] extra_compile_args += ['/EHsc', '/MT']

does it mean that the release file msvc v16 - md is actually MT instead of MD?

HuangRicky avatar Oct 03 '22 13:10 HuangRicky

Any release in the 2.10 stable series should work fine (modulo possible bugs in earlier releases). So yes, 2.10.8 should be OK.

Thank you Ted, please see my reply above. Seems CBC's release is MT instead of MD? I have to change CyLP's setup.py to /MT to make it work.

The root cause is that Python 3.11 is released (rc2 now). Would you mind compile and upload to Pypi website the latest wheels for Windows and Linux? Thank you!

HuangRicky avatar Oct 03 '22 15:10 HuangRicky