Qt 6 was installed as follows:
0$ sudo pkg install library/qt6
As a workaround, the Qt6_DIR
CMake variable can be set manually:
0$ cmake -B build -DBUILD_GUI=ON -DQt6_DIR=/usr/lib/qt/6.6/lib/amd64/cmake/Qt6
Alternatively, the Qt6_ROOT
CMake or environment variable can be used:
0$ env Qt6_DIR=/usr/lib/qt/6.6/lib/amd64 cmake -B build -DBUILD_GUI=ON
Moved from https://github.com/hebasto/bitcoin/issues/234.