PCL calsses can't be resolved on Eclipse

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

PCL calsses can't be resolved on Eclipse

Tony Liu
Hi friends,
I import rtabmap project to Eclipse using the .project file you provided on GitHub.
Fortunately I can build this project through Eclipse build all button.
But I encounter the problem that PCL classes can't be resolved when I trace some source code files such as rtabmap.cpp, util3d.cpp and so on. Please help me to resolve this problem.

My pcl related package is installed in
/usr/share/pcl-1.7
/usr/share/doc/libpcl-1.7-doc/doc/pcl-1.7
/usr/include/pcl-1.7

My error screenshot
My error screenshot

My Paths & Symbols settings of Eclipse
My Paths & Symbols settings of Eclipse
Reply | Threaded
Open this post in threaded view
|

Re: PCL calsses can't be resolved on Eclipse

Tony Liu
I resolved this problem by myself.
Manually add header path into Project->Properties->C/C++ General->Paths & Symbols->includes. and re-indexer.

I don't know why Eclipse can't  auto figure out those header...
Reply | Threaded
Open this post in threaded view
|

Re: PCL calsses can't be resolved on Eclipse

matlabbe
Administrator
Depending on the version of eclipse/gcc, it doesn't always detect all includes (with "$ make VERBOSE=1"). I need to add manually the paths on some machines too.

cheers