Cannot choose Qt version in debian

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












1















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/ ?










share|improve this question


























    1















    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/ ?










    share|improve this question
























      1












      1








      1








      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/ ?










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 18 '17 at 10:20









      Vladimir BershovVladimir Bershov

      1064




      1064




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Solved by:



          1. Restore my system state (I'm on a virtual machine) to the moment where I had not yet edit qtchooser's conf files

          2. Run qtchooser -print-env, which had showed that QT_SELECT="qt5"


          3. 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-gnu




          4. Changed them to:



            /usr/local/Qt-5.4.1/bin
            /usr/local/Qt-5.4.1/




          5. And now I have:



            qmake -v
            QMake version 3.0
            Using Qt version 5.4.1 in /usr/local/Qt-5.4.1/lib







          share|improve this answer






















            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
            );



            );













            draft saved

            draft discarded


















            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









            0














            Solved by:



            1. Restore my system state (I'm on a virtual machine) to the moment where I had not yet edit qtchooser's conf files

            2. Run qtchooser -print-env, which had showed that QT_SELECT="qt5"


            3. 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-gnu




            4. Changed them to:



              /usr/local/Qt-5.4.1/bin
              /usr/local/Qt-5.4.1/




            5. And now I have:



              qmake -v
              QMake version 3.0
              Using Qt version 5.4.1 in /usr/local/Qt-5.4.1/lib







            share|improve this answer



























              0














              Solved by:



              1. Restore my system state (I'm on a virtual machine) to the moment where I had not yet edit qtchooser's conf files

              2. Run qtchooser -print-env, which had showed that QT_SELECT="qt5"


              3. 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-gnu




              4. Changed them to:



                /usr/local/Qt-5.4.1/bin
                /usr/local/Qt-5.4.1/




              5. And now I have:



                qmake -v
                QMake version 3.0
                Using Qt version 5.4.1 in /usr/local/Qt-5.4.1/lib







              share|improve this answer

























                0












                0








                0







                Solved by:



                1. Restore my system state (I'm on a virtual machine) to the moment where I had not yet edit qtchooser's conf files

                2. Run qtchooser -print-env, which had showed that QT_SELECT="qt5"


                3. 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-gnu




                4. Changed them to:



                  /usr/local/Qt-5.4.1/bin
                  /usr/local/Qt-5.4.1/




                5. And now I have:



                  qmake -v
                  QMake version 3.0
                  Using Qt version 5.4.1 in /usr/local/Qt-5.4.1/lib







                share|improve this answer













                Solved by:



                1. Restore my system state (I'm on a virtual machine) to the moment where I had not yet edit qtchooser's conf files

                2. Run qtchooser -print-env, which had showed that QT_SELECT="qt5"


                3. 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-gnu




                4. Changed them to:



                  /usr/local/Qt-5.4.1/bin
                  /usr/local/Qt-5.4.1/




                5. And now I have:



                  qmake -v
                  QMake version 3.0
                  Using Qt version 5.4.1 in /usr/local/Qt-5.4.1/lib








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 18 '17 at 11:16









                Vladimir BershovVladimir Bershov

                1064




                1064



























                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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






                    Popular posts from this blog

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)