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

noam goldberg noam.goldberg at gmail.com
Thu Aug 11 14:46:15 CEST 2011


I get the same problem with both development versions (r1685,r1799)
and the latest (2.7.1) release version.
Might it be related to my 64bit system (I am trying to build on Ubuntu
11.04 64bit)?

Thank you in advance,
Noam

On Thu, Aug 11, 2011 at 3:34 AM, Alpár Jüttner <alpar at cs.elte.hu> wrote:
>
>> I cannot reproduce this problem. I tested it with the SVN version of CBC
>> (version -r1685) built and installed like
>
> I see now. The latest version (-r1799) of CBC doesn't work for me,
> either. As far as I see from the commit logs, there were a couple of
> build related changes between versions -r1685 and -r1799 and this may
> cause the problem. I'm going to investigate the reasons and report to
> the CBC people. In the meanwhile, I suggest using version -r1685 of CBC:
>
> svn co -r1685 https://projects.coin-or.org/svn/Cbc/trunk Cbc-svn-trunk
>
> I hope this helps.
>
> Regards,
> Alpar
>
>>
>> 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
>> > >>
>> > >
>> > >
>> > >
>> >
>>
>>
>> _______________________________________________
>> Lemon-user mailing list
>> Lemon-user at lemon.cs.elte.hu
>> http://lemon.cs.elte.hu/mailman/listinfo/lemon-user
>
>
>



-- 
---------------------------------------------------------------------------
Noam Goldberg
Postdoctoral Appointee
MCS Division
Argonne National Laboratory
Tel: (630) 252 4548



More information about the Lemon-user mailing list