[Insight-users] Problems installing WrapITK on 64-bit Fedora
Core 6
Bill Hoffman
bill.hoffman at kitware.com
Fri Jul 13 16:31:06 EDT 2007
Benjamin Goldenberg wrote:
> On Thu, 2007-07-12 at 17:45 -0400, Bill Hoffman wrote:
>
>>>> If you set BUILD_SHARED in ccmake that should build it shared, but the
>>>> other should work.
>>>> You would need also to change CMAKE_C_FLAGS as well as CXX.
>>>>
>>>>
>>> I am pretty sure -fPIC is being used for building vnl. I have set it in
>>> CMAKE_C_FLAGS and CMAKE_CXX_FLAGS, and using VERBOSE=1 seems to indicate
>>> it is being used. Even, so I am still getting the same error. The
>>> BUILD_SHARED option does not seem to be present in ccmake. For
>>> clarification, I am calling ccmake ../WrapITK in a build directory I
>>> created for WrapITK.
>>>
>>>
>> OK, WrapITK may not have a BUILD_SHARED option... You should do a
>> remove of this file: vnl_matrix_fixed_ref+float.3.3-.o
>>
>>
>>
>> /usr/bin/ld:
>> /usr/local/lib/InsightToolkit/libitkvnl.a(vnl_matrix_fixed_ref+float.3.3-.o):
>> relocation R_X86_64_32 against `a local symbol' can not be used when
>> making a shared object; recompile with -fPIC
>>
>> Then re-run make just to make sure it is compiled with -fPIC. That
>> really should work....
>>
>> -Bill
>>
>
> Hi,
> I realized it is actually not the same exact error, but very close:
>
> Linking CXX shared library ../../lib/libVXLNumericsJava.so
> /usr/bin/ld: /usr/local/lib/InsightToolkit/libitkvnl.a(vnl_math.o):
> relocation R_X86_64_32 against `__gxx_personality_v0' can not be used
> when making a shared object; recompile with -fPIC
> /usr/local/lib/InsightToolkit/libitkvnl.a: could not read symbols: Bad
> value
> collect2: ld returned 1 exit status
> make[2]: *** [lib/libVXLNumericsJava.so] Error 1
> make[1]: *** [Modules/VXLNumerics/CMakeFiles/VXLNumericsJava.dir/all]
> Error 2
> make: *** [all] Error 2
>
> In case it wasn't clear earlier, when I have changed settings in ccmake,
> I have removed all of the files in my build directory and started over.
> Also, I have not been building either the TCL or Java wrappers, in order
> to simplify things. Let me know if I can send you any files or anything
> to clear things up. Thank you very much,
>
Sounds like it got a bit better, can you show me the compiler line for
vnl_math.o?
-Bill
More information about the Insight-users
mailing list