[Kde-bindings] install error

Arno Rehn arno at arnorehn.de
Thu Oct 27 14:17:58 UTC 2011


On Thursday 27 October 2011 08:44:35 you wrote:
> On 11-10-27 08:20 AM, Arno Rehn wrote:
> > export PATH="/opt/QtSDK/Desktop/Qt/474/gcc/bin/:${PATH}"
> 
> OK I got a little further but it fails during linking with:
> 
> [ 83%] Building CXX object
> ruby/qtruby/src/CMakeFiles/qtruby4shared.dir/marshall_types.o
> Linking CXX shared library libqtruby4shared.so
> /usr/bin/ld: /usr/local/lib/libruby-static.a(array.o): relocation
> R_X86_64_32 against `.rodata.str1.1' can not be used when making a
> shared object; recompile with -fPIC
> /usr/local/lib/libruby-static.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[3]: *** [ruby/qtruby/src/libqtruby4shared.so.2.0.0] Error 1
> make[3]: Leaving directory
> `/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/build'
> make[2]: *** [ruby/qtruby/src/CMakeFiles/qtruby4shared.dir/all] Error 2
> make[2]: Leaving directory
> `/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/build'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/build'
> make: *** [build] Error 2
Looks like you should recompile Ruby with -fPIC. However it is strange that it 
tries to link against the static Ruby library, I don't think we do this in the 
KDE bindings module. You might want to ask Ryan Melton (the creator of the 
QtRuby gem) about this.

-- 
Arno Rehn



More information about the Kde-bindings mailing list