Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Unsolved Build qt-webkit failed

    Qt WebKit
    1
    2
    1022
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • wafer
      wafer 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?

      1 Reply Last reply Reply Quote 0
      • wafer
        wafer 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 Reply Last reply Reply Quote 0
        • First post
          Last post