Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. why below error come when in install qt ?
Forum Updated to NodeBB v4.3 + New Features

why below error come when in install qt ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 5 Posters 1.0k 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 am installing qt 5.15.2 on my linux pc . when i install it as per link https://doc.qt.io/qt-5/linux-building.html

    i get error at step 3 when i use make command.

    How to resolve below error ?

    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

    jsulmJ 1 Reply Last reply
    0
    • Q Qt embedded developer

      I am installing qt 5.15.2 on my linux pc . when i install it as per link https://doc.qt.io/qt-5/linux-building.html

      i get error at step 3 when i use make command.

      How to resolve below error ?

      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

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

      @Qt-embedded-developer Do you really need to build Qt by yourself?

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

      Q 1 Reply Last reply
      0
      • C Offline
        C Offline
        ChrisW67
        wrote on last edited by
        #3

        @Qt-embedded-developer said in why below error come when in install qt ?:

        Package nss was not found in the pkg-config search path.

        This probably means you do not have the developer component of the nss library (or any of it) installed. Depending on your distribution it may be called nss-dev or nss3-dev in your package repository.

        @jsulm has a good question. If you are targetting the platform you are building on then the binary installer, or your distro's package manager, are easier paths.

        If your handle is anything to go by then you may be expecting to cross-compile for another target. That is a larger can of worms.

        1 Reply Last reply
        0
        • jsulmJ jsulm

          @Qt-embedded-developer Do you really need to build Qt by yourself?

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

          @jsulm i wan to install qt 5.15.2 offline on my linux pc and to install qt 5.15.2 i followed the link "https://doc.qt.io/qt-5/linux-building.html".

          So there they have mentioned in step 3 i need to use " make " command . so if meaning of this is build qt then yes.

          jsulmJ 1 Reply Last reply
          0
          • Q Qt embedded developer

            @jsulm i wan to install qt 5.15.2 offline on my linux pc and to install qt 5.15.2 i followed the link "https://doc.qt.io/qt-5/linux-building.html".

            So there they have mentioned in step 3 i need to use " make " command . so if meaning of this is build qt then yes.

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

            @Qt-embedded-developer But you don't necesserilly have to build Qt to install it. So the question is: do you want to use Qt on the machine where you install it? If so then why don't you simply use online or offline installer? This is way easier and faster than build it by yourself...

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

            Q 1 Reply Last reply
            0
            • jsulmJ jsulm

              @Qt-embedded-developer But you don't necesserilly have to build Qt to install it. So the question is: do you want to use Qt on the machine where you install it? If so then why don't you simply use online or offline installer? This is way easier and faster than build it by yourself...

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

              @jsulm said in why below error come when in install qt ?:

              offline installer

              Yes. from where i can find offline installer and related guide to install it on my pc ?

              jsulmJ 1 Reply Last reply
              0
              • Q Qt embedded developer

                @jsulm said in why below error come when in install qt ?:

                offline installer

                Yes. from where i can find offline installer and related guide to install it on my pc ?

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

                @Qt-embedded-developer Offline installer: https://www.qt.io/offline-installers
                If you need more recent versions use online installer (https://www.qt.io/download, "Downloads for open source users")

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

                1 Reply Last reply
                0
                • GUYUEZUNZHEG Offline
                  GUYUEZUNZHEG Offline
                  GUYUEZUNZHE
                  wrote on last edited by
                  #8

                  @jsulm I want to build qt on arm64 structure. But there are only amd64 structs online installer. Is there any version qt for this problem thanks.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Hi,

                    No, you either have to cross-compile it yourself or if your target is powerful enough, build directly on it with the Qt provided by the Linux distribution that runs on jt.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    1

                    • Login

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