[Insight-users] Problems installing WrapITK on 64-bit Fedora Core 6

Bill Hoffman bill.hoffman at kitware.com
Thu Jul 12 16:22:15 EDT 2007


Benjamin Goldenberg wrote:
> On Thu, 2007-07-12 at 15:40 -0400, Bill Hoffman wrote:
>   
>> You need to either build shared or add -fPIC to your CXXFLAGS or CFLAGS.
>>     
>
> Hi Bill,
> I tried adding the -fPIC option to CMAKE_CXX_FLAGS, and it did not seem
> to make a difference. I got the same error. I looked for the shared
> build option, but could not find it in ccmake. How would I go about
> configuring shared builds? I appreciate the help.
>
>   
Are you sure -fPIC was used for building vnl?  make VERBOSE=1 will show the
flags used.  

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.

-Bill



More information about the Insight-users mailing list