isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.47k stars 2.31k forks source link

Mac apple silicon build error about "experimental/filesystem" #6211

Open dhcode-cpp opened 1 year ago

dhcode-cpp commented 1 year ago

Checklist

My Question

build open3d on Mac : fatal error: 'experimental/filesystem' file not found osx

in "./cpp/open3d/utility/FileSystem.cpp" fix this error :

// #include <experimental/filesystem>
// namespace fs = std::experimental::filesystem;

#include "./filesystem"
namespace fs = std::__fs::filesystem;
dhcode-cpp commented 1 year ago

other build question:

when build pybind on Mac has error like forward declaration of '_frame' typedef struct _frame PyFrameObject;

use follow: rewrite two header file build/_deps/ext_pybind11-src/include/pybind11/cast.h build/_deps/ext_pybind11-src/include/pybind11/pybind11.h

//#if !defined(PYPY_VERSION)
#if 0