Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. qmake generates unwanted option -lXmu
Qt 6.11 is out! See what's new in the release blog

qmake generates unwanted option -lXmu

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
3 Posts 2 Posters 1.1k 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.
  • B Offline
    B Offline
    BKBK
    wrote on last edited by
    #1

    This is QT version 3 and we cannot move up right now. I am the first in our group to use openGL within the QT environment. The qmake procedure puts this option in the Makefile:

    LIBS <several things omitted> -lXmu

    It only does this when the following has been added to the dot pro file for OpenGL
    CONFIG += opengl // in the version 3 book
    QT += opengl // in the version 4 book, but have not tried this
    I found a link here: https://www.x.org/releases/X11R7.7/doc/libXmu/Xmu.html
    describing an Xmu and XMUU library API Reference where the introduction begins with:

    The Xmu Library is a collection of miscellaneous (some might say random) utility functions that have been useful in building various applications and widgets. This library is required by the Athena Widgets.

    We don’t have this package and of several hundred apps none need it. So here is the question:
    Is there any way to modify qmake such that it will not add this option?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Might work:

      LIBS-=-lXmu
      

      Or, instead of tweaking configs, maybe link to OpenGL libs manually?

      (Z(:^

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BKBK
        wrote on last edited by
        #3

        We have a system with over 1000 Makefiles, many that call others to build the entire system. When the Makefile finds a dot pro file it invokes the qmake then invokes the regular make. I suppose it would be possible to write more scripts to be activated after the qmake is complete and remove said option. It would be much better to stop it at the source. It would be even better if that option were emitted only when needed. We may not be able to obtain that control but I am searching.

        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