Build fail (Debian/buster), workaround


#1

Using @OmegaHeron 's excellent buster_buildhf.sh script

I’m getting a build-fail in Interface, which seems to be related to compiling the component ‘resources.rcc’:

[  5%] Generating ../../interface/compiledResources/resources.rcc
/bin/sh: 1: /usr/lib/bin/rcc: not found
interface/CMakeFiles/resources.dir/build.make:1424: recipe for target '../interface/compiledResources/resources.rcc' failed
make[3]: *** [../interface/compiledResources/resources.rcc] Error 127
CMakeFiles/Makefile2:2887: recipe for target 'interface/CMakeFiles/resources.dir/all' failed

looks like /usr/lib/bin/rcc is in a different location on Debian systems ( /usr/lib/qt5/bin/rcc )

Workaround: Put a simlink to /usr/lib/qt5/bin/rcc in the location the HF build scripts are expecting it:

sudo mkdir /usr/lib/bin
sudo ln -s /usr/lib/qt5/bin/rcc  /usr/lib/bin/rcc

Compile now succeeds.