why below error come when in install qt ?
-
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 -
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@Qt-embedded-developer Do you really need to build Qt by yourself?
-
@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.
-
@Qt-embedded-developer Do you really need to build Qt by yourself?
@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.
-
@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.
@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...
-
@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...
@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 ?
-
@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 ?
@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") -
@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.
-
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.