Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to fix two build errors #4

Open
ghost opened this issue Nov 2, 2016 · 2 comments
Open

how to fix two build errors #4

ghost opened this issue Nov 2, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 2, 2016

It is good chance for me to know and touch your codes of object_recognition with ppf features. when i tried to build your codes at the environment of Ubuntu 14.04, ros indigo, qtcreator 5 and gcc/g++ 4.9. I got the following errors.

%%%%%%%
/home/USER/catkin_ws/src/object_recognition-master/src/find_function.cpp:-1: error: multiple definition of pcl::PPFHashMapSearch::nearestNeighborSearch(float&, float&, float&, float&, std::vector<std::pair<unsigned long, unsigned long>, std::allocator<std::pair<unsigned long, unsigned long> > >&)' /home/USER/catkin_ws_indigo2/src/object_recognition-master/src/find_function.cpp:-1: error: multiple definition of pcl::PPFHashMapSearch::setInputFeatureCloud(boost::shared_ptr<pcl::PointCloudpcl::PPFSignature const>)'
collect2: error: ld returned 1 exit status
%%%%%%%

don't you mind helping me correcting the errors. i cannot deny that the errors may occur depending on my environment. when i searched the causal factor for them, i could find the next links. i understand that you have encountered the similar problems several years ago. if you know how to fix about them, please tell me the answers.

http://www.pcl-developers.org/bug-in-ppf-registration-td5709617.html
PointCloudLibrary/pcl#891

this is my mail address(m_yoshihira at hotmail.com). if you communicate via the mail address, i am grad that we can talk smoothly.
kind regards

masanori yoshihira

@giacomodabisias
Copy link
Owner

Hi,

the problem is that you have this function pcl::PPFHashMapSearch::nearestNeighborSearch defined in two different files (maybe in the includes).
The easiest way to correct the problem is to search for the definition of the function in the pcl library and just put it as inline so that you won't find it twice.

I did not update that code since quite some time so I am not 100% sure but probably it is that.

@58733511
Copy link

58733511 commented Dec 5, 2016

Hallo, anybody solve the problem? please tell me how to put one of the function as inline. thanks a lot!
my email: [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants