Boot2Qt - fail to build base/reference image
-
Hello, I'm running into trouble building the 'b2qt-embedded-qt5-image' for Qt 5.15.5.
It's been a few years since I've built an image (I'm upgrading a 5.6.x image of mine) and am going through the process of setting up a new build PC.
I followed the instructions at https://doc.qt.io/QtForDeviceCreation/b2qt-customization-requirements.html, but instead of installing repo manually I just ran the b2qt-init-build-env script to init the environment for a imx6qsabresd:
b2qt-init-build-env init --device imx6qsabresd
I then follow the commands at https://doc.qt.io/QtForDeviceCreation/b2qt-how-to-create-b2qt-image.html by running the following commands:
export MACHINE=imx6qsabresd source ./setup-environment.sh bitbake b2qt-embedded-qt5-image
Everything is happy, for a while. It completes around 3700 tasks (out of 7214) and then gracefully stops the build after failing to fetch qt packages (up to 12 now because that is the number of cores on my build server), with the error:
ssh: connect to host codereview.qt-project.org port 22: Connection timed out fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Here is a list of the failed recipes:
~/yocto/sources/meta-qt5/recipes-qt/qt5/qtbase-native_git.bb:do_fetch
~/yocto/sources/meta-qt5/recipes-qt/qt5/qtdeclarative_git.bb:do_fetch
~/yocto/sources/meta-qt5/recipes-qt/qt5/qtxmlpatterns_git.bb:do_fetch
~/yocto/sources/meta-qt5/recipes-qt/qt5/qtmultimedia_git.bb:do_fetch
~/yocto/sources/meta-qt5/recipes-qt/qt5/qtlocation_git.bb:do_fetch
~/yocto/sources/meta-qt5/recipes-qt/qt5/qtwebsockets_git.bb:do_fetch
~/yocto/sources/meta-qt5/recipes-qt/qt5/qtwebchannel_git.bb:do_fetch
~/yocto/sources/meta-qt5/recipes-qt/qt5/qtquickcontrols_git.bb:do_fetch
~/yocto/sources/meta-qt5/recipes-qt/qt5/qtquickcontrols2_git.bb:do_fetch
~/yocto/sources/meta-qt5/recipes-qt/qt5/qtsvg_git.bb:do_fetch
~/yocto/sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_fetch
virtual:native:~/yocto/sources/meta-qt5/recipes-qt/qt5/qtdeclarative_git.bb:do_fetchI tried modifying the file ~/yocto/sources/meta-qt5/recipes-qt/qt5/qt5-lts.inc:
require qt5-git.inc QT_LTS_GIT ?= "git://codereview.qt-project.org/${QT_GIT_PROJECT}" QT_GIT = "${QT_LTS_GIT}" QT_LTS_GIT_PROTOCOL ?= "ssh" QT_GIT_PROTOCOL = "${QT_LTS_GIT_PROTOCOL}" QT_MODULE_BRANCH = "tqtc/lts-5.15.5" QT_LTS_MODULE_REPO ?= "tqtc-${QT_MODULE}.git" QT_MODULE_REPO = "${QT_LTS_MODULE_REPO}" # Default to commercially licensed Qt LTS QT_EDITION = "commercial"
But it only seems to break things worse. I changed the protocol and I changed the URL for QT_LTS_GIT.
What am I missing? Do I need an account at qt-project.org? Do I need ssh keys? Do I need to pull from a different source? Did I configure something incorrectly? Do I need to change the ssh port number?
Thanks for your time!
-
@qtgopher said in Boot2Qt - fail to build base/reference image:
ssh: connect to host codereview.qt-project.org port 22: Connection timed out fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
[...]
What am I missing? Do I need an account at qt-project.org? Do I need ssh keys? Do I need to pull from a different source? Did I configure something incorrectly? Do I need to change the ssh port number?
The port for codereview.qt-project.org git access over ssh is 29418. I think an account is necessary.
-
@jeremy_k said in Boot2Qt - fail to build base/reference image:
The port for codereview.qt-project.org git access over ssh is 29418. I think an account is necessary.
Thanks @jeremy_k, I'm going to reach out to support and will dig into the link you posted while I wait for a response.