[Insight-users] Problem building on linux

Ghassan Hamarneh ghamarneh@yahoo.com
Wed, 23 Oct 2002 22:18:18 -0400 (EDT)


Thanks Mathieu for your comments,

I did what you suggested, but I still get the same error: 

------------
/lhome/ghassan/Cable/Executables/cable: relocation error:
/lhome/ghassan/Cable/Executables/cable: undefined symbol: __dynamic_cast_2
make[7]: ***
[/lhome/ghassan/Insight/Wrapping/Tcl/Numerics/wrap_ITKNumerics_tcl.cxx] Error
127
make[6]: *** [default_target] Error 2
make[5]: *** [default_target_Numerics] Error 2
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_Tcl] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Wrapping] Error 2
make: *** [default_target] Error 2
-----------

Even though ( Matlab paths are moved to the end ):

$ echo $LD_LIBRARY_PATH 
/lhome/ghassan/VTK/lib/vtk:/lhome/ghassan/VTK/lib:/lhome/ghassan/VTK/bin:/usr/local/yav/lib/:/usr/local/blt2.4y/src/shared/:/usr/local/blt2.4y/src/:/usr/local/blt2.4y/library/:/usr/local/express/lib/linux:/usr/local/glut-3.7/lib/glut:/lhome/ghassan/MATLAB13/bin/glnx86:/lhome/ghassan/MATLAB13/extern/lib/glnx86:/lhome/ghassan/MATLAB13/sys/os/glnx86

$ ldd /lhome/ghassan/Cable/Executables/cable
       libstdc++-libc6.2-2.so.3 =>
/lhome/ghassan/MATLAB13/sys/os/glnx86/libstdc++-libc6.2-2.so.3 (0x40018000)
        libm.so.6 => /lib/i686/libm.so.6 (0x40074000)
        libc.so.6 => /lib/i686/libc.so.6 (0x40097000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
--------

Now if I remove  '/lhome/ghassan/MATLAB13/sys/os/glnx86/' altogether from
LD_LIBRARY_PATH, the build progress a tiny bit, and then I get:

WARNING: In /lhome/ghassan/Cable/Parsers/cableXMLSourceParser.cxx, line 555
XMLSourceParser (0x81325b8): Invalid location entry f0:23 in XMLSourceElement
_3

ERROR: In /lhome/ghassan/Cable/Parsers/cableXMLSourceParser.cxx, line 1006
XMLSourceParser (0x81325b8): Cannot convert max="1" to integer on ArrayType _6

ERROR: In /lhome/ghassan/Cable/Parsers/cableXMLSourceParser.cxx, line 730
XMLSourceParser (0x81325b8): Cannot find type _6c for Variable _3

ERROR: In /lhome/ghassan/Cable/Parsers/cableXMLSourceParser.cxx, line 452
XMLSourceParser (0x81325b8): Error adding element Variable _3

ERROR: In /lhome/ghassan/Cable/Parsers/cableXMLSourceParser.cxx, line 150
XMLSourceParser (0x81325b8): Error creating source representation.

Error getting SourceRepresentation from parser.
make[7]: ***
[/lhome/ghassan/Insight/Wrapping/Tcl/Numerics/wrap_ITKNumerics_tcl.cxx] Error 1
make[6]: *** [default_target] Error 2
make[5]: *** [default_target_Numerics] Error 2
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_Tcl] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Wrapping] Error 2
make: *** [default_target] Error 2


You kind help is very much appreciated,

/Ghassan

Ghassan Hamarneh, PhD 
Hospital For Sick Children
Toronto, Canada

 --- Mathieu Malaterre <malat@free.fr> wrote: > Hi Ghassan,
> 
> >libstdc++-libc6.2-2.so.3 =>
> >/lhome/ghassan/MATLAB13/sys/os/glnx86/libstdc++-libc6.2-2.so.3 (0x40018000)
> >  
> >
> I think your problem comes from this. Are you using your LD_LIBRARY_PATH
> variable ? Or /etc/ld.so.conf ?
> In all case try either
> echo $LD_LIBRARY_PATH
> or 
> cat /etc/ld.so.conf
> 
> And you should put the "/lhome/ghassan/MATLAB13/sys/os/glnx86/" directory at
> the end, either in ld.so.conf file or in LD_LIBRARY_PATH variable.
>
> For example (assuming you have bash/sh)
> 
> echo $LD_LIBRARY_PATH
> ...output...
> 
> unset LD_LIBRARY_PATH
> 
> export LD_LIBRARY_PATH= 'copy here output without
> /lhome/ghassan/MATLAB13/sys/os/glnx86/'
> 
> export
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH':/lhome/ghassan/MATLAB13/sys/os/glnx86/'
> 
> HTH
> Mathieu

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca