g2o icon indicating copy to clipboard operation
g2o copied to clipboard

Can not compile custom edges after Merge request 506

Open johannes-graeter opened this issue 3 years ago • 5 comments

Thx for your great work! After merge of https://github.com/RainerKuemmerle/g2o/pull/506 I can not compile my custom edges anymore (Setting G2O_USE_VENDORED_CERES of course). Error: /usr/local/include/g2o/core/base_fixed_sized_edge.h:37:12: fatal error: ceres/internal/fixed_array.h: No such file or directory 37 | #include <ceres/internal/fixed_array.h>

You help is much appreciated!

johannes-graeter avatar Jul 20 '21 08:07 johannes-graeter

Does https://github.com/RainerKuemmerle/g2o/pull/536 fix the problem for you?

RainerKuemmerle avatar Aug 08 '21 06:08 RainerKuemmerle

I have the same problem with my custom edges on fedora 36. The PR sadly didn't fix it. Did you find a solution?

MalcolmMielle avatar Jun 06 '22 22:06 MalcolmMielle

Installing libceres-dev on ubuntu solves the issue for me. So, probably you should install ceres libs

artofnothingness avatar Jun 12 '22 18:06 artofnothingness

Yep same on fedora. Not using the vendored version solved the problem.

MalcolmMielle avatar Jun 13 '22 07:06 MalcolmMielle

Thx for your great work! After merge of #506 I can not compile my custom edges anymore (Setting G2O_USE_VENDORED_CERES of course). Error: /usr/local/include/g2o/core/base_fixed_sized_edge.h:37:12: fatal error: ceres/internal/fixed_array.h: No such file or directory 37 | #include <ceres/internal/fixed_array.h>

You help is much appreciated!

Actually if you set G2O_USE_VENDORED_CERES correctly, that line is supposed to be ignored g2o/core/base_fixed_sized_edge.h:37

#ifdef G2O_USE_VENDORED_CERES
#include "g2o/EXTERNAL/ceres/fixed_array.h"
#else
#include <ceres/internal/fixed_array.h>
#endif

It will search for "g2o/EXTERNAL/ceres/fixed_array.h" instead.

lzyplayer avatar Jan 11 '23 08:01 lzyplayer