[Lemon-user] Problem enabling Cbc in configure in Lemon 1.2.1

Alpár Jüttner alpar at cs.elte.hu
Wed Jul 13 09:57:03 CEST 2011


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