[Cbc] Compiling and installing CBC with GLPK-4.47

Ted Ralphs ted at lehigh.edu
Tue Nov 20 13:39:29 EST 2012


Hi Noli,

Before you go to a lot more trouble, can you maybe say what you are trying
to do that requires Glpk 4.47? The only thing Glpk can do for you when
combined with Cbc is to read instances in GMPL format and for that, 4.45
works well and compiles out of the box.

If you do really need 4.47, then here is another idea. In your previous
e-mail you indicated that you were configuring on OSX with -arch=x86_64,
which seems to be what is causing the issue here. Why do you need that
extra flag? When I build on OSX, I just build with defaults (no extra
flags) and everything works fine. The more you can stick to the standard
setup, the better of you are going to be.

Cheers,

Ted

On Tue, Nov 20, 2012 at 6:09 AM, Noli Sicad <nsicad at gmail.com> wrote:

> Hi Stefan,
>
> >
> > Maybe just copy the glpk.h from glpk/src to glpk/include to make make
> > happy.
>
> OK. Good idea.
>
> Just did that.
>
> But seems to have problem with X86_64 and GLPK codes. See logs below.
>
> Thanks,
>
> Noli
>
>
> ########
>
> /bin/sh ../../libtool --tag=CXX --mode=link g++  -g -O0 -pipe
> -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith
> -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long
> -DCLP_BUILD   -o clp  ClpMain.o CbcOrClpParam.o MyEventHandler.o
> MyMessageHandler.o unitTest.o libClp.la -lreadline -lncurses
> /Users/nsicad/Documents/Cbc-2.7.7_4/ThirdParty/Glpk/libcoinglpk.la
> -ldl -lgmp -lz
> /Users/nsicad/Documents/Cbc-2.7.7_4/CoinUtils/src/libCoinUtils.la
> /Users/nsicad/Documents/Cbc-2.7.7_4/ThirdParty/Glpk/libcoinglpk.la
> -lreadline -lncurses -lbz2 -lm -ldl -lgmp -lz
> g++ -g -O0 -pipe -Wparentheses -Wreturn-type -Wcast-qual -Wall
> -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas
> -Wno-long-long -DCLP_BUILD -o clp ClpMain.o CbcOrClpParam.o
> MyEventHandler.o MyMessageHandler.o unitTest.o -Wl,-bind_at_load
> ./.libs/libClp.a
> /Users/nsicad/Documents/Cbc-2.7.7_4/CoinUtils/src/.libs/libCoinUtils.a
> /Users/nsicad/Documents/Cbc-2.7.7_4/ThirdParty/Glpk/.libs/libcoinglpk.a
> -lreadline -lncurses -lbz2 -lm -ldl /usr/local/lib/libgmp.dylib -lz
> Undefined symbols for architecture x86_64:
>   "__glp_zlib_gzclose", referenced from:
>       _z_fclose in libcoinglpk.a(glpenv07.o)
>   "__glp_zlib_gzerror", referenced from:
>       _z_fgetc in libcoinglpk.a(glpenv07.o)
>       _z_fputc in libcoinglpk.a(glpenv07.o)
>       _z_fflush in libcoinglpk.a(glpenv07.o)
>   "__glp_zlib_gzflush", referenced from:
>       _z_fflush in libcoinglpk.a(glpenv07.o)
>   "__glp_zlib_gzgetc", referenced from:
>       _z_fgetc in libcoinglpk.a(glpenv07.o)
>   "__glp_zlib_gzopen", referenced from:
>       _z_fopen in libcoinglpk.a(glpenv07.o)
>   "__glp_zlib_gzputc", referenced from:
>       _z_fputc in libcoinglpk.a(glpenv07.o)
>   "_glp_main", referenced from:
>       __glp_lpx_main in libcoinglpk.a(glplpx01.o)
> ld: symbol(s) not found for architecture x86_64
> collect2: error: ld returned 1 exit status
> make[4]: *** [clp] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
> Nolis-MacBook-Pro:Cbc-2.7.7_4 nsicad$
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc
>



-- 
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20121120/831c8b00/attachment.html>


More information about the Cbc mailing list