toltec-dev / toolchain

Set of Docker images for cross-compiling binaries targeting the reMarkable tablet.
MIT License
34 stars 12 forks source link

Qt Image Documentation #26

Closed SomethingGeneric closed 1 year ago

SomethingGeneric commented 1 year ago

Hi! For a package I'm trying to build, I need to direct cmake to the installed Qt5 components. The exact output is below:

[   ERROR] toltec.builder: build(): CMake Error at Source/cmake/OptionsQt.cmake:239 (find_package):
[   ERROR] toltec.builder: build(): By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
[   ERROR] toltec.builder: build(): asked CMake to find a package configuration file provided by "Qt5", but
[   ERROR] toltec.builder: build(): CMake did not find one.
[   ERROR] toltec.builder: build(): 
[   ERROR] toltec.builder: build(): Could not find a package configuration file provided by "Qt5" (requested
[   ERROR] toltec.builder: build(): version 5.2.0) with any of the following names:
[   ERROR] toltec.builder: build(): 
[   ERROR] toltec.builder: build(): Qt5Config.cmake
[   ERROR] toltec.builder: build(): qt5-config.cmake
[   ERROR] toltec.builder: build(): 
[   ERROR] toltec.builder: build(): Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
[   ERROR] toltec.builder: build(): to a directory containing one of the above files.  If "Qt5" provides a
[   ERROR] toltec.builder: build(): separate development package or SDK, be sure it has been installed.

I've done some packaging before, but I have never worked with Qt frameworks, so I'm not sure what the most elegant way to connect the qt framework and cmake might be?

Eeems commented 1 year ago

https://github.com/toltec-dev/toltec/blob/88ee504a82b37ccf6e5e08837dde32196c7a4c46/package/oxide/package#L23-L27 For anybody else finding this