Cannot choose Qt version in debian

Clash Royale CLAN TAG#URR8PPP
I've build (configure, make, make install) Qt 5.4.2 from sources to my Debian 7.8 x64. Now I try to build Qt creator, but my system doesn't want to see correct Qt version.
Firstly I tried to set $QTDIR and $PATH, but it is useless. Then I have read that it is necessary use qtchooser. Ok, what I have now:
ber@mydeb:/usr/lib/x86_64-linux-gnu/qtchooser$ qtchooser -l
4
5
@5
@qt5
default
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5
Initially there was no the 'default' conf, but I've created it by the cmd:
ber@mydeb:/usr/lib/x86_64-linux-gnu/qtchooser$ sudo nano default.conf
with the text:
QT_SELECT="5"
QTTOOLDIR="/usr/local/Qt-5.4.1/bin"
QTLIBDIR="/usr/local/Qt-5.4.1/"
After this my system still tried to use wrong version of Qt (from the folder /usr/lib/x86_64-linux-gnu/, which does not contain a working version of Qt).
Then I tried to set QT_SELECT=default, then QT_SELECT=5 and what I have now:
qtchooser -print-env
QT_SELECT="qt5"
QTTOOLDIR="QT_SELECT="5""
QTLIBDIR="QTTOOLDIR="/usr/local/Qt-5.4.1/bin""
i.e. QTTOOLDIR=variable is wrong, and when I try to use qmake:
qmake -v
qmake: could not exec 'QT_SELECT="5"/qmake': No such file or directory
What should I do to set the correct version of Qt, which is installed to the folder /usr/local/Qt-5.4.1/ ?
debian environment-variables qt
add a comment |
I've build (configure, make, make install) Qt 5.4.2 from sources to my Debian 7.8 x64. Now I try to build Qt creator, but my system doesn't want to see correct Qt version.
Firstly I tried to set $QTDIR and $PATH, but it is useless. Then I have read that it is necessary use qtchooser. Ok, what I have now:
ber@mydeb:/usr/lib/x86_64-linux-gnu/qtchooser$ qtchooser -l
4
5
@5
@qt5
default
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5
Initially there was no the 'default' conf, but I've created it by the cmd:
ber@mydeb:/usr/lib/x86_64-linux-gnu/qtchooser$ sudo nano default.conf
with the text:
QT_SELECT="5"
QTTOOLDIR="/usr/local/Qt-5.4.1/bin"
QTLIBDIR="/usr/local/Qt-5.4.1/"
After this my system still tried to use wrong version of Qt (from the folder /usr/lib/x86_64-linux-gnu/, which does not contain a working version of Qt).
Then I tried to set QT_SELECT=default, then QT_SELECT=5 and what I have now:
qtchooser -print-env
QT_SELECT="qt5"
QTTOOLDIR="QT_SELECT="5""
QTLIBDIR="QTTOOLDIR="/usr/local/Qt-5.4.1/bin""
i.e. QTTOOLDIR=variable is wrong, and when I try to use qmake:
qmake -v
qmake: could not exec 'QT_SELECT="5"/qmake': No such file or directory
What should I do to set the correct version of Qt, which is installed to the folder /usr/local/Qt-5.4.1/ ?
debian environment-variables qt
add a comment |
I've build (configure, make, make install) Qt 5.4.2 from sources to my Debian 7.8 x64. Now I try to build Qt creator, but my system doesn't want to see correct Qt version.
Firstly I tried to set $QTDIR and $PATH, but it is useless. Then I have read that it is necessary use qtchooser. Ok, what I have now:
ber@mydeb:/usr/lib/x86_64-linux-gnu/qtchooser$ qtchooser -l
4
5
@5
@qt5
default
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5
Initially there was no the 'default' conf, but I've created it by the cmd:
ber@mydeb:/usr/lib/x86_64-linux-gnu/qtchooser$ sudo nano default.conf
with the text:
QT_SELECT="5"
QTTOOLDIR="/usr/local/Qt-5.4.1/bin"
QTLIBDIR="/usr/local/Qt-5.4.1/"
After this my system still tried to use wrong version of Qt (from the folder /usr/lib/x86_64-linux-gnu/, which does not contain a working version of Qt).
Then I tried to set QT_SELECT=default, then QT_SELECT=5 and what I have now:
qtchooser -print-env
QT_SELECT="qt5"
QTTOOLDIR="QT_SELECT="5""
QTLIBDIR="QTTOOLDIR="/usr/local/Qt-5.4.1/bin""
i.e. QTTOOLDIR=variable is wrong, and when I try to use qmake:
qmake -v
qmake: could not exec 'QT_SELECT="5"/qmake': No such file or directory
What should I do to set the correct version of Qt, which is installed to the folder /usr/local/Qt-5.4.1/ ?
debian environment-variables qt
I've build (configure, make, make install) Qt 5.4.2 from sources to my Debian 7.8 x64. Now I try to build Qt creator, but my system doesn't want to see correct Qt version.
Firstly I tried to set $QTDIR and $PATH, but it is useless. Then I have read that it is necessary use qtchooser. Ok, what I have now:
ber@mydeb:/usr/lib/x86_64-linux-gnu/qtchooser$ qtchooser -l
4
5
@5
@qt5
default
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5
Initially there was no the 'default' conf, but I've created it by the cmd:
ber@mydeb:/usr/lib/x86_64-linux-gnu/qtchooser$ sudo nano default.conf
with the text:
QT_SELECT="5"
QTTOOLDIR="/usr/local/Qt-5.4.1/bin"
QTLIBDIR="/usr/local/Qt-5.4.1/"
After this my system still tried to use wrong version of Qt (from the folder /usr/lib/x86_64-linux-gnu/, which does not contain a working version of Qt).
Then I tried to set QT_SELECT=default, then QT_SELECT=5 and what I have now:
qtchooser -print-env
QT_SELECT="qt5"
QTTOOLDIR="QT_SELECT="5""
QTLIBDIR="QTTOOLDIR="/usr/local/Qt-5.4.1/bin""
i.e. QTTOOLDIR=variable is wrong, and when I try to use qmake:
qmake -v
qmake: could not exec 'QT_SELECT="5"/qmake': No such file or directory
What should I do to set the correct version of Qt, which is installed to the folder /usr/local/Qt-5.4.1/ ?
debian environment-variables qt
debian environment-variables qt
asked Aug 18 '17 at 10:20
Vladimir BershovVladimir Bershov
1064
1064
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Solved by:
- Restore my system state (I'm on a virtual machine) to the moment where I had not yet edit qtchooser's conf files
- Run
qtchooser -print-env, which had showed thatQT_SELECT="qt5" Opened
usr/lib/x86_64-linux-gnu/qtchooser$ sudo nano qt5.conf, where I had seen two strings without variable names:/usr/lib/x86_64-linux-gnu/qt5/bin
/usr/lib/x86_64-linux-gnuChanged them to:
/usr/local/Qt-5.4.1/bin
/usr/local/Qt-5.4.1/And now I have:
qmake -v
QMake version 3.0
Using Qt version 5.4.1 in /usr/local/Qt-5.4.1/lib
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f386910%2fcannot-choose-qt-version-in-debian%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Solved by:
- Restore my system state (I'm on a virtual machine) to the moment where I had not yet edit qtchooser's conf files
- Run
qtchooser -print-env, which had showed thatQT_SELECT="qt5" Opened
usr/lib/x86_64-linux-gnu/qtchooser$ sudo nano qt5.conf, where I had seen two strings without variable names:/usr/lib/x86_64-linux-gnu/qt5/bin
/usr/lib/x86_64-linux-gnuChanged them to:
/usr/local/Qt-5.4.1/bin
/usr/local/Qt-5.4.1/And now I have:
qmake -v
QMake version 3.0
Using Qt version 5.4.1 in /usr/local/Qt-5.4.1/lib
add a comment |
Solved by:
- Restore my system state (I'm on a virtual machine) to the moment where I had not yet edit qtchooser's conf files
- Run
qtchooser -print-env, which had showed thatQT_SELECT="qt5" Opened
usr/lib/x86_64-linux-gnu/qtchooser$ sudo nano qt5.conf, where I had seen two strings without variable names:/usr/lib/x86_64-linux-gnu/qt5/bin
/usr/lib/x86_64-linux-gnuChanged them to:
/usr/local/Qt-5.4.1/bin
/usr/local/Qt-5.4.1/And now I have:
qmake -v
QMake version 3.0
Using Qt version 5.4.1 in /usr/local/Qt-5.4.1/lib
add a comment |
Solved by:
- Restore my system state (I'm on a virtual machine) to the moment where I had not yet edit qtchooser's conf files
- Run
qtchooser -print-env, which had showed thatQT_SELECT="qt5" Opened
usr/lib/x86_64-linux-gnu/qtchooser$ sudo nano qt5.conf, where I had seen two strings without variable names:/usr/lib/x86_64-linux-gnu/qt5/bin
/usr/lib/x86_64-linux-gnuChanged them to:
/usr/local/Qt-5.4.1/bin
/usr/local/Qt-5.4.1/And now I have:
qmake -v
QMake version 3.0
Using Qt version 5.4.1 in /usr/local/Qt-5.4.1/lib
Solved by:
- Restore my system state (I'm on a virtual machine) to the moment where I had not yet edit qtchooser's conf files
- Run
qtchooser -print-env, which had showed thatQT_SELECT="qt5" Opened
usr/lib/x86_64-linux-gnu/qtchooser$ sudo nano qt5.conf, where I had seen two strings without variable names:/usr/lib/x86_64-linux-gnu/qt5/bin
/usr/lib/x86_64-linux-gnuChanged them to:
/usr/local/Qt-5.4.1/bin
/usr/local/Qt-5.4.1/And now I have:
qmake -v
QMake version 3.0
Using Qt version 5.4.1 in /usr/local/Qt-5.4.1/lib
answered Aug 18 '17 at 11:16
Vladimir BershovVladimir Bershov
1064
1064
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f386910%2fcannot-choose-qt-version-in-debian%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown