[Symphony] Issues detecting exiting Coin-OR installations.

Ted Ralphs ted at lehigh.edu
Mon Nov 14 12:53:30 EST 2016


Hi Pedro,

Sorry for the delay in responding! Since you indicated off-line that there
was no hurry, I took my time :).

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'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.

Cheers,

Ted

On Sat, Oct 1, 2016 at 10:55 AM, Pedro Giffuni <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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/symphony/attachments/20161114/11d3167f/attachment.html>


More information about the Symphony mailing list