Build qt-webkit failed



  • Hi, all
    When I used the command "qtwebkit/Tools/Scripts/build-webkit --qt" to build qt-webkit,
    I got this error:
    /usr/bin/ld: qt-everywhere-opensource-src-5.5.1/qtmultimedia/lib/libQt5Multimedia.a(qmediametadata.o): relocation R_X86_64_PC32 against `_ZN7QStringD1Ev' can not be used when making a shared object; recompile with -fPIC
    Qt Version: 5.5.1
    The Makefile do have the -fPIC option. I don't know what to do.
    Can anybody help?



  • When I remove "-fvisibility=hidden -fvisibility-inlines-hidden" from the CXXFLAGS, it works.
    I think that is because ~QString() is inline, the option above hide the destructor, so destructor can't be found.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.