-
Notifications
You must be signed in to change notification settings - Fork 608
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
Port boost::python functionality over to pybind11 #283
Conversation
Ref: https://github.com/edmBernard/pybind11_opencv_numpy Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
macOS fails because of using OpenCV 4. Windows fails because no |
Hey, I am trying to compile your branch on Windows 10 and I am getting this error: |
I have to admit that I haven't sufficiently tested this on Windows. It may be that a numpy include path isn't getting picked up correctly on Windows? It would either be in the cmake logic here or in https://github.com/ros2/pybind11_vendor |
Thank you for the quick response! I located where the header should be. I'm going to try and find a way to link it now! |
Signed-off-by: Michael Carroll <[email protected]>
Just noticed you ran into the same issue as me on Windows (#289). Would you happen to know why this isn't an issue on the other OS's? Because the Boost include was removed altogether. |
Is removing the version from OpenCV's |
I'm on Mac Mojave, and I got that exact issue as well for this branch I think except for that (if that is an issue here somewhere, it would be awesome to get this PR in to vision_opencv, support for opencv4 etc etc. edit: fixing it for mac is fairly straightforward, just create a symlink for the numpy include headers to the
I'm not sure this is an issue in the CMakeLists file though ? edit2: After building it seems the library is missing, might just be me again, but I had to add
To the cv_bridge cmakelists.txt file to actually export the library (it seems only the py-bindings get exported) |
@mjcarroll Considering this PR has been untouched for almost 3 years, I'm thinking of closing it out, but keeping the issue open. Are you fine with this? |
Yep. Still would be nice to do, but it's been on the backburner for long enough that this is no longer relevant. |
Thanks @mjcaroll |
This should potentially alleviate some of our porting headaches to other platforms.
Addresses #281