[Lemon-user] Problem enabling Cbc in configure in Lemon 1.2.1
Alpár Jüttner
alpar at cs.elte.hu
Thu Aug 11 09:30:55 CEST 2011
Hi Noam,
I cannot reproduce this problem. I tested it with the SVN version of CBC
(version -r1685) built and installed like
svn co https://projects.coin-or.org/svn/Cbc/trunk Cbc-svn-trunk
cd Cbc-svn-trunk
./configure --prefix=/opt/coin-trunk
make
make install
then I can successfully build lemon with
mkdir build
cd build
cmake -DCOIN_ROOT_DIR=/opt/coin-trunk ..
make
Which CBC version do you actually use?
Regards,
Alpar
On Wed, 2011-08-10 at 23:34 -0500, noam goldberg wrote:
> Hello,
>
> Thank you for your reply and sorry for the delayed response. With the
> latest development version I run cmake as you suggested. Then when I
> run make I get an error. The following is the output:
>
> noamgold at noamgold-ThinkPad-X220:~/lemon-main$ make
> [ 6%] Building CXX object lemon/CMakeFiles/lemon.dir/arg_parser.cc.o
> [ 12%] Building CXX object lemon/CMakeFiles/lemon.dir/base.cc.o
> [ 18%] Building CXX object lemon/CMakeFiles/lemon.dir/color.cc.o
> [ 25%] Building CXX object lemon/CMakeFiles/lemon.dir/lp_base.cc.o
> [ 31%] Building CXX object lemon/CMakeFiles/lemon.dir/lp_skeleton.cc.o
> [ 37%] Building CXX object lemon/CMakeFiles/lemon.dir/random.cc.o
> [ 43%] Building CXX object lemon/CMakeFiles/lemon.dir/bits/windows.cc.o
> [ 50%] Building CXX object lemon/CMakeFiles/lemon.dir/glpk.cc.o
> [ 56%] Building CXX object lemon/CMakeFiles/lemon.dir/clp.cc.o
> [ 62%] Building CXX object lemon/CMakeFiles/lemon.dir/cbc.cc.o
> /home/noamgold/lemon-main/lemon/cbc.cc:278:2: error: #error Cannot
> instantiate Osi solver
> /home/noamgold/coin-Cbc/include/coin/CoinFinite.hpp:20:14: warning:
> ‘COIN_INT_MAX_AS_DOUBLE’ defined but not used
> make[2]: *** [lemon/CMakeFiles/lemon.dir/cbc.cc.o] Error 1
> make[1]: *** [lemon/CMakeFiles/lemon.dir/all] Error 2
> make: *** [all] Error 2
>
> Thank you in advance,
> Noam
>
> On Wed, Jul 13, 2011 at 8:48 AM, Alpár Jüttner <alpar at cs.elte.hu> wrote:
> > 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