c++ - Getting MRPT to work -
i seem miss crucial point when trying started mrpt. beginner think provided documentation / tutorials don't cover enough working.
i tried installing binary ubuntu completed. trying compile project codeblocks did not work. wanted add include path mrpt compiler , lib path linker. bad not find mrpt folder in /usr/lib.
after tried compiling source. after figuring out 1gb of ram not enough mrpt compile (swap exhausted , system freezed). managed compiled , found header files in /usr/local/include , libraries in /usr/local/libs. adding paths compiler / linker respectively did not help. seems i'd have add 3-layers of subfolders include statements code work. (code copied mrpt site example) got codeblocks not throw error on code adding 3 layers
/mrpt/<package. someth "base">/include/[... normal include ...]
just error on first include.
the error i'm talking states include not found.
i've tried different angles 2 days , running out of options. hope can give me hint or go on.
i'm sorry getting such bad experience... part part:
i tried installing binary ubuntu ... after figuring out 1gb of ram not enough mrpt compile
after /usr/local/
path mention, seems did sudo make install
, right? unless have reason, recommend undoing (with sudo make uninstall
) , installing precompiled versions ppa repository. updated on ~monthly basis , avoids having build sources.
but adding paths compiler / linker respectively did not help. seems i'd have add 3-layers of subfolders include
that because mrpt uses layout similar opencv's, intended modular among different mrpt libraries. recommended use:
- makefile: instructions here
- cmake (which can generate projects codeblocks or, better, qtcreator): instructions here
hope helps!
Comments
Post a Comment