You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you look at the OpenGV CMakeLists.txt file you'll see that they add a few different definitions to compile the code correctly. Try compiling the tests by setting BUILD_TESTS=ON. You'll see that test_relative_pose uses fivept_kneip without any issues.
Add those definitions to your compilation and your code should run fine.
For example, if you're using cmake on a laptop, you just need to add this line to your CMakeLists.txt:
IMO having -march=native is probably not a sensible default. Most people who use Eigen in their projects will probably not have that on by default, causing compilation to go through but Eigen to conk out during runtime when using OpenGV due to Eigen mismatch. (OpenGV compiled with optimized Eigen, against non-optimized user code).
I certainly got caught out and had spent some time on this issue. It would probably be best to either:
Remove the -march=native default option
Document in big bold letters that the option is in use, and advise users of the library of this issue.
Running this gives the following error:
double free or corruption (out)
Aborted (core dumped
Any idea why this happens?
The text was updated successfully, but these errors were encountered: