[Coin-discuss] VolLp Example

Laszlo Ladanyi ladanyi at us.ibm.com
Mon Aug 26 14:10:59 EDT 2002


Hello,

The problem is that libosi was compiled with support for reading gzip
compressed files, but Vollp was not. 

It is very important that the list of underlying libraries (those at the top
of the Makefiles) should be the same for building libosi and building the
final executable.

I have fixed the Makefiles and committed it into cvs. It shuld show up in the
tarballs tomorrow.

--Laci

On Mon, 26 Aug 2002, Daniele Ficcadenti wrote:

> Hi everybody,
> I have problems on compiling VolLp Example.
> 
> I downloaded the tarballs (08/26/2002 version) and
> decompressed the following modules:
> Vol, Osi, VolLp and VolUfl.
> 
> My target is to try and understand the two Examples
> VA related: VolLp and VolUfl.
> 
> I proceeded as follow:
> 
> 1. I compiled Vol module successfully.
> 2. I compiled and tested (with unitTest and
>     unitTest -testOsiSolverInterface)
>     the Osi module successfully.
> 3. I compiled and tested VolUfl example successfully.
> 4. I tried to compile VolLp example, but I obtained
>     an "Error 1". Naturally, The executable (vollp)
>     was not generated.
> 
>     The messages that i obtained from the "make"  command are:
> 
> ----------------- BEGIN MESSAGES -------------------------------------------
> 
> ../../Common/make/Makefile.detectVol:20: Trying to autodetect VolVolume.hpp...
> ../../Common/make/Makefile.detectVol:34: VolVolume.hpp is found ... 
> ../../include
> ../../Common/make/Makefile.detectVol:44: Trying to autodetect libvol.so...
> ../../Common/make/Makefile.detectVol:72: libvol.so is found ... ../../lib
> ../../Common/make/Makefile.detectOsi:19: Trying to autodetect
> 
> OsiSolverInterface.hpp...
> ../../Common/make/Makefile.detectOsi:33: OsiSolverInterface.hpp is found ...
> 
> ../../include
> ../../Common/make/Makefile.detectOsi:44: Trying to autodetect libosi.so...
> ../../Common/make/Makefile.detectOsi:72: libosi.so is found ... ../../lib
> 
> Creating dependency vollp.d
> ../../Common/make/Makefile.detectVol:20: Trying to autodetect VolVolume.hpp...
> ../../Common/make/Makefile.detectVol:34: VolVolume.hpp is found ... 
> ../../include
> ../../Common/make/Makefile.detectVol:44: Trying to autodetect libvol.so...
> ../../Common/make/Makefile.detectVol:72: libvol.so is found ... ../../lib
> ../../Common/make/Makefile.detectOsi:19: Trying to autodetect
> 
> OsiSolverInterface.hpp...
> ../../Common/make/Makefile.detectOsi:33: OsiSolverInterface.hpp is found ...
> 
> ../../include
> ../../Common/make/Makefile.detectOsi:44: Trying to autodetect libosi.so...
> ../../Common/make/Makefile.detectOsi:72: libosi.so is found ... ../../lib
> 
> Compiling vollp.cpp
> 
> Creating example vollp
> g++ -I- -fPIC -pedantic  -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual
> 
> -Wwrite-strings -Wconversion -Wstrict-prototypes -Wmissing-prototypes
> 
> -Wnested-externs -pipe -g -Iinclude -I../Common/include -DCGL_DEBUG 
> -I../../include
> 
> -I../../include -I../../include -DCOIN_USE_VOL -o Linux-g/vollp 
> Linux-g/vollp.o
> 
> -L/home/danfic/LAC/COIN/Examples/VolLp/../../lib
> 
> -L/home/danfic/LAC/COIN/Examples/VolLp/../../lib -L../../lib
> 
> -Wl,-rpath,/home/danfic/LAC/COIN/Examples/VolLp/../../lib
> 
> -Wl,-rpath,/home/danfic/LAC/COIN/Examples/VolLp/../../lib 
> -Wl,-rpath,../../lib -losi
> 
> -lvol -losi   -lm
> /home/danfic/LAC/COIN/Examples/VolLp/../../lib/libosi.so: undefined 
> reference to
> 
> `gzopen'
> /home/danfic/LAC/COIN/Examples/VolLp/../../lib/libosi.so: undefined 
> reference to
> 
> `gzclose'
> /home/danfic/LAC/COIN/Examples/VolLp/../../lib/libosi.so: undefined 
> reference to
> 
> `gzgets'
> collect2: ld returned 1 exit status
> make: *** [Linux-g/vollp] Error 1
> 
> ----------------- END MESSAGES -------------------------------------------
> 
> Some hints and/or suggestions? Please, it's very important for me.
> 
> Thanks in advance for your support.
> 
> Ciao, Daniele.
> 
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at www-124.ibm.com
> http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-discuss
> 




More information about the Coin-discuss mailing list