[Lemon-user] Problem enabling Cbc in configure in Lemon 1.2.1
Alpár Jüttner
alpar at cs.elte.hu
Wed Jul 13 15:48:55 CEST 2011
Hi,
Now, with the latest development version in the hg repository (i.e. with
http://lemon.cs.elte.hu/hg/lemon-main/rev/f9e3f73e17f1 ) you can
configure COIN like this:
$ mkdir build
$ cd build
$ cmake -DCOIN_ROOT_DIR=/coin/install/prefix ..
$ make
[$ make check]
$ make install
Note that the latest CBC releases (e.g. 2.6.4) has a bug that makes
mip_test fail. In addition, it emits a lot of compiler warnings with
LEMON, making it impossible to compile with
-DCMAKE_BUILD_TYPE=Maintainer.
So, I strongly suggest using the latest SVN version of CBC, which
resolves both problems.
Regards,
Alpár
On Wed, 2011-07-13 at 09:57 +0200, Alpár Jüttner wrote:
> Hi,
>
> CLP/CBC config is a bit tricky, because COIN installs its library to a
> non-standard place. If you don't want to copy the COIN libs, you can
> configure LEMON as follows:
>
> First of all, instead of ./configure you should use CMAKE. (./configure
> will be deprecated started with the next release, anyway).
>
> Now assume, that CBC is installed with --prefix=/opt/coin-2.6.2. Then
> the following config will do the trick.
>
> $ mkdir build
> $ cd build
> $ cmake -DCOIN_ROOT_DIR=/opt/coin -LA
> -DCOIN_CBC_LIBRARY=/opt/coin/lib/coin
> -DCOIN_CBC_SOLVER_LIBRARY=/opt/coin/lib/coin
> -DCOIN_COIN_UTILS_LIBRARY=/opt/coin/lib/coin
> -DCOIN_OSI_CBC_LIBRARY=/opt/coin/lib/coin
> -DCOIN_OSI_CLP_LIBRARY=/opt/coin/lib/coin
> -DCOIN_OSI_LIBRARY=/opt/coin/lib/coin
> -DCOIN_OSI_VOL_LIBRARY=/opt/coin/lib/coin
> -DCOIN_VOL_LIBRARY=/opt/coin/lib/coin ..
> $ make
> [$ make check]
> $ make install
>
> I have already made changeset that simplifies this config, but
> unfortunately I forgot about it, thus it haven't yet gone to the public
> repo. I'll clean it up later this day and push it to the public repo,
> hopefully today.
>
> Regards,
> Alpar
>
> On Tue, 2011-07-12 at 09:56 -0500, noam goldberg wrote:
> > Hi,
> >
> > In Lemon 1.2.1 the output of
> > ./configure --help
> > does not mention anything about enabling CBC.
> >
> >
> > When I try to run ./configure -with-cbc-includedir=x
> > --with-cbc-libdir=y
> > where x and y are the include and lib directories CBC does not get
> > found/enabled.
> >
> >
> > When I run ./configure -with-coin-includedir=x --with-coin-libdir=y
> > where x and y are the same cbc include and lib directories only Clp is
> > enabled but Cbc is not.
> >
> >
> > What should I do?
> > Noam
> >
> >
> >
> > --
> > ---------------------------------------------------------------------------
> > Noam Goldberg
> > Postdoctoral Appointee
> > MCS Division
> > Argonne National Laboratory
> > Tel: (630) 252 4548
> >
> > _______________________________________________
> > Lemon-user mailing list
> > Lemon-user at lemon.cs.elte.hu
> > http://lemon.cs.elte.hu/mailman/listinfo/lemon-user
>
More information about the Lemon-user
mailing list