Compiling QTDIR environment variable must be set

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Mint2be

Compiling QTDIR environment variable must be set

Post by Mint2be »

:?:

I get this when compiling: configure: error: QTDIR environment variable must be set

How do I set it? Can't find anything concrete online. I've gotten this far in a compile, but not I'm stuck.

TIA
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
WharfRat

Re: Compiling QTDIR environment variable must be set

Post by WharfRat »

Compiling what :?

The README might mention that you have to set that in the environment with

Code: Select all

export QTDIR="/path/to/somwhere"
Mint2be

Re: Compiling QTDIR environment variable must be set

Post by Mint2be »

Ok, I got past that, but now I have another error. The read me says: If it is not found on your system, please use
./configure --with-lrelease-bin=LRELEASE_BINARY_WITH_PATH.

What does that mean?

Newbie here :wink:
WharfRat

Re: Compiling QTDIR environment variable must be set

Post by WharfRat »

I've never encountered --with-lrelease-bin= so I couldn't say for sure. However it appears to to be similar to --with-local-prefix=/tools which tells gcc to search for locally installed include files. The default location is / usr/ local so it's forcing an override of the default setting.

So it seems that LRELEASE_BINARY_WITH_PATH should be set just like QTDIR
Mint2be

Re: Compiling QTDIR environment variable must be set

Post by Mint2be »

WharfRat wrote:I've never encountered --with-lrelease-bin= so I couldn't say for sure. However it appears to to be similar to --with-local-prefix=/tools which tells gcc to search for locally installed include files. The default location is / usr/ local so it's forcing an override of the default setting.

So it seems that LRELEASE_BINARY_WITH_PATH should be set just like QTDIR

Here is the full text of what the readme says:
- qmake is searched in $QTDIR/bin, /usr/bin, /usr/local/bin,
/usr/lib/qt3/bin and in directories in $PATH. If you have
qmake installed in other directory, use:
./configure --with-qmake=QMAKE_BINARY_WITH_PATH

- QT comes with lrelease binary which is used for
localization data files translation. This binary is
searched in $QTDIR/bin, /usr/bin, /usr/local/bin,
/usr/lib/qt3/bin and in directories in $PATH.
If it is not found on your system, please use
./configure --with-lrelease-bin=LRELEASE_BINARY_WITH_PATH

In Synaptic there is qmake4 and 5, but no qmake 3, which is what it says it can't find. I've spent way too much time on this, but I really want to accomplish it for my own knowledge.
WharfRat

Re: Compiling QTDIR environment variable must be set

Post by WharfRat »

- QT comes with lrelease binary which is used for
localization data files translation. This binary is
searched in $QTDIR/bin, /usr/bin

Code: Select all

bill@qiana /media/linuxshared $ whereis lrelease
lrelease: /usr/bin/lrelease /usr/bin/X11/lrelease
So it's in the search path /usr/bin :?

What did you set QTDIR to :?:
Mint2be

Re: Compiling QTDIR environment variable must be set

Post by Mint2be »

I guess I don't understand what I am doing. What is the read me instructing me to do? What does the code you posted mean? Sorry, but I'm new to all this compiling. :?
WharfRat

Re: Compiling QTDIR environment variable must be set

Post by WharfRat »

Mint2be wrote:I guess I don't understand what I am doing. What is the read me instructing me to do? What does the code you posted mean? Sorry, but I'm new to all this compiling. :?
According to the message /usr/bin is one of the places where it searches for the binary lrelease.

So when I ask

Code: Select all

whereis lrelease
it comes back with /usr/bin/lrelease

So it's certainly there, at least on my system - what about yours :?:
Mint2be

Re: Compiling QTDIR environment variable must be set

Post by Mint2be »

whereis lrelease
lrelease: /usr/bin/lrelease /usr/bin/X11/lrelease
WharfRat

Re: Compiling QTDIR environment variable must be set

Post by WharfRat »

Well a little more digging and lrelease is a symlink /usr/bin/lrelease -> qtchooser

When I try

Code: Select all

lrelease -list-versions
it doesn't work, but

but this works

Code: Select all

bill@qiana ~/script $ qtchooser -list-versions
4
5
default
qt4-i386-linux-gnu
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5
I really don't know anything about this app, but maybe try

Code: Select all

export LRELEASE_BINARY_WITH_PATH=$(which qtchooser)
I don't see anything mentioning version 3 though :?
User avatar
Spearmint2
Level 16
Level 16
Posts: 6900
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Compiling QTDIR environment variable must be set

Post by Spearmint2 »

Like your profile name.

Is the program under your home folder but looking only in root folders for it?
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....
Mint2be

Re: Compiling QTDIR environment variable must be set

Post by Mint2be »

Now I'm back to the original QTDIR environment variable must be set error. I think it's no longer worth trying to compile this :evil:
WharfRat

Re: Compiling QTDIR environment variable must be set

Post by WharfRat »

Mint2be wrote:Now I'm back to the original QTDIR environment variable must be set error. I think it's no longer worth trying to compile this :evil:
Why are you keeping what you're attempting to compile a secret :?:
Mint2be

Re: Compiling QTDIR environment variable must be set

Post by Mint2be »

It is PDFedit, which I don't really even need because I have an addon for Firefox that works well, but once I got started I didn't want to give up :|

I actually mentioned that it was PDFedit in another post related to this one about how to install a program from a folder.
WharfRat

Re: Compiling QTDIR environment variable must be set

Post by WharfRat »

Is this package installed :?:

libqt4-qt3support - Qt 3 compatibility library for Qt 4

It's not on mine :?
Mint2be

Re: Compiling QTDIR environment variable must be set

Post by Mint2be »

WharfRat wrote:Is this package installed :?:

libqt4-qt3support - Qt 3 compatibility library for Qt 4

It's not on mine :?

Yep. It's installed already.
WharfRat

Re: Compiling QTDIR environment variable must be set

Post by WharfRat »

This app seems to suffering from outdatedness. I've seen references pertaining to installing qt3-dev-tools dated December 2005.

It's just not going to fly :(
Mint2be

Re: Compiling QTDIR environment variable must be set

Post by Mint2be »

WharfRat wrote:This app seems to suffering from outdatedness. I've seen references pertaining to installing qt3-dev-tools dated December 2005.

It's just not going to fly :(
I agree. At least it was good practice :mrgreen:
Locked

Return to “Beginner Questions”