ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I would recommend that you slow down in all your downloading and hacking and hard coding paths. For example you should not be doing things like hard coding the full paths to include files as you example include above.

Also to make things easier to help you please copy and paste your actual commands you are running. Because "build" as stated above is not a command that you can actually run.

Your "original" error is just a linking error, which means that you already had the package enough to compile against. You need to use the cmake command target_link_library to make sure to link your executable or library against the g2o library.

click to hide/show revision 2
No.2 Revision

I would recommend that you slow down in all your downloading and hacking and hard coding paths. For example you should not be doing things like hard coding the full paths to include files as you example include above.

Also to make things easier to help you please copy and paste your actual commands you are running. Because "build" as stated above is not a command that you can actually run.

Your "original" error is just a linking error, which means that you already had the package enough to compile against. You need to use the cmake command target_link_library target_link_libraries to make sure to link your executable or library against the g2o library.