我想編譯然後安裝夏威夷來自原始碼,但我陷入了編譯綠島(夏威夷的依賴項)來自原始碼階段。我使用以下命令創建了原始程式碼目錄的 build 子目錄mkdir build
並運行:
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
但這給了錯誤:
CMake Error at /usr/lib64/cmake/Qt5/Qt5Config.cmake:26 (find_package):
Could not find a package configuration file provided by "Qt5Compositor"
with any of the following names:
Qt5CompositorConfig.cmake
qt5compositor-config.cmake
Add the installation prefix of "Qt5Compositor" to CMAKE_PREFIX_PATH or set
"Qt5Compositor_DIR" to a directory containing one of the above files. If
"Qt5Compositor" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
CMakeLists.txt:60 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/fusion809/Programs/Hawaii/greenisland-0.6.0/build/CMakeFiles/CMakeOutput.log".
這裡是我的日誌檔案(/home/fusion809/Programs/Hawaii/greenisland-0.6.0/build/CMakeFiles/CMakeOutput.log)。
我將此錯誤解釋為我的系統中缺少 Qt5CompositorConfig.cmake。我需要合併什麼 Portage ebuild 才能獲得這個函式庫?如果相關的話,我正在研究 Sabyon Linux。
答案1
我自己弄清楚了,我有dev-qt/qtwayland安裝了,但我需要啟用 wayland-compositor USE 標誌才能取得這個庫。一旦我這樣做了,我就成功地完成了《綠島》的編譯。