-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade pybind11 to 2.2+ #18
Comments
I have been spent some spare time for upgrading pybind.
The compile error comes from the following lines in src/Python/py3d_eigen.cpp:
FYI, the following lines are safe:
The only difference is to use |
Ah, I remember. I hated the bind_vector function from pybind11, because its This is not the behavior I wanted, so I copied the pybind11 convenient function Can you check:
This should resolve the issue. |
Good. I am working on this issue. |
I decided to keep This fixes the error:
Now everything works fine. I tested pybind2.2 with the tutorial scripts. |
The remaining job is to replace For example, (from pybind upgrade guide)
Now I am trying to replace
with
but this makes compile error. It is because of keyword arguments. I can compile it without keyword arguments. @qianyizh do you have any suggestion for this issue? |
What is a keyword argument? |
It is |
I think they are the decorations to the function, i.e., when you type |
Addressed in #127 |
The current pybind11 is modified from 2.0 dev.
The main modifications are:
std::vector
binding styleThe first modification is now merged into pybind11 master branch.
The pybind11 in Open3D should be upgraded to mainstream stable pybind11 version.
The text was updated successfully, but these errors were encountered: