Cross-compile Qt5 for aarch64 CMakelists.txt
-
What Qt5 or aarch64 libraries/files do I need to install on my ubuntu 22.04 linux os? I'm trying to cross-compile my Qt5 project for aarch64 on ubuntu 22.04 and it needs Qt5Config, Qt5Network, Qt5Core, Qt5Widgets, and Qt5Gui.
My CMakeLists.txt points to a toolchain-aarch64-linux.cmake and I'm receiving the below error:
Output:
-- The CXX compiler identification is GNU 11.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/aarch64-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:24 (find_package):
Could not find a package configuration file provided by "QT" with any of
the following names:
Qt5Config.cmake
qt5-config.cmake
Add the installation prefix of "QT" to CMAKE_PREFIX_PATH or set "QT_DIR" to
a directory containing one of the above files. If "QT" provides a separate
development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred!