Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Build qt-webkit failed
Forum Update on Monday, May 27th 2025

Build qt-webkit failed

Scheduled Pinned Locked Moved Unsolved Qt WebKit
2 Posts 1 Posters 1.2k Views
  • 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.
  • W Offline
    W Offline
    wafer
    wrote on 18 Feb 2016, 02:42 last edited by wafer
    #1

    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
    0
    • W Offline
      W Offline
      wafer
      wrote on 18 Feb 2016, 09:41 last edited by wafer
      #2

      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
      0

      1/2

      18 Feb 2016, 02:42

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved