簡體   English   中英

無法在 Windows 上使用 CMake 構建 HPX - 找到 [Boost] 合適的版本“1.75.0”,最低要求是“1.61”

[英]Can't build HPX with CMake on Windows - found [Boost] suitable version “1.75.0”, minimum required is “1.61”

我正在嘗試在 Windows 10 上使用 CMake 構建 HPX(最終游戲是使用 MSVC 構建 OpenCV)。
我已經從管理員 CMD 下載了 Boost 1.75.0,然后運行bootstrap.bat然后b2.exe 然后我將 boost 文件夾的路徑添加到 PATH 變量中。 接下來我打開 CMake 並嘗試構建 HPX 1.3.0 並得到以下錯誤:

  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.19/Modules/FindBoost.cmake:1326 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.19/Modules/FindBoost.cmake:1935 (_Boost_MISSING_DEPENDENCIES)
  cmake/HPX_SetupBoost.cmake:75 (find_package)
  CMakeLists.txt:1576 (include)


CMake Warning at C:/Program Files/CMake/share/cmake-3.19/Modules/FindBoost.cmake:1204 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.19/Modules/FindBoost.cmake:1326 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.19/Modules/FindBoost.cmake:1935 (_Boost_MISSING_DEPENDENCIES)
  cmake/HPX_SetupBoost.cmake:75 (find_package)
  CMakeLists.txt:1576 (include)


CMake Warning at C:/Program Files/CMake/share/cmake-3.19/Modules/FindBoost.cmake:1204 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.19/Modules/FindBoost.cmake:1326 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.19/Modules/FindBoost.cmake:1935 (_Boost_MISSING_DEPENDENCIES)
  cmake/HPX_SetupBoost.cmake:75 (find_package)
  CMakeLists.txt:1576 (include)


CMake Error at C:/Program Files/CMake/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  Could NOT find Boost (missing: filesystem program_options system) (found
  suitable version "1.75.0", minimum required is "1.61")
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:582 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.19/Modules/FindBoost.cmake:2193 (find_package_handle_standard_args)
  cmake/HPX_SetupBoost.cmake:75 (find_package)
  CMakeLists.txt:1576 (include)

請幫忙!

看起來 CMake 找到了 Boost header 文件,但沒有找到 Boost 二進制文件。 我會嘗試明確設置指向相應目錄的BOOST_INCLUDEDIRBOOST_LIBRARYDIR CMake 變量。 有關可以設置的更多 CMake 變量,另請參見https://cmake.org/cmake/help/latest/module/FindBoost.html

另請注意,您的日志中發出的警告是良性的,並且是由您的 CMake 版本早於 Boost V1.75 引起的。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM