Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Library order
Qt 6.11 is out! See what's new in the release blog

Library order

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 1 Posters 2.3k 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.
  • P Offline
    P Offline
    philippeb8
    wrote on last edited by
    #1

    Hi.

    I've successfully build Qt statically but now I have link problems. I am trying to link -lXext -lz with:
    LIBS += -lXext -lz

    But the libraries are being passed as parameters before the Qt libraries:
    g++ -static-libgcc -Wl,-rpath,/usr/local/lib -o fr main.o moc_main.o -L/usr/local//lib -lXext -lz -lpthread -lQt3Support -lQtGui -lQtCore

    And I get undefined references:
    /usr/local//lib/libQtCore.a(qbytearray.o):qbytearray.cpp:(.text+0x38c0): undefined reference to `_compress2'

    How do I tell qmake to pass "-lXext -lz" after "-lQt3Support -lQtGui -lQtCore"?

    1 Reply Last reply
    0
    • P Offline
      P Offline
      philippeb8
      wrote on last edited by
      #2

      I found a solution using brute force:
      http://bugreports.qt.nokia.com/browse/QTBUG-20342?focusedCommentId=158731#comment-158731

      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