Closed maxiy01 closed 3 years ago
Here's what I'm done so far:
I tried to fo find a reason by using bash verbose mode:
sh -x build.sh
It gave me this output:
I see there 3 errors:
build.sh: 3: build.sh: [[: not found
, build.sh: 16: build.sh: declare: not found
and so on. These can be fixed by running /usr/bin/env bash -x build.sh
or just
/bin/bash -x build.shinstead of
sh -x build.sh`E: Unable to correct problems, you have held broken packages.
. I found that this is problem with installing npm. I fixed this by changing this line in build.sh:
$permission apt-get install -qq "g++" "cmake" "libssl-dev" "nodejs" "npm" && installed=1
into these:
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - || continue
$permission apt-get install -y nodejs || continue
$permission npm install -g npm@latest && installed=1
...error: ‘SkipEmptyParts’ is not a member of ‘Qt’
. For this i found soultion here: Change all Qt::SkipEmptyParts
to QString::SplitBehavior::SkipEmptyParts
. I've done this, and now my output looks like this:
You can test everything there.
Tested it on my local machine (OS: Debian 10 buster). Build fails with same errors.
I got it. According to QT documentation, loadRelaxed()
function was introduced in Qt 5.14, but default version installed through apt is 5.9.5.
As you guessed, your Qt packages are likely too old. I recommend using the beineri repository for Qt packages on Linux (here for bionic
):
sudo add-apt-repository ppa:beineri/opt-qt-5.15.2-bionic
sudo apt-get update
sudo apt install qt515base qt515multimedia qt515script qt515tools qt515translations
source /opt/qt515/bin/qt515-env.sh
I'll update the documentation to add this information.
Thanks for your answer and sorry for late response. I managed to build grabber using QT 5.15.
Bug description
When I'm trying to compile it on colab, build fails with error "E: Unable to correct problems, you have held broken packages.", even though there are no broken packages present.
Steps to reproduce
Expected behavior
Build finishes successfully
Actual behavior
build fails with error "E: Unable to correct problems, you have held broken packages.". build.sh output:
System information