-
Notifications
You must be signed in to change notification settings - Fork 599
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
Cannot compile sophus_pybind in Ubuntu 20.04 #537
Comments
Yeah, it seems like the CI action is broken and possibly never worked since it was configured for the "main" branch, though the default branch used to be called "main-1.x" until today. Unfortunately I overlooked that when merging #522. Now we do have failing CI: https://github.com/strasdat/Sophus/actions/runs/9434646626 |
I'm not a user of the py-bindings and overall have very little knowledge of this are of the repository, possibly @chpeng-fb can help, who is the author of #522. Overall, a good first step would be to repair the CI action (but not necessarily have it pass), or maybe just get more minimal pybind CI job in place. @edubya or @chpeng-fb , could you help with that? Once, we have running CI, I can hopefully help with c++ / build flags related errors. |
@edubya Thank you for reporting the issue and pin point the issue. I will fix this issue soon. |
@chpeng-fb, I just merged a larger maintenance PR #538. It should not have significant impact on the py-bindings but if it does or you have any other questions, please reach out! |
Thank you for the update. I will test my fix again after your merge. |
Thanks to @cybaol, CI is fixed, as well as the original issue. |
Issue
I can't seem to compile sophus_pybind module in Ubuntu 20.04 without setting the following compiler flags:
To Reproduce
pip install .
orpython setup.py install
ormkdir build && cd build && cmake .. -DBUILD_PYTHON_BINDINGS=ON && make
Expected behavior
sophus_pybind module compiles and can be used in Python.
Sophus version: commit hash
d270df2
Additional context
-Werror=unused-parameter
is caused by small typo in line 47 of SE3PyBind.h, which should bebool load(handle src, bool) {
. See also SO3PyBind.h.-Wno-error=maybe-uninitialized
are thrown by Eigen 3.4.0 code. Since these errors go away after removing the-O3
flag fromCMAKE_CXX_FLAGS_RELEASE
in CMakeLists.txt the warnings are likely wrong. Maybe different optimization flags need to be set.-Werror=sign-compare
are all caused by comparisons of size_t integers to Eigen::Index in every for loop in SO3PyBind.h and SE3PyBind.h. For example:Docker
After cloning Sophus into local directory
Sophus
, build new docker image using:Dockerfile
setup_docker.sh
The text was updated successfully, but these errors were encountered: