Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Solved Configure option for Qt5.12.6 to avoid dependency on Wtsapi32.lib

    Installation and Deployment
    2
    2
    190
    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.
    • A
      azaclauson last edited by

      When doing some upgrade testing from Qt5.9.8. to Qt5.12.6 a new library dependency on Wtsapi32.lib has been introduced. Only two function calls are required, WTSQuerySessionInformationW and WTSFreeMemory. Even though those calls are seemingly innocuous the requirement to link against a Remote Desktop services library is concerning.

      My question is whether there is a configure option that can disable the dependency on Wtsapi32.lib?

      1 Reply Last reply Reply Quote 0
      • Christian Ehrlicher
        Christian Ehrlicher Lifetime Qt Champion last edited by

        @azaclauson said in Configure option for Qt5.12.6 to avoid dependency on Wtsapi32.lib:

        My question is whether there is a configure option that can disable the dependency on Wtsapi32.lib?

        No, it's needed for clipboard handling (see QTBUG-27097 and https://codereview.qt-project.org/c/qt/qtbase/+/233795) - and since this library is on every windows I don't see any problems.

        Qt has to stay free or it will die.

        1 Reply Last reply Reply Quote 4
        • Christian Ehrlicher
          Christian Ehrlicher Lifetime Qt Champion last edited by

          @azaclauson said in Configure option for Qt5.12.6 to avoid dependency on Wtsapi32.lib:

          My question is whether there is a configure option that can disable the dependency on Wtsapi32.lib?

          No, it's needed for clipboard handling (see QTBUG-27097 and https://codereview.qt-project.org/c/qt/qtbase/+/233795) - and since this library is on every windows I don't see any problems.

          Qt has to stay free or it will die.

          1 Reply Last reply Reply Quote 4
          • First post
            Last post