[Paraview] Re: [vtkusers] Unable to Compile VTK in 64 Bits Linux

Kent Eschenberg eschenbe at psc.edu
Mon Apr 9 10:20:43 EDT 2007


You may be right. I thought the library would be 64-bit 
since the path to it

/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libGL.so

includes "x86_64". I'd suggest Xin Guai first try your 
suggestion then, if needed, mine.

Kent
Pittsburgh Supercomputing Center

Gregory, David C CIV NSWCDD, G24 wrote:
> I'd be willing to bet that he has the opposite problem.  I.e. the
> referenced libGL.so is 32bit and he's compiling 64bit binaries.
> 
> On my Redhat 4.3 machine, the 64 bit shared libraries live in /usr/lib64
> There should be a cmake setting for the GL libraries, make sure its
> finding the correct ones.
> 
> 
> -David
>> On Friday 06 April 2007 23:36, xin guai wrote:
>>> I got these errors when I attempted to compile VTK in 64 bits Linux 
>>> RedHat with CMAKE.
>>>
>>> Linking CXX shared library ../../bin/libvtkftgl.so
>>> /usr/bin/ld: skipping incompatible 
>>> /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libGL.so when 
>>> searching for -lGL
> 
> It looks like the linker found the 64-bit version of the library 
> libGL.so but decided it was incompatible. That suggests that the code to
> 
> which it is being linked (ParaView) is 32-bit. It might be that your 
> compiler generates 32-bit code by default and needs a command-line flag 
> to generate 64-bit code.
> 
> Figure out what that flag should be, tell cmake to use it, regenerate 
> the make files and recompile. Add the new flag by editing the file 
> CMakeCXXCompiler.cmake in directory CMakeFiles under the binary 
> directory where you are building paraview.
> 
> I'm not sure where to edit that file; you may have to experiment. It 
> looks like the file sets a variable named CMAKE_CXX_COMPILER_ARG1 to a 
> string so you could put the flag there. The book on cmake, or perhaps 
> the web site, might be able to provide better guidance.
> 
> Kent
> Pittsburgh Supercomputing Center


More information about the ParaView mailing list