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

target link problem for libcpd.so #36

Closed
cxdcxd opened this issue Aug 28, 2015 · 3 comments
Closed

target link problem for libcpd.so #36

cxdcxd opened this issue Aug 28, 2015 · 3 comments

Comments

@cxdcxd
Copy link

cxdcxd commented Aug 28, 2015

hi ,
I have a strange problems , i followed the build instructions and i can run cpd executable succesfully , but when i want to use it in my own code i have some problems. I want to use it with ROS
it is installed to (/usr/local/lib succesfully ... )

find_package(CPD required) => cant find the CPD & CPD_Directories

if I set the .so lib (libcpd.so) in target_link_libraries it's OK ,
but I have just got the undefined reference for

error: undefined reference to `cpd::NonrigidLowrank::NonrigidLowrank(float, int, float, bool, float, float, float, unsigned int)'

so , I cant compile and use CPD in my ROS package . Any Suggestion ?!

@gadomski
Copy link
Owner

Hm, before we get into manually setting target_link_libraries, let's figure out why your find_package is failing. Do you have CPD's CMake configuration scripts in /usr/local/lib/cpd/cmake? There should be a CpdConfig.cmake, CpdTargets.cmake, and others. Also, what's you're CMake version?

@cxdcxd
Copy link
Author

cxdcxd commented Aug 29, 2015

Dear pete ,
main problem was the package name
So it should be Cpd insted of CPD .

Solved now , but i add the libcpd.so to target link then ...

Thanks for your reply
Edwin.
On Aug 29, 2015 5:54 PM, "Pete Gadomski" notifications@github.com wrote:

Hm, before we get into manually setting target_link_libraries, let's
figure out why your find_package is failing. Do you have CPD's CMake
configuration scripts in /usr/local/lib/cpd/cmake? There should be a
CpdConfig.cmake, CpdTargets.cmake, and others. Also, what's you're CMake
version?


Reply to this email directly or view it on GitHub
#36 (comment).

@gadomski
Copy link
Owner

No problem, glad it worked out.

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