Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. what is way to upgrade qt 5.5.1 to qt 5.15.2 using downloaded qt-everywhere-src-5.15.2.tar.gz ?
Forum Updated to NodeBB v4.3 + New Features

what is way to upgrade qt 5.5.1 to qt 5.15.2 using downloaded qt-everywhere-src-5.15.2.tar.gz ?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
22 Posts 3 Posters 5.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by
    #1

    I s it possible to upgrade from QT 5.5.1 to qt 5.15.2 using qt-everywhere-src-5.15.2 .tar.gz

    which command i need to use on linux to upgrade it ?

    If not possible then let me know how to install it on linux using offline version qt-everywhere-src-5.15.2.tar.gz ?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      No, you cant upgrade. You can install another version and remove the old or have both.

      qt-everywhere-src is the source code so you "install" it by building it first and then you can install it.

      https://doc.qt.io/qt-5/build-sources.html
      make SURE to read it slow and good and also make sure you have all other stuff needed to be installed before trying
      to compile Qt. It takes a long time so its best to be not in hurry when doing it or you can end of wasting days on it.

      Is there any reason you want to build your own qt ?

      Q 1 Reply Last reply
      2
      • mrjjM mrjj

        Hi
        No, you cant upgrade. You can install another version and remove the old or have both.

        qt-everywhere-src is the source code so you "install" it by building it first and then you can install it.

        https://doc.qt.io/qt-5/build-sources.html
        make SURE to read it slow and good and also make sure you have all other stuff needed to be installed before trying
        to compile Qt. It takes a long time so its best to be not in hurry when doing it or you can end of wasting days on it.

        Is there any reason you want to build your own qt ?

        Q Offline
        Q Offline
        Qt embedded developer
        wrote on last edited by Qt embedded developer
        #3

        @mrjj Thank you !!!

        Q 1 Reply Last reply
        0
        • Q Qt embedded developer

          @mrjj Thank you !!!

          Q Offline
          Q Offline
          Qt embedded developer
          wrote on last edited by
          #4

          @mrjj why below error come when in install qt ?

          ERROR at //build/config/linux/pkg_config.gni:103:17: Script returned non-zero exit code
          pkgresult = exec_script(pkg_config_script, args, "value")
          ^----------
          Current dir: /home/mangal/WORK_SOFTRONICS/qt5.15/qt-everywhere-src-5.15.2/qtwebengine/src/pdf/release/
          Command: /usr/bin/python2 /home/mangal/WORK_SOFTRONICS/qt5.15/qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/build/config/linux/pkg-config.py -p pkg-config nss -v -lssl3
          Returned 1.
          stderr:

          Package nss was not found in the pkg-config search path.
          Perhaps you should add the directory containing `nss.pc'
          to the PKG_CONFIG_PATH environment variable
          No package 'nss' found
          Could not run pkg-config.

          See //build/config/linux/nss/BUILD.gn:15:3: whence it was called.
          pkg_config("system_nss_no_ssl_config") {
          ^---------------------------------------
          See //crypto/BUILD.gn:214:25: which caused the file to be included.
          public_configs += [ "//build/config/linux/nss:system_nss_no_ssl_config" ]
          ^--------------------------------------------------
          Project ERROR: GN run error!
          Makefile:65: recipe for target 'sub-gn_run-pro-make_first' failed
          make[3]: *** [sub-gn_run-pro-make_first] Error 3
          make[3]: Leaving directory '/home/mangal/WORK_SOFTRONICS/qt5.15/qt-everywhere-src-5.15.2/qtwebengine/src/pdf'
          Makefile:100: recipe for target 'sub-pdf-make_first' failed
          make[2]: *** [sub-pdf-make_first] Error 2
          make[2]: Leaving directory '/home/mangal/WORK_SOFTRONICS/qt5.15/qt-everywhere-src-5.15.2/qtwebengine/src'
          Makefile:48: recipe for target 'sub-src-make_first' failed
          make[1]: *** [sub-src-make_first] Error 2
          make[1]: Leaving directory '/home/mangal/WORK_SOFTRONICS/qt5.15/qt-everywhere-src-5.15.2/qtwebengine'
          Makefile:1087: recipe for target 'module-qtwebengine-make_first' failed
          make: *** [module-qtwebengine-make_first] Error 2

          mrjjM 1 Reply Last reply
          0
          • Q Qt embedded developer

            @mrjj why below error come when in install qt ?

            ERROR at //build/config/linux/pkg_config.gni:103:17: Script returned non-zero exit code
            pkgresult = exec_script(pkg_config_script, args, "value")
            ^----------
            Current dir: /home/mangal/WORK_SOFTRONICS/qt5.15/qt-everywhere-src-5.15.2/qtwebengine/src/pdf/release/
            Command: /usr/bin/python2 /home/mangal/WORK_SOFTRONICS/qt5.15/qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/build/config/linux/pkg-config.py -p pkg-config nss -v -lssl3
            Returned 1.
            stderr:

            Package nss was not found in the pkg-config search path.
            Perhaps you should add the directory containing `nss.pc'
            to the PKG_CONFIG_PATH environment variable
            No package 'nss' found
            Could not run pkg-config.

            See //build/config/linux/nss/BUILD.gn:15:3: whence it was called.
            pkg_config("system_nss_no_ssl_config") {
            ^---------------------------------------
            See //crypto/BUILD.gn:214:25: which caused the file to be included.
            public_configs += [ "//build/config/linux/nss:system_nss_no_ssl_config" ]
            ^--------------------------------------------------
            Project ERROR: GN run error!
            Makefile:65: recipe for target 'sub-gn_run-pro-make_first' failed
            make[3]: *** [sub-gn_run-pro-make_first] Error 3
            make[3]: Leaving directory '/home/mangal/WORK_SOFTRONICS/qt5.15/qt-everywhere-src-5.15.2/qtwebengine/src/pdf'
            Makefile:100: recipe for target 'sub-pdf-make_first' failed
            make[2]: *** [sub-pdf-make_first] Error 2
            make[2]: Leaving directory '/home/mangal/WORK_SOFTRONICS/qt5.15/qt-everywhere-src-5.15.2/qtwebengine/src'
            Makefile:48: recipe for target 'sub-src-make_first' failed
            make[1]: *** [sub-src-make_first] Error 2
            make[1]: Leaving directory '/home/mangal/WORK_SOFTRONICS/qt5.15/qt-everywhere-src-5.15.2/qtwebengine'
            Makefile:1087: recipe for target 'module-qtwebengine-make_first' failed
            make: *** [module-qtwebengine-make_first] Error 2

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi

            • No package 'nss' found

            So its some dependencies for the qtwebengine that is not installed I think.

            But do you need qtwebengine ? as else you can tell it not to build it - as that saves quite some time
            and you can ignore the error.

            Q 1 Reply Last reply
            0
            • mrjjM mrjj

              Hi

              • No package 'nss' found

              So its some dependencies for the qtwebengine that is not installed I think.

              But do you need qtwebengine ? as else you can tell it not to build it - as that saves quite some time
              and you can ignore the error.

              Q Offline
              Q Offline
              Qt embedded developer
              wrote on last edited by
              #6

              @mrjj so what exactly i need to write on terminal . actually

              i get stuck at step 3 where i use make command and then i got this error.

              so what exactly i need to write there ?

              am i doing any mistake to install it on linux pc?

              jsulmJ 1 Reply Last reply
              0
              • Q Qt embedded developer

                @mrjj so what exactly i need to write on terminal . actually

                i get stuck at step 3 where i use make command and then i got this error.

                so what exactly i need to write there ?

                am i doing any mistake to install it on linux pc?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Qt-embedded-developer You did not answer this question: "But do you need qtwebengine ? "

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                Q 1 Reply Last reply
                1
                • jsulmJ jsulm

                  @Qt-embedded-developer You did not answer this question: "But do you need qtwebengine ? "

                  Q Offline
                  Q Offline
                  Qt embedded developer
                  wrote on last edited by
                  #8

                  @jsulm no

                  jsulmJ 1 Reply Last reply
                  0
                  • Q Qt embedded developer

                    @jsulm no

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @Qt-embedded-developer Then you can disable it when you call configure. So, start from scratch with clean build/source folder and tell configure command to disable qtwebengine. To find out what parameter you have to pass to configure check its documentation (enter "configure --help").

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    Q 1 Reply Last reply
                    1
                    • jsulmJ jsulm

                      @Qt-embedded-developer Then you can disable it when you call configure. So, start from scratch with clean build/source folder and tell configure command to disable qtwebengine. To find out what parameter you have to pass to configure check its documentation (enter "configure --help").

                      Q Offline
                      Q Offline
                      Qt embedded developer
                      wrote on last edited by
                      #10

                      @jsulm means i need to do first

                      1] make clean

                      and then

                      2] i need to explore the "configure command to disable qtwebengine"

                      Am i right ?

                      jsulmJ 1 Reply Last reply
                      0
                      • Q Qt embedded developer

                        @jsulm means i need to do first

                        1] make clean

                        and then

                        2] i need to explore the "configure command to disable qtwebengine"

                        Am i right ?

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @Qt-embedded-developer It would be better to delete everything in the build folder (or even delete the build folder and create it again). But I don't know whether you're doing out of source builds.
                        And yes, you need to find out what parameter to pass to configure to disable qtwebengine.

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        Q 2 Replies Last reply
                        1
                        • jsulmJ jsulm

                          @Qt-embedded-developer It would be better to delete everything in the build folder (or even delete the build folder and create it again). But I don't know whether you're doing out of source builds.
                          And yes, you need to find out what parameter to pass to configure to disable qtwebengine.

                          Q Offline
                          Q Offline
                          Qt embedded developer
                          wrote on last edited by Qt embedded developer
                          #12

                          @jsulm

                          Sorry for asking small small information.

                          1 ]why you suggest me to other than " make clean " command ?

                          2] Other thing is there i don't know where exactly build directory get created ?
                          my current directory where i used make command is :
                          /home/mangal/WORK_SOFTRONICS/qt5.15/qt-everywhere-src-5.15.2/

                          3]when i enter "configure --help" i got below error how to resolve it ?
                          configure: command not found

                          Shall i need to direct jump to step 5 : make docs to resolve above error

                          jsulmJ 2 Replies Last reply
                          0
                          • Q Qt embedded developer

                            @jsulm

                            Sorry for asking small small information.

                            1 ]why you suggest me to other than " make clean " command ?

                            2] Other thing is there i don't know where exactly build directory get created ?
                            my current directory where i used make command is :
                            /home/mangal/WORK_SOFTRONICS/qt5.15/qt-everywhere-src-5.15.2/

                            3]when i enter "configure --help" i got below error how to resolve it ?
                            configure: command not found

                            Shall i need to direct jump to step 5 : make docs to resolve above error

                            jsulmJ Offline
                            jsulmJ Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            @Qt-embedded-developer said in what is way to upgrade qt 5.5.1 to qt 5.15.2 using downloaded qt-everywhere-src-5.15.2.tar.gz ?:

                            where exactly build directory get created ?

                            Build directory id created by you.
                            But it looks like you build inside source code tree which is bad.+
                            Delete the source code folder, extract it again. Then create a build folder, go to this folder (in bellow example I assume that build folder is created in same folder which also contains Qt source code folder):

                            mkdir build-qt
                            cd build-qt
                            ../qt-everywhere-src-5.15.2/configure
                            

                            This approach is called out of source build and should be always used as it does not pollute the source code folder with build artefacts.

                            "why you suggest me to other than " make clean " command ?" - because make clean could still leave some build artefacts.

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            Q 1 Reply Last reply
                            2
                            • Q Qt embedded developer

                              @jsulm

                              Sorry for asking small small information.

                              1 ]why you suggest me to other than " make clean " command ?

                              2] Other thing is there i don't know where exactly build directory get created ?
                              my current directory where i used make command is :
                              /home/mangal/WORK_SOFTRONICS/qt5.15/qt-everywhere-src-5.15.2/

                              3]when i enter "configure --help" i got below error how to resolve it ?
                              configure: command not found

                              Shall i need to direct jump to step 5 : make docs to resolve above error

                              jsulmJ Offline
                              jsulmJ Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              @Qt-embedded-developer said in what is way to upgrade qt 5.5.1 to qt 5.15.2 using downloaded qt-everywhere-src-5.15.2.tar.gz ?:

                              configure: command not found

                              Then simply use the complete path to configure...

                              https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 Reply Last reply
                              0
                              • jsulmJ jsulm

                                @Qt-embedded-developer said in what is way to upgrade qt 5.5.1 to qt 5.15.2 using downloaded qt-everywhere-src-5.15.2.tar.gz ?:

                                where exactly build directory get created ?

                                Build directory id created by you.
                                But it looks like you build inside source code tree which is bad.+
                                Delete the source code folder, extract it again. Then create a build folder, go to this folder (in bellow example I assume that build folder is created in same folder which also contains Qt source code folder):

                                mkdir build-qt
                                cd build-qt
                                ../qt-everywhere-src-5.15.2/configure
                                

                                This approach is called out of source build and should be always used as it does not pollute the source code folder with build artefacts.

                                "why you suggest me to other than " make clean " command ?" - because make clean could still leave some build artefacts.

                                Q Offline
                                Q Offline
                                Qt embedded developer
                                wrote on last edited by
                                #15

                                @jsulm said in what is way to upgrade qt 5.5.1 to qt 5.15.2 using downloaded qt-everywhere-src-5.15.2.tar.gz ?:

                                qt-everywhere-src-5.15.2

                                "build-qt" directory i need to create inside "qt-everywhere-src-5.15.2" directory or outside the directory ?

                                means in below directory
                                /home/mangal/WORK_SOFTRONICS/qt-everywhere-src-5.15.2/

                                or inside below directory ?
                                /home/mangal/WORK_SOFTRONICS/

                                jsulmJ 1 Reply Last reply
                                0
                                • Q Qt embedded developer

                                  @jsulm said in what is way to upgrade qt 5.5.1 to qt 5.15.2 using downloaded qt-everywhere-src-5.15.2.tar.gz ?:

                                  qt-everywhere-src-5.15.2

                                  "build-qt" directory i need to create inside "qt-everywhere-src-5.15.2" directory or outside the directory ?

                                  means in below directory
                                  /home/mangal/WORK_SOFTRONICS/qt-everywhere-src-5.15.2/

                                  or inside below directory ?
                                  /home/mangal/WORK_SOFTRONICS/

                                  jsulmJ Offline
                                  jsulmJ Offline
                                  jsulm
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #16

                                  @Qt-embedded-developer said in what is way to upgrade qt 5.5.1 to qt 5.15.2 using downloaded qt-everywhere-src-5.15.2.tar.gz ?:

                                  "build-qt" directory i need to create inside "qt-everywhere-src-5.15.2" directory or outside the directory ?

                                  Outside, I described above how it should be: "in bellow example I assume that build folder is created in same folder which also contains Qt source code folder".

                                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  1 Reply Last reply
                                  1
                                  • jsulmJ jsulm

                                    @Qt-embedded-developer It would be better to delete everything in the build folder (or even delete the build folder and create it again). But I don't know whether you're doing out of source builds.
                                    And yes, you need to find out what parameter to pass to configure to disable qtwebengine.

                                    Q Offline
                                    Q Offline
                                    Qt embedded developer
                                    wrote on last edited by
                                    #17

                                    @jsulm said in what is way to upgrade qt 5.5.1 to qt 5.15.2 using downloaded qt-everywhere-src-5.15.2.tar.gz ?:

                                    disable qtwebengine

                                    Actually configure --help command not working it give error configure command not found.

                                    As you have said i need to find out what parameter to pass to configure to disable qtwebengine ? So this information from where i can find ?

                                    jsulmJ Q 2 Replies Last reply
                                    0
                                    • Q Qt embedded developer

                                      @jsulm said in what is way to upgrade qt 5.5.1 to qt 5.15.2 using downloaded qt-everywhere-src-5.15.2.tar.gz ?:

                                      disable qtwebengine

                                      Actually configure --help command not working it give error configure command not found.

                                      As you have said i need to find out what parameter to pass to configure to disable qtwebengine ? So this information from where i can find ?

                                      jsulmJ Offline
                                      jsulmJ Offline
                                      jsulm
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #18

                                      @Qt-embedded-developer said in what is way to upgrade qt 5.5.1 to qt 5.15.2 using downloaded qt-everywhere-src-5.15.2.tar.gz ?:

                                      configure command not found

                                      I really don't get the problem!
                                      Configure should be inside /home/mangal/WORK_SOFTRONICS/qt-everywhere-src-5.15.2/.
                                      So, what stops you from using absolute path to configure to call it?

                                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      Q 1 Reply Last reply
                                      0
                                      • jsulmJ jsulm

                                        @Qt-embedded-developer said in what is way to upgrade qt 5.5.1 to qt 5.15.2 using downloaded qt-everywhere-src-5.15.2.tar.gz ?:

                                        configure command not found

                                        I really don't get the problem!
                                        Configure should be inside /home/mangal/WORK_SOFTRONICS/qt-everywhere-src-5.15.2/.
                                        So, what stops you from using absolute path to configure to call it?

                                        Q Offline
                                        Q Offline
                                        Qt embedded developer
                                        wrote on last edited by
                                        #19

                                        @jsulm sorry i got it instead absolute path i just tried "configure --help". Thank you.

                                        1 Reply Last reply
                                        0
                                        • Q Qt embedded developer

                                          @jsulm said in what is way to upgrade qt 5.5.1 to qt 5.15.2 using downloaded qt-everywhere-src-5.15.2.tar.gz ?:

                                          disable qtwebengine

                                          Actually configure --help command not working it give error configure command not found.

                                          As you have said i need to find out what parameter to pass to configure to disable qtwebengine ? So this information from where i can find ?

                                          Q Offline
                                          Q Offline
                                          Qt embedded developer
                                          wrote on last edited by Qt embedded developer
                                          #20

                                          @Qt-embedded-developer

                                          when i write command for disable qtwebengine i got below error:

                                          root@mangal-Latitude-E5450:/home/mangal/WORK_SOFTRONICS/qt5.15/build-qt# ../qt-everywhere-src-5.15.2/configure -no-feature-webengine-alsa -no-feature-webengine-pulseaudio -no-feature-webengine-embedded-build -no-feature-webengine-icu -no-feature-webengine-ffmpeg -no-feature-webengine-opus -no-feature-webengine-webp -no-feature-webengine-pepper-plugins -no-feature-webengine-printing-and-pdf -no-feature-webengine-proprietary-codecs -no-feature-webengine-spellchecker -no-feature-webengine-native-spellchecker -no-feature-webengine-webrtc

                                          • cd qtbase
                                          • /home/mangal/WORK_SOFTRONICS/qt5.15/qt-everywhere-src-5.15.2/qtbase/configure -top-level -no-feature-webengine-alsa -no-feature-webengine-pulseaudio -no-feature-webengine-embedded-build -no-feature-webengine-icu -no-feature-webengine-ffmpeg -no-feature-webengine-opus -no-feature-webengine-webp -no-feature-webengine-pepper-plugins -no-feature-webengine-printing-and-pdf -no-feature-webengine-proprietary-codecs -no-feature-webengine-spellchecker -no-feature-webengine-native-spellchecker -no-feature-webengine-webrtc
                                            Preparing build tree...
                                            Creating qmake...
                                            .Done.
                                            ERROR: Enabling/Disabling unknown feature 'webengine-icu'.

                                          when i used configure --help at that time i have seen that there are -webengine-icu option mentioned. below i wrote the configure --help's web engine related option

                                          WebEngine options:

                                          -webengine-alsa ................ Enable ALSA support [auto] (Linux only)
                                          -webengine-pulseaudio .......... Enable PulseAudio support [auto]
                                          (Linux only)
                                          -webengine-embedded-build ...... Enable Linux embedded build [auto]
                                          (Linux only)
                                          -webengine-icu ................. Use system ICU libraries [system/qt]
                                          (Linux only)
                                          -webengine-ffmpeg .............. Use system FFmpeg libraries [system/qt]
                                          (Linux only)
                                          -webengine-opus ................ Use system Opus libraries [system/qt]
                                          (Linux only)
                                          -webengine-webp ................ Use system WebP libraries [system/qt]
                                          (Linux only)
                                          -webengine-pepper-plugins ...... Enable use of Pepper Flash and Widevine
                                          plugins [auto]
                                          -webengine-printing-and-pdf .... Enable use of printing and output to PDF
                                          [auto]
                                          -webengine-proprietary-codecs .. Enable support for proprietary codecs [no]
                                          -webengine-spellchecker ........ Enable support for spellchecker [yes]
                                          -webengine-native-spellchecker . Enable support for native spellchecker [no]
                                          (macOS only)
                                          -webengine-webrtc .............. Enable support for WebRTC [auto]

                                          Q 1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved