[Symphony] Issues detecting exiting Coin-OR installations.

Pedro Giffuni pfg at FreeBSD.org
Mon Nov 14 13:51:20 EST 2016


> Il giorno 14 nov 2016, alle ore 18:53, Ted Ralphs <ted at Lehigh.EDU> ha scritto:
> 
> Hi Pedro,
> 
> Sorry for the delay in responding! Since you indicated off-line that there was no hurry, I took my time :). 
> 

No problem, I have been busy as well. :)

> What SYMPHONY is looking for in order to link to an existing installation are libraries, not binaries. In order for SYMPHONY to detect the presence of and utilize an existing installation, you would need to have libraries like
> 
> libClp.so.1.12.10
> libOsiClp.so.1.12.10
> libCgl.so.1.8.9
> libCoinUtils.so.3.9.15
> 

I got them. These are installed (in /usr/local/) by the coinmp package:

lib/libCbc.so
lib/libCbc.so.3
lib/libCbc.so.3.9.6
lib/libCbcSolver.so
lib/libCbcSolver.so.3
lib/libCbcSolver.so.3.9.6
lib/libCgl.so
lib/libCgl.so.1
lib/libCgl.so.1.9.7
lib/libClp.so
lib/libClp.so.1
lib/libClp.so.1.13.8
lib/libClpSolver.so
lib/libClpSolver.so.1
lib/libClpSolver.so.1.13.8
lib/libCoinMP.so
lib/libCoinMP.so.1
lib/libCoinMP.so.1.8.3
lib/libCoinUtils.so
lib/libCoinUtils.so.3
lib/libCoinUtils.so.3.10.10
lib/libOsi.so
lib/libOsi.so.1
lib/libOsi.so.1.12.6
lib/libOsiCbc.so
lib/libOsiCbc.so.3
lib/libOsiCbc.so.3.9.6
lib/libOsiClp.so
lib/libOsiClp.so.1
lib/libOsiClp.so.1.13.8
lib/libOsiCommonTests.so
lib/libOsiCommonTests.so.1
lib/libOsiCommonTests.so.1.12.6


> I'm assuming these don't exist from what you said. Can you verify? Actually, I think these are the libraries used by OpenOffice as well, as far as I know, so they should exist somewhere.
> 
> In any case, the easiest way to get SYMPHONY to link to an existing installation is to use
> 
> --with-coin-instdir=/usr/local
> 
> It will then automatically pick up existing libraries if they are named as expected, which they should be. To get SYMPHONY to properly link to each individual library using the arguments --with-xxx-incdir and --with-xxx-lib, you need to do something more like:
> 
> --with-coinutils-incdir=${LOCALBASE}/include/coin \
> --with-coinutils-lib="-L${LOCALBASE}/lib -lCoinUtils"
> 
> It need to entire link line, including the library name to link properly that way. 
> 
> You shouldn't need to provide the --with-lp-solver argument, as it defaults to clp, but if you want, you can do
> 
> --with-lp-solver=clp
> 
> This is just a key word argument, not a path. I guess this should get you going.
> 

That looks very similar to what I had. I am currently traveling but I will give it a try when I return home.

Thanks!

Pedro.

> Cheers,
> 
> Ted
> 
> On Sat, Oct 1, 2016 at 10:55 AM, Pedro Giffuni <pfg at freebsd.org <mailto:pfg at freebsd.org>> wrote:
> Hello guys;
> 
> I have interest in packaging SYMPHONY for FreeBSD, where CoinMP is already a popular package (and a dependency for OpenOffice).
> 
> I basically want to build SYMPHONY using the preinstalled coin-or support from the CoinMP package, but "configure" doesn't seem to detect
> the installation in /usr/local. It generally generates this files:
> 
> bin/clp
> bin/symphony
> include/coin/CbcOrClpParam.cpp
> include/coin/CbcOrClpParam.hpp
> include/coin/Cgl012cut.hpp
> 
> Both clp and the headers clearly conflict (apart from a header with and *.cpp suffix looks suspicious).
> 
> After checking "configure --help", I tried something like this:
> 
> --with-coinutils-incdir=${LOCALBASE}/include/coin \
> --with-coinutils-lib="-L${LOCALBASE}/lib"
> 
> which still tries to build clp and fails miserably:
> 
> ..
> --- clp ---
> /bin/sh ../../libtool --tag=CXX --mode=link c++   -O2 -pipe -march=core2 -fstack-protector -fno-strict-aliasing -ffast-math   -DCLP_BUILD -fstack-protector -o clp  ClpMain.o libClpSolver.la libClp.la /usr/local/lib
> c++ -O2 -pipe -march=core2 -fstack-protector -fno-strict-aliasing -ffast-math -DCLP_BUILD -fstack-protector -o .libs/clp ClpMain.o /usr/local/lib  ./.libs/libClpSolver.so ./.libs/libClp.so -Wl,--rpath -Wl,/usr/local/lib
> /usr/bin/ld:/usr/local/lib: file format not recognized; treating as linker script
> /usr/bin/ld:/usr/local/lib:1: syntax error
> ...
> 
> I also tried --with-lp-solver but it doesn't take /usr/local/bin/clp
> as a recognized solver.
> 
> So .. while the software generally builds and works there is no
> package joy :(.
> 
> Regards,
> 
> Pedro.
> 
> 
> 
> -- 
> Dr. Ted Ralphs
> Professor, Lehigh University
> (610) 628-1280
> ted 'at' lehigh 'dot' edu
> coral.ie.lehigh.edu/~ted <http://coral.ie.lehigh.edu/~ted>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/symphony/attachments/20161114/4c895934/attachment-0001.html>


More information about the Symphony mailing list