Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is it possible to export symbols of libQtGui.so in shared library of libQtGui.so

Is it possible to export symbols of libQtGui.so in shared library of libQtGui.so

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 1.2k Views 1 Watching
  • 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    Hi All
    I have shared library of libQtGui.so and is it possible to share symbols of in shared library using some export_list in gcc command

    jsulmJ 1 Reply Last reply
    0
    • Q Qt Enthusiast

      Hi All
      I have shared library of libQtGui.so and is it possible to share symbols of in shared library using some export_list in gcc command

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Qt-Enthusiast What do you mean? libQtGui.so should already export all needed symbols. What symbols are you talking about?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        Qt Enthusiast
        wrote on last edited by
        #3

        My question is becuase when I make

        When I build static libraries of libQtGui and libQtCore CXXFLAGS -fvisibility=hidden is used for compiling each file of QtCore and QtGui. When I link this library in my final executable , then I get following

        hidden symbol `_ZNK7QLayout11minimumSizeEv' is referenced by DSO linking ld: final link failed: Bad value

        but , I do not get this error when I make shared library of LibQtGui.so and

        I do not know what does

        class Q_GUI_EXPORT QLayout does

        jsulmJ 1 Reply Last reply
        0
        • Q Qt Enthusiast

          My question is becuase when I make

          When I build static libraries of libQtGui and libQtCore CXXFLAGS -fvisibility=hidden is used for compiling each file of QtCore and QtGui. When I link this library in my final executable , then I get following

          hidden symbol `_ZNK7QLayout11minimumSizeEv' is referenced by DSO linking ld: final link failed: Bad value

          but , I do not get this error when I make shared library of LibQtGui.so and

          I do not know what does

          class Q_GUI_EXPORT QLayout does

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Qt-Enthusiast said in Is it possible to export symbols of libQtGui.so in shared library of libQtGui.so:

          -fvisibility=hidden

          Instead to try to "solve" the problem doing something really strange (putting symbols from a shared library into your static lib) you should not pass -fvisibility=hidden while building static libraries.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            Qt Enthusiast
            wrote on last edited by
            #5

            Will it make sense to remove -fvisibility=hidden globally from all files while building the static library of libQtGui.a

            jsulmJ 1 Reply Last reply
            0
            • Q Qt Enthusiast

              Will it make sense to remove -fvisibility=hidden globally from all files while building the static library of libQtGui.a

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Qt-Enthusiast I would say yes

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

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