简体   繁体   English

在Mac OS上安装Boost.Compute

[英]Install Boost.Compute on Mac OS

I'm following this link and trying to install Boost Compute on Mac OS. 我正在跟踪此链接,并尝试在Mac OS上安装Boost Compute。 It says it can be installed with make install but I cannot find a Makefile. 它说可以通过make install来安装,但是找不到Makefile。

I added the path to the boost-compute folder to the header search path in the Xcode project. 我将boost-compute文件夹的路径添加到Xcode项目中的标题搜索路径中。 But now boost-compute is dependent on boost in my computer, and cannot link to the boost already installed. 但是现在boost-compute取决于我计算机中的boost,因此无法链接到已经安装的boost。

Thanks in advance. 提前致谢。

No it doesn't, it says it's a header-only library that requires no compilation. 不,不是的,它说这是一个仅标头的库,不需要编译。 It also says that : 它还说:

Boost.Compute is a header-only library, so no linking is required. Boost.Compute是仅标头的库,因此不需要链接。 To use the library just add the include directory to the compilation flags and link with the system's OpenCL library. 要使用该库,只需将include目录添加到编译标志中,然后链接到系统的OpenCL库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM