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. Static build of project
Qt 6.11 is out! See what's new in the release blog

Static build of project

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 985 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.
  • A Offline
    A Offline
    Akullllla
    wrote on last edited by
    #1

    I want to build a program with static binding and add @QMAKE_LFLAGS + = -static@ in the .pro file, but prints an error message

    /usr/bin/ld: cannot find -lQt5WebEngineWidgets
    /usr/bin/ld: cannot find -lQt5Widgets
    /usr/bin/ld: cannot find -lQt5WebEngine
    /usr/bin/ld: cannot find -lQt5Quick
    /usr/bin/ld: cannot find -lQt5Multimedia
    /usr/bin/ld: cannot find -lQt5Gui
    /usr/bin/ld: cannot find -lQt5Qml
    /usr/bin/ld: cannot find -lQt5Network
    /usr/bin/ld: cannot find -lQt5Core
    /usr/bin/ld: cannot find -lGL

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      Do you have also a static compilation of Qt libs?

      The standard download is coming with dynamic libs. If you want to do a static build of your application, you need to start with a build of static Qt libs.

      Vote the answer(s) that helped you to solve your issue(s)

      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