[英]using pybind11 on MacBook Pro
I am trying to use pybind11 on Macbook and I am trying to do as was written in https://pybind11.readthedocs.io/en/stable/basics.html I installed cmake from there website I created我正在尝试在 Macbook 上使用 pybind11,我正在尝试按照https://pybind11.readthedocs.io/en/stable/basics.html中所写的方式进行操作
mkdir build
cd build
but when I tried但是当我尝试
cmake ..
I got an error我有一个错误
CMake Error: The source directory "/Users/fai" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
how can I fix this?我怎样才能解决这个问题? I want to use pybind11 on my Mac and it seems I need to fix this issue
我想在我的 Mac 上使用 pybind11,看来我需要解决这个问题
also I had a problem with pybind11 when using it in Xcode I wrote在我写的 Xcode 中使用 pybind11 时,我也遇到了问题
#include <pybind11/embed.h>
but I got an error但我有一个错误
'pybind11/embed.h' file not found
I installed pybind11 correctly according to there website我根据那里的网站正确安装了pybind11
You can add following lines to CMakeLists.txt您可以将以下行添加到 CMakeLists.txt
# set pybind11 dir
set(pybind11_DIR /Users/Caleb/Softwares/pybind11)
find_package(pybind11 REQUIRED)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.