[Kst] Re: link step failing with qmake

Peter Kümmel syntheticpp at gmx.net
Wed May 18 22:26:35 CEST 2011

On 18.05.2011 22:18, Nicolas Brisset wrote:
> ----- "Nadine Leenders"<nadine at ualberta.ca>  a écrit :
>>> On 18.05.2011 19:42, Nadine Leenders wrote:
>>>> I tried doing build and am back to my original problem, I have the
>> error message:
>>>> /usr/local/lib/libnetcdff_c++.a(netcdf.o): relocation R_X86_64_32S
>> against `vtable for NcTypedComponent' can not be used when making a
>> shared object; recompile with -fPIC
>>>> could not read symbols: Bad value
>>>> collect2: ld returned 1 exit status
>>> Here it tries to link the netcdf plugin, is you netcdf as old as you
>> linux?
>>> If you don't need any special plugins you could disable them by
>> calling in you
>>> cmake build directory:
>>>      cmake . -Dkst_3rdparty=0
>> I think I have it :) :) :) !!!!
> Nice :-) And what was the problem? Maybe you could post it here for future reference?
> I believe you have to do something special (which I always forget) when compiling netcdf to get proper shared libs. Was it the trick?

The trick was to not compile the netcdf plugin ;)
But when netcdf is needed, the error message already tells you what to: recompile with -fPIC


> Nicolas
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst

More information about the Kst mailing list