Thursday, June 18, 2009

Coin-or CBC install

I hoped that this would work without problem on a freshly installed, vanilla Cygwin environment:

$ svn checkout https://projects.coin-or.org/svn/Cbc/releases/2.3.0 Coin-Pkg
$ cd Coin-Pkg/
$ ./configure
$ make
$ make install

The last messages I see are:

Making install in Clp
make[1]: Entering directory `/usr/local/src/coinor/Coin-Pkg/Clp'
Making install in src
make[2]: Entering directory `/usr/local/src/coinor/Coin-Pkg/Clp/src'
.deps/CbcOrClpParam.Po:1: *** multiple target patterns.  Stop.
make[2]: Leaving directory `/usr/local/src/coinor/Coin-Pkg/Clp/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/coinor/Coin-Pkg/Clp'
make: *** [install-recursive] Error 1

This is in the ‘make install’ step. I don’t know what a .Po file is, nor why it is in a hidden directory .deps.

5 comments:

  1. Hi Erwin,

    You need to get a fixed cygwin make or downgrade:
    https://projects.coin-or.org/BuildTools/wiki/current-issues

    I hope this helps.

    Cheers,
    -Jeff

    ReplyDelete
  2. Thanks very much! Yes, that explains a lot.

    ReplyDelete
  3. I am happy to say that after installing a fixed make as suggested in the link provided by Jeff, the build procedure worked flawlessly.

    ReplyDelete
  4. You need not be limited to Cygwin. There are other ways of getting a POSIX-like environment onto a Windows machine

    1. MingGW www.mingw.org/
    2. Wubi http://wubi-installer.org/ (I believe comes standard on Ubuntu CD/iso image)
    3. Virtualbox + Linux distro install
    4. Remote desktop to Linux machine

    ReplyDelete
  5. After the ./configure alter the Makefile

    CXX := g++

    to

    CXX := g++ -mno-cygwin

    to get executables that use the native Windows runtime libraries and also run outside Cygwin.

    ReplyDelete