<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Subscribing to the list, so I can see any other responses...<br>
<br>
Thanks for this advice. When trying the original compile, I was
pretty sure that is was something like this - and I had tried going
out of X to a level 3 prompt and logging in as root, to get a full
root environment.<br>
<br>
I took a look this morning (which is after a reboot). I see the
.qt4.sh and qt4.csh files in /etc/profile.d, but it seems that they
are not having any effect on modifying my $PATH in either my real
system or my VM. /usr/lib64/qt5/bin is there, and 'which qmake'
gives me the qt5 version (either as a regular user or as root). Must
be something about how I have set up my machine - which is not a
SlackBuild problem, AFAIK. I use bash, and the default /etc/profile
does run .sh files in profile.d - but only if they are set
executable (and qt4.sh is not). The qt4.sh script itself says to NOT
make it executable.<br>
<br>
Again, thanks for the work everyone does in making the
SlackBuilds resource available, and glad I could help in a small
way..<br>
<br>
<pre class="moz-signature" cols="72">Dave</pre>
<div class="moz-cite-prefix">On 2023-04-13 01:52, B. Watson wrote:<br>
</div>
<blockquote type="cite"
cite="mid:47caa25c-63be-ea39-40e3-9251d63028ae@slackware.uk">
<br>
<br>
Replying directly to the poster, plus to the list.
<br>
<br>
On Wed, 12 Apr 2023, David Halliwell wrote:
<br>
<br>
<blockquote type="cite"> Today, I wanted to build/install the
MP3Diags software
(<a class="moz-txt-link-freetext" href="https://slackbuilds.org/repository/15.0/audio/MP3Diags/?search=mp3diag">https://slackbuilds.org/repository/15.0/audio/MP3Diags/?search=mp3diag</a>).
It would not
<br>
build, exiting with a message about not finding Qwidget. I had
seen the qt4 dependency, and had downloaded, built, and
installed qt4 using he
<br>
Slackbuild, but MP3Diags would not build on my Slackware 15.0
system (upgraded last year from 14.2). I also tried building it
on a fairly clean
<br>
Slackware 15.0 VM, but had the same error.
<br>
</blockquote>
<br>
The probable reason for a SlackBuild not picking up your qt4 is
<br>
that qt4 installs a script that sets some environment variables,
in
<br>
/etc/profile.d/. If you didn't have qt4 already installed, and you
<br>
install it, then try to build something that expects those
variables
<br>
to already be set... you get the exact issue you were having.
<br>
<br>
The easiest thing to do is install qt4, then log out & back
in. Your
<br>
new login will have the environment variables set correctly. The
qt4
<br>
README doesn't actually mention this (though it should).
<br>
<br>
It's possible to write a SlackBuild that will source the profile
<br>
script itself, avoiding this problem, but not all qt4-using
scripts do
<br>
this. You've found one that doesn't, apparently.
<br>
<br>
So yeah, the MP3Diags SlackBuild needs attention. And so does the
<br>
README for qt4. Thanks for pointing it out.<br>
</blockquote>
<br>
</body>
</html>