Hi Sascha,
we use Centos 5. I tried adding -fPIC to various places including
ADDITIONAL_CXX_FLAGS, and still got stuck.
Also, if I look in more detail, the -fPIC has to be passed along to CTK, then
onto DCMTK, and it's not passed all the way through to each library.
But then I do not know the exact reason for the problem, or indeed which
library needs it. Also, I'm guessing that for shared libraries, we wouldn't
need -fPIC, so it must only be relevant for something that is built statically.
But I haven't yet tracked down the culprit.
So, in short, I haven't worked it out yet.... and if you could help that would
be great.... but I'm out of the office for a week, working on my Mac, so it's
not holding me up. I can ssh in, to continue testing if that helps.... so,
maybe I can get it sorted this week.
Matt
On 18 Sep 2011, at 14:19, Sascha Zelzer wrote:
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