what is way to upgrade qt 5.5.1 to qt 5.15.2 using downloaded qt-everywhere-src-5.15.2.tar.gz ?
-
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 ?
-
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 ?
-
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 ?
@mrjj Thank you !!!
-
@mrjj Thank you !!!
@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 -
@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 2Hi
- 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. -
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.@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?
-
@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?
@Qt-embedded-developer You did not answer this question: "But do you need qtwebengine ? "
-
@Qt-embedded-developer You did not answer this question: "But do you need qtwebengine ? "
@jsulm no
-
@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").
-
@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").
@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 ?
-
@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 ?
@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. -
@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.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 foundShall i need to direct jump to step 5 : make docs to resolve above error
-
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 foundShall i need to direct jump to step 5 : make docs to resolve above error
@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/configureThis 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.
-
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 foundShall i need to direct jump to step 5 : make docs to resolve above error
@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...
-
@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/configureThis 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.
@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/ -
@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/@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".
-
@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.@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 ?
-
@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 ?
@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? -
@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?@jsulm sorry i got it instead absolute path i just tried "configure --help". Thank you.
-
@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 ?
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]