[Insight-users] How to Interface FLTK,VTK and ITK

Matt McCormick matt.mccormick at kitware.com
Wed Oct 2 11:29:51 EDT 2013


Hi Sahan,

Adding

  -fPIC

to the CMAKE_CXX_FLAGS and CMAKE_C_FLAGS CMake configuration variables
should fix this.

HTH,
Matt

On Wed, Oct 2, 2013 at 5:18 AM, Sahan Ranasinghe <sahancr at gmail.com> wrote:
> Hi Matt,
>
> This is the error
>
> Linking CXX shared module bin/libvvITKAntiAlias.so
> /usr/bin/ld:
> /usr/local/lib/libitkvnl_algo-4.4.a(vnl_determinant+double-.cxx.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/libitkvnl_algo-4.4.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[2]: *** [VolviewPlugIns/bin/libvvITKAntiAlias.so] Error 1
> make[1]: *** [VolviewPlugIns/CMakeFiles/vvITKAntiAlias.dir/all] Error 2
> make: *** [all] Error 2
>
>
>
> On Tue, Oct 1, 2013 at 8:45 AM, Matt McCormick <matt.mccormick at kitware.com>
> wrote:
>>
>> Hi Sahan,
>>
>>
>> > I tried to build with InsightApplications4.4.0. But gives following
>> > error
>> >
>> > [ 81%] Performing build step for 'ITKApps'
>> > make[3]: *** No targets specified and no makefile found.  Stop.
>> > make[2]: *** [ITKApps-prefix/src/ITKApps-stamp/ITKApps-build] Error 2
>> > make[1]: *** [CMakeFiles/ITKApps.dir/all] Error 2
>> > make: *** [all] Error 2
>> >
>> > Can you please tell me how to fix this?
>> >
>>
>> The actual error message is not contained above.  Please include more
>> information.
>>
>> Thanks,
>> Matt
>
>


More information about the Insight-users mailing list