[Paraview] Re: [vtkusers] Unable to Compile VTK in 64 Bits Linux
Kent Eschenberg
eschenbe at psc.edu
Sat Apr 7 08:12:39 EDT 2007
> 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