Skip to content
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

Problem to build stable #597

Open
smith-nekrald opened this issue May 2, 2023 · 2 comments
Open

Problem to build stable #597

smith-nekrald opened this issue May 2, 2023 · 2 comments

Comments

@smith-nekrald
Copy link

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

@tkralphs
Copy link
Member

tkralphs commented May 3, 2023

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.

@svigerske
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants