“找不到TBB库”。 Macos上的Cmake

发布于 2025-01-29 16:15:28 字数 1261 浏览 2 评论 0原文

我正在尝试从Mac上的来源构建prusaslicer。我没有CMAKE的经验。我正在按照给出的说明进行在这里

每当我尝试建立依赖性时。此命令cmake ..给我错误。早些时候,它说“找不到提升”。我通过用啤酒安装Boost来解决这一问题。现在它被困在TBB上。

OS X SDK Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
  OS X Deployment Target: (default)
  -- Boost::boost exists
  CMake Error at /opt/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
    TBB library cannot be found.  Consider set TBBROOT environment variable.
    (missing: TBB_LIBRARIES) (found version "2020.3")
  Call Stack (most recent call first):
    /opt/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
    cmake/modules/FindTBB.cmake.in:286 (find_package_handle_standard_args)
    cmake/modules/FindTBB.cmake:29 (include)
    CMakeLists.txt:384 (find_package)


  -- Configuring incomplete, errors occurred!

我已经安装了TBB。如果您注意到,即使此错误都列出了版本。

我尝试过的事情:

  1. 通过啤酒安装Boost,Cmake和TBB。
  2. 通过MacPorts安装Boost,Cmake和TBB。

I'm trying to build PrusaSlicer from source on Mac. I don't have any experience with CMake. I'm following the instructions given here.

Every time I try to build dependencies. This command cmake ..gives me errors. Earlier it was saying "Boost cannot be found." I fixed that by installing boost with brew. Now it's stuck on TBB.

OS X SDK Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
  OS X Deployment Target: (default)
  -- Boost::boost exists
  CMake Error at /opt/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
    TBB library cannot be found.  Consider set TBBROOT environment variable.
    (missing: TBB_LIBRARIES) (found version "2020.3")
  Call Stack (most recent call first):
    /opt/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
    cmake/modules/FindTBB.cmake.in:286 (find_package_handle_standard_args)
    cmake/modules/FindTBB.cmake:29 (include)
    CMakeLists.txt:384 (find_package)


  -- Configuring incomplete, errors occurred!

I have installed TBB. If you would notice even this error has the version listed.

Things I have tried:

  1. Installing boost, cmake and tbb via brew.
  2. Installing boost, cmake and tbb via macports.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

楠木可依 2025-02-05 16:15:28

尝试以下

cmake .. -DTBB_LIBRARYDIR=/opt/intel/tbb/lib/intel64/gcc4.8 -DTBB_INCLUDEDIR=/opt/intel/tbb/include

注释,CMAKE VAR名称的细微差异和包含的路径,不包括/tbb。让我知道如何进行

Try the following

cmake .. -DTBB_LIBRARYDIR=/opt/intel/tbb/lib/intel64/gcc4.8 -DTBB_INCLUDEDIR=/opt/intel/tbb/include

Note the subtle differences in the CMake var names and the path to include, not include/tbb.Let me know how that goes

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文