Build qt-webkit failed
Unsolved
Qt WebKit
-
wrote on 18 Feb 2016, 02:42 last edited by wafer
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? -
wrote on 18 Feb 2016, 09:41 last edited by wafer
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.
1/2