undefined reference in brisk

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

undefined reference in brisk

picci
Hello,
compiling tha last commit I get this error:

/home/piccir/pcl/keypoints/include/pcl/keypoints/impl/brisk_2d.hpp:80:
undefined reference to `pcl::keypoints::brisk::ScaleSpace::ScaleSpace(int)'
/home/piccir/pcl/keypoints/include/pcl/keypoints/impl/brisk_2d.hpp:81:
undefined reference to
`pcl::keypoints::brisk::ScaleSpace::constructPyramid(std::vector<unsigned char,
std::allocator<unsigned char> > const&, int, int)'
/home/piccir/pcl/keypoints/include/pcl/keypoints/impl/brisk_2d.hpp:83:
undefined reference to
`pcl::keypoints::brisk::ScaleSpace::getKeypoints(int,
std::vector<pcl::PointWithScale,
Eigen::aligned_allocator<pcl::PointWithScale> >&)'
/home/piccir/pcl/keypoints/include/pcl/keypoints/impl/brisk_2d.hpp:106:
undefined reference to `pcl::keypoints::brisk::ScaleSpace::~ScaleSpace()'
/home/piccir/pcl/keypoints/include/pcl/keypoints/impl/brisk_2d.hpp:106:
undefined reference to `pcl::keypoints::brisk::ScaleSpace::~ScaleSpace()'

It' strange since is the same code that I have already compiled some
time ago......
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: undefined reference in brisk

Radu B. Rusu
Administrator
Marco,

If it's the same code, then what changed? :)

Cheers,
Radu.
--
http://openperception.org

On 06/19/2013 07:55 AM, marco wrote:

> Hello,
> compiling tha last commit I get this error:
>
> /home/piccir/pcl/keypoints/include/pcl/keypoints/impl/brisk_2d.hpp:80: undefined reference to
> `pcl::keypoints::brisk::ScaleSpace::ScaleSpace(int)'
> /home/piccir/pcl/keypoints/include/pcl/keypoints/impl/brisk_2d.hpp:81: undefined reference to
> `pcl::keypoints::brisk::ScaleSpace::constructPyramid(std::vector<unsigned char, std::allocator<unsigned char> > const&,
> int, int)'
> /home/piccir/pcl/keypoints/include/pcl/keypoints/impl/brisk_2d.hpp:83: undefined reference to
> `pcl::keypoints::brisk::ScaleSpace::getKeypoints(int, std::vector<pcl::PointWithScale,
> Eigen::aligned_allocator<pcl::PointWithScale> >&)'
> /home/piccir/pcl/keypoints/include/pcl/keypoints/impl/brisk_2d.hpp:106: undefined reference to
> `pcl::keypoints::brisk::ScaleSpace::~ScaleSpace()'
> /home/piccir/pcl/keypoints/include/pcl/keypoints/impl/brisk_2d.hpp:106: undefined reference to
> `pcl::keypoints::brisk::ScaleSpace::~ScaleSpace()'
>
> It' strange since is the same code that I have already compiled some time ago......
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: undefined reference in brisk

picci
Ok,
I checked the previous code and I did not compiled brisk and seems I was
having the same problem with the linker.
At this point there is something wrong in cmake. Can somebody give me a
clue where to check!

Thank you

On 06/19/2013 11:05 AM, Radu B. Rusu wrote:

> Marco,
>
> If it's the same code, then what changed? :)
>
> Cheers,
> Radu.
> --
> http://openperception.org
>
> On 06/19/2013 07:55 AM, marco wrote:
>> Hello,
>> compiling tha last commit I get this error:
>>
>> /home/piccir/pcl/keypoints/include/pcl/keypoints/impl/brisk_2d.hpp:80: undefined
>> reference to
>> `pcl::keypoints::brisk::ScaleSpace::ScaleSpace(int)'
>> /home/piccir/pcl/keypoints/include/pcl/keypoints/impl/brisk_2d.hpp:81: undefined
>> reference to
>> `pcl::keypoints::brisk::ScaleSpace::constructPyramid(std::vector<unsigned
>> char, std::allocator<unsigned char> > const&,
>> int, int)'
>> /home/piccir/pcl/keypoints/include/pcl/keypoints/impl/brisk_2d.hpp:83: undefined
>> reference to
>> `pcl::keypoints::brisk::ScaleSpace::getKeypoints(int,
>> std::vector<pcl::PointWithScale,
>> Eigen::aligned_allocator<pcl::PointWithScale> >&)'
>> /home/piccir/pcl/keypoints/include/pcl/keypoints/impl/brisk_2d.hpp:106:
>> undefined reference to
>> `pcl::keypoints::brisk::ScaleSpace::~ScaleSpace()'
>> /home/piccir/pcl/keypoints/include/pcl/keypoints/impl/brisk_2d.hpp:106:
>> undefined reference to
>> `pcl::keypoints::brisk::ScaleSpace::~ScaleSpace()'
>>
>> It' strange since is the same code that I have already compiled some
>> time ago......
>> _______________________________________________
>> [hidden email] / http://pointclouds.org
>> http://pointclouds.org/mailman/listinfo/pcl-users
>

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

SOLVED Re: undefined reference in brisk

picci
Hi
It seems that the problem comes from the CMakeLists.txt file...
I made working addind brisk_2d.h brisk_2d.hpp and brisk_2d.cpp on the add_executable line.
If there is a better solution just let me know so I can learn something new :)