<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">Il giorno 14 nov 2016, alle ore 18:53, Ted Ralphs <<a href="mailto:ted@Lehigh.EDU" class="">ted@Lehigh.EDU</a>> ha scritto:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Pedro,<div class=""><br class=""></div><div class="">Sorry for the delay in responding! Since you indicated off-line that there was no hurry, I took my time :). </div><div class=""><br class=""></div></div></div></blockquote><div><br class=""></div>No problem, I have been busy as well. :)</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">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</div><div class=""><br class=""></div><div class="">libClp.so.1.12.10<br class=""></div><div class="">libOsiClp.so.1.12.10<br class=""></div><div class="">libCgl.so.1.8.9<br class=""></div><div class="">libCoinUtils.so.3.9.15<br class=""></div><div class=""><br class=""></div></div></div></blockquote><div><br class=""></div><div>I got them. These are installed (in /usr/local/) by the coinmp package:</div><div><br class=""></div><div><pre style="word-wrap: break-word; white-space: pre-wrap;" class="">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
</pre><div class=""><br class=""></div></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class="">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.</div><div class=""><br class=""></div><div class="">In any case, the easiest way to get SYMPHONY to link to an existing installation is to use</div><div class=""><br class=""></div><div class="">--with-coin-instdir=/usr/local</div><div class=""><br class=""></div><div class="">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:</div><div class=""><br class=""></div><div class="">--with-coinutils-incdir=${LOCA<wbr class="">LBASE}/include/coin \<br class="">--with-coinutils-lib="-L${LOCA<wbr class="">LBASE}/lib -lCoinUtils"<br class=""></div><div class=""><br class=""></div><div class="">It need to entire link line, including the library name to link properly that way. </div><div class=""><br class=""></div><div class="">You shouldn't need to provide the --with-lp-solver argument, as it defaults to clp, but if you want, you can do</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">--with-lp-solver=clp<br class=""></div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">This is just a key word argument, not a path. I guess this should get you going.</div><div class="gmail_extra"><br class=""></div></div></div></div></blockquote><div><br class=""></div>That looks very similar to what I had. I am currently traveling but I will give it a try when I return home.</div><div><br class=""></div><div>Thanks!</div><div><br class=""></div><div>Pedro.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class="gmail_extra">Cheers,</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">Ted</div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sat, Oct 1, 2016 at 10:55 AM, Pedro Giffuni <span dir="ltr" class=""><<a href="mailto:pfg@freebsd.org" target="_blank" class="">pfg@freebsd.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello guys;<br class="">
<br class="">
I have interest in packaging SYMPHONY for FreeBSD, where CoinMP is already a popular package (and a dependency for OpenOffice).<br class="">
<br class="">
I basically want to build SYMPHONY using the preinstalled coin-or support from the CoinMP package, but "configure" doesn't seem to detect<br class="">
the installation in /usr/local. It generally generates this files:<br class="">
<br class="">
bin/clp<br class="">
bin/symphony<br class="">
include/coin/CbcOrClpParam.cpp<br class="">
include/coin/CbcOrClpParam.hpp<br class="">
include/coin/Cgl012cut.hpp<br class="">
<br class="">
Both clp and the headers clearly conflict (apart from a header with and *.cpp suffix looks suspicious).<br class="">
<br class="">
After checking "configure --help", I tried something like this:<br class="">
<br class="">
--with-coinutils-incdir=${LOCA<wbr class="">LBASE}/include/coin \<br class="">
--with-coinutils-lib="-L${LOCA<wbr class="">LBASE}/lib"<br class="">
<br class="">
which still tries to build clp and fails miserably:<br class="">
<br class="">
..<br class="">
--- clp ---<br class="">
/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 <a href="http://libClpSolver.la" class="">libClpSolver.la</a> <a href="http://libClp.la" class="">libClp.la</a> /usr/local/lib<br class="">
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<br class="">
/usr/bin/ld:/usr/local/lib: file format not recognized; treating as linker script<br class="">
/usr/bin/ld:/usr/local/lib:1: syntax error<br class="">
...<br class="">
<br class="">
I also tried --with-lp-solver but it doesn't take /usr/local/bin/clp<br class="">
as a recognized solver.<br class="">
<br class="">
So .. while the software generally builds and works there is no<br class="">
package joy :(.<br class="">
<br class="">
Regards,<br class="">
<br class="">
Pedro.<br class="">
</blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class="">Dr. Ted Ralphs<br class="">Professor, Lehigh University<br class="">(610) 628-1280<br class="">ted 'at' lehigh 'dot' edu<br class=""><a href="http://coral.ie.lehigh.edu/~ted" target="_blank" class="">coral.ie.lehigh.edu/~ted</a><br class=""></div></div>
</div></div></div>
</div></blockquote></div><br class=""></body></html>