raspberrypi / rpi-imager

The home of Raspberry Pi Imager, a user-friendly tool for creating bootable media for Raspberry Pi devices.
https://www.raspberrypi.com/software
Other
1.66k stars 252 forks source link

[BUG]: qt5 cmake error when building embedded version #834

Closed CrossScarDev closed 2 months ago

CrossScarDev commented 6 months ago

What happened?

I get the following error when I run ./build.sh:

CMake Error at /home/crossscar/rpi-imager/embedded/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:26 (message):
  The imported target "Qt5::Core" references the file

     "/home/crossscar/rpi-imager/embedded/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/include/qt5/"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/home/crossscar/rpi-imager/embedded/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/lib/cmake/Qt5Core/Qt5CoreConfig.cmake"

  but not all the files it references.

Version

1.8.5 (Default)

What host operating system were you using?

Other Linux environment

Host OS Version

Latest Arch - Kernel 6.7.9

Selected OS

None

Which Raspberry Pi Device are you using?

Raspberry Pi 4B, 400, and Compute Modules 4, 4S

What kind of storage device are you using?

Other

OS Customisation

Relevant log output

No response

oxmc commented 6 months ago

@CommanderGL Can you remove the qt folder in the buildroot folder, and try running again?

CrossScarDev commented 6 months ago

there is no qt folder in buildroot

maxnet commented 6 months ago

there is no qt folder in buildroot

Probably called something like output/build/qt5base

Did you change anything in the buildroot configuration, e.g. compiler version?

CrossScarDev commented 6 months ago

I have tried rebuilding after removing qt folder and am using a fresh git clone

tdewey-rpi commented 3 months ago

@CommanderGL Was there a particular need to rebuild the Embedded Imager? Does the current release provide what you need?

tdewey-rpi commented 2 months ago

Closing as stale.