Compiling QTDIR environment variable must be set
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.
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.
Compiling QTDIR environment variable must be set
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Compiling QTDIR environment variable must be set
Compiling what
The README might mention that you have to set that in the environment with
The README might mention that you have to set that in the environment with
Code: Select all
export QTDIR="/path/to/somwhere"
Re: Compiling QTDIR environment variable must be set
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
./configure --with-lrelease-bin=LRELEASE_BINARY_WITH_PATH.
What does that mean?
Newbie here
Re: Compiling QTDIR environment variable must be set
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
So it seems that LRELEASE_BINARY_WITH_PATH should be set just like QTDIR
Re: Compiling QTDIR environment variable must be set
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.
Re: Compiling QTDIR environment variable must be set
- 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
What did you set QTDIR to
Re: Compiling QTDIR environment variable must be set
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.
Re: Compiling QTDIR environment variable must be set
According to the message /usr/bin is one of the places where it searches for the binary lrelease.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.
So when I ask
Code: Select all
whereis lrelease
So it's certainly there, at least on my system - what about yours
Re: Compiling QTDIR environment variable must be set
whereis lrelease
lrelease: /usr/bin/lrelease /usr/bin/X11/lrelease
lrelease: /usr/bin/lrelease /usr/bin/X11/lrelease
Re: Compiling QTDIR environment variable must be set
Well a little more digging and lrelease is a symlink /usr/bin/lrelease -> qtchooser
When I try
it doesn't work, but
but this works
I really don't know anything about this app, but maybe try
I don't see anything mentioning version 3 though
When I try
Code: Select all
lrelease -list-versions
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
Code: Select all
export LRELEASE_BINARY_WITH_PATH=$(which qtchooser)
- Spearmint2
- Level 16
- Posts: 6900
- Joined: Sat May 04, 2013 1:41 pm
- Location: Maryland, USA
Re: Compiling QTDIR environment variable must be set
Like your profile name.
Is the program under your home folder but looking only in root folders for it?
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,....
Re: Compiling QTDIR environment variable must be set
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
Re: Compiling QTDIR environment variable must be set
Why are you keeping what you're attempting to compile a secretMint2be 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
Re: Compiling QTDIR environment variable must be set
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.
I actually mentioned that it was PDFedit in another post related to this one about how to install a program from a folder.
Re: Compiling QTDIR environment variable must be set
Is this package installed
libqt4-qt3support - Qt 3 compatibility library for Qt 4
It's not on mine
libqt4-qt3support - Qt 3 compatibility library for Qt 4
It's not on mine
Re: Compiling QTDIR environment variable must be set
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.
Re: Compiling QTDIR environment variable must be set
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
It's just not going to fly
Re: Compiling QTDIR environment variable must be set
I agree. At least it was good practiceWharfRat 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