Cbc icon indicating copy to clipboard operation
Cbc copied to clipboard

Problem to build stable

Open smith-nekrald opened this issue 2 years ago • 2 comments

Build problem in stable branch 2.10. The code in master compiles successfully.

 g++ -DHAVE_CONFIG_H -I. -I../../../Cbc/src -I../src -I/usr/local/include/coin-or -I/usr/local/include/coin-or/mumps -I/usr/local/include/coin-or -I/usr/local/include/coin-or/asl -I/usr/include/x86_64-linux-gnu -I/usr/local/include/coin-or -I/usr/local/include/coin-or/mumps -I/usr/local/include/coin-or -I/usr/local/include/coin-or/asl -I/usr/include/x86_64-linux-gnu -I/usr/local/include/coin-or/asl -DCOIN_NO_CLP_MESSAGE -DUSE_CBCCONFIG -O3 -pipe -DNDEBUG -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long -DCBC_BUILD -MT CbcBranchCut.lo -MD -MP -MF .deps/CbcBranchCut.Tpo -c ../../../Cbc/src/CbcBranchCut.cpp  -fPIC -DPIC -o .libs/CbcBranchCut.o
../../../Cbc/src/CbcBranchDefaultDecision.cpp:18:10: fatal error: CoinTypes.hpp: No such file or directory
   18 | #include "CoinTypes.hpp"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:996: CbcBranchDefaultDecision.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/media/nekrald/smith-ext4/online/sea_project/code/system/lib/Cbc/build/Cbc/src'
make[2]: *** [Makefile:760: all] Error 2
make[2]: Leaving directory '/media/nekrald/smith-ext4/online/sea_project/code/system/lib/Cbc/build/Cbc/src'
make[1]: *** [Makefile:606: all-recursive] Error 1
make[1]: Leaving directory '/media/nekrald/smith-ext4/online/sea_project/code/system/lib/Cbc/build/Cbc'
make: *** [Makefile:324: all-recursive] Error 1

smith-nekrald avatar May 02 '23 22:05 smith-nekrald

This is almost certainly because of coin-or/CoinUtils#211. CoinUtils needs to be installed before you build Cbc. This will likely go much smoother if you use coinbrew.

tkralphs avatar May 03 '23 00:05 tkralphs

In particular, a compatible version of CoinUtils needs to be installed. This looks like the development version (master) of CoinUtils is installed, which doesn't work for Cbc 2.11.

svigerske avatar May 03 '23 05:05 svigerske