Hi Matt,

I have not encountered that problem yet. Which CentOS version are you using? I could set-up a VM and try to compile it myself.

As Miklos suggested, you could try to add "-fPIC" to the compiler flags as a temporary workaround. Add it to the ADDITIONAL_CXX_FLAGS variable of the MITK-build/ CMake cache.

Thanks,
Sascha

On 09/14/2011 06:23 PM, Clarkson, Matt wrote:
Hi there,

on my Centos machine, I have started to get the following error when compiling MITK

CMakeFiles/QmitkExt.dir/QmitkModuleTableModel.cpp.o: relocation R_X86_64_PC32 against `mitk::GetModuleContext()' can not be used when making a shared object; recompile with -fPIC

I have not yet seen this on my Mac.
I also tried downloading the a brand new MITK-Project-Template, and doing a clean fresh rebuild, and that produces the same error. I also tried putting the -fPIC flag in there, and I still seem to get the same error, unless of course, it is needed on a dependent library.

Is anyone else getting this? Is it just Centos? Or is it just me?
I'm happy to keep investigating if necessary... but I do need it fixing.. so happy if someone can confirm whether its a widespread issue, or something silly I have done.

Thanks as always.

Matt


------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to