[Paraview] Re: [vtkusers] Unable to Compile VTK in 64 Bits Linux
Gregory, David C CIV NSWCDD, G24
david.c.gregory at navy.mil
Mon Apr 9 09:13:47 EDT 2007
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
-----Original Message-----
From: paraview-bounces+david.c.gregory=navy.mil at paraview.org
[mailto:paraview-bounces+david.c.gregory=navy.mil at paraview.org] On
Behalf Of Kent Eschenberg
Sent: Saturday, April 07, 2007 8:13 AM
To: ParaView
Subject: [Paraview] Re: [vtkusers] Unable to Compile VTK in 64 Bits
Linux
> 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
_______________________________________________
ParaView mailing list
ParaView at paraview.org http://www.paraview.org/mailman/listinfo/paraview
More information about the ParaView
mailing list