[Kst] Re: link step failing with qmake

Peter Kümmel syntheticpp at gmx.net
Wed May 18 21:37:56 CEST 2011


On 18.05.2011 20:59, Nadine Leenders wrote:
>
> On 2011-05-18, at 12:32 PM, Peter Kümmel wrote:
>
>> 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 :) :) :) !!!!
>
> # ls -al build/bin
> total 61180
> drwxr-xr-x 2 root root       17 May 18 12:51 .
> drwxr-xr-x 4 root root       26 May 18 12:42 ..
> -rwxr-xr-x 1 root root 62646016 May 18 12:51 kst2
>
> Since I've had such bad luck with install directories with qmake and cmake, would you please tell me how to get it to install into /usr/local?
>

Best ist to build out-of-source and to have clean build folder, so remove everything from your last build.
Then call cmake.

     cmake <kst source>/cmake -Dkst_install_prefix=/usr/local/ -Dkst_3rdparty=0

make
sudo make install

That's it. (You only need to be root when calling "make install",
but don't use the buid dir then which was created as root)


To be sure kst finds the correct libraries call:
     ldd /usr/local/bin/kst2

It should find all .so files.

Peter


> Thanks !!!!
>   - Nadine
>
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst
>


More information about the Kst mailing list