LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-27-2018, 04:59 PM   #1
bkelly
Member
 
Registered: Jan 2008
Distribution: Centos 7-4
Posts: 205

Rep: Reputation: 13
How to remove option: 僕Xmu from qmake and Makefile


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:
Code:
-lXmu
It only does this when the following has been added to the dot pro file:
Code:
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
for Xmu and XMUU library API Reference where the introduction begins with:
Quote:
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稚 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?
 
Old 11-27-2018, 11:59 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
No. If QMake adds it, it's because Qt itself needs it.

Last edited by dugan; 11-28-2018 at 12:01 AM.
 
Old 11-28-2018, 10:03 AM   #3
bkelly
Member
 
Registered: Jan 2008
Distribution: Centos 7-4
Posts: 205

Original Poster
Rep: Reputation: 13
Quote:
Originally Posted by dugan View Post
No. If QMake adds it, it's because Qt itself needs it.
In this example said option was edited out of Makefile and the project successfully built and ran. That is pretty good evidence that it is not always needed. I don't have a clue as to what causes it to be required. QT is used extensively and our build process detects the need to run qmake, runs it, then runs the resultant make. I suppose we could add some scripting code that hunts down option -lXmu and removes it. It would be far better to eliminate it at the source rather than to patch it up.

OTOH: We might add a new file in with each application and list the options that are to be removed. From offhand comments we might then be able to remove some software that really is not needed but added just because QT or some other package demands it. Still, it would be better to stop them before being generated rather than hunt them down later.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Sony Vaio Control Center No rule to make target /qmake.conf', needed by 'Makefile'. Stop. Ztcoracat Linux - Software 32 07-14-2016 08:47 PM
make: Warning: Both `makefile' and `Makefile' exist ? malli42108 Solaris / OpenSolaris 5 10-24-2009 09:09 AM
automake, makefile, makefile.in and makefile.am Fond_of_Opensource Linux - Newbie 1 09-12-2006 08:35 PM
what is the meaning of Makefile,Makefile.am,Makefile.in cynthia_thomas Linux - General 3 12-08-2005 05:00 AM
No rule to make target `/mkspecs/default/qmake.conf', needed by `Makefile'. Stop Julianus Linux - General 0 12-21-2003 07:17 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration