[Kiwiviewer] Error when run compile.sh Kiwi Viewer

Nghị Nguyễn Văn nguyenvannghi.hust at gmail.com
Thu Mar 26 02:02:50 EDT 2015


Hi guys,

I try to use KiwiViewer and modifying it for my aim. I just add a function
in KiwiNative.cpp and remember to add declaration in KiwiNative.java. I'm
following instruction in README on Kiwi folder. I run configure_cmake.sh
and configure_ant.sh fine but when I run compile.sh it shows an error as
below:
--------------------------------------------------
chinhnb at boss:~/Tools/ves-master/Apps/Android/Kiwi$ ./compile.sh
+ cd /home/chinhnb/Tools/ves-master/Apps/Android/Kiwi
+ make
Linking CXX shared library ../libs/armeabi-v7a/libKiwiNative.so
CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: In function
`pcl::VoxelGrid<sensor_msgs::PointCloud2>::VoxelGrid()':
KiwiNative.cpp:(.text._ZN3pcl9VoxelGridIN11sensor_msgs11PointCloud2EEC2Ev[_ZN3pcl9VoxelGridIN11sensor_msgs11PointCloud2EEC5Ev]+0x22c):
undefined reference to `vtable for
pcl::VoxelGrid<sensor_msgs::PointCloud2>'
CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: In function
`pcl::VoxelGrid<sensor_msgs::PointCloud2>::~VoxelGrid()':
KiwiNative.cpp:(.text._ZN3pcl9VoxelGridIN11sensor_msgs11PointCloud2EED2Ev[_ZN3pcl9VoxelGridIN11sensor_msgs11PointCloud2EED5Ev]+0xac):
undefined reference to `vtable for
pcl::VoxelGrid<sensor_msgs::PointCloud2>'
CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: In function `filterVoxelGrid':
KiwiNative.cpp:(.text.filterVoxelGrid+0x15c): undefined reference to
`pcl::Filter<sensor_msgs::PointCloud2>::filter(sensor_msgs::PointCloud2&)'
CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o:(.data.rel.ro._ZTVN3pcl11PassThroughINS_8PointXYZEEE[vtable
for pcl::PassThrough<pcl::PointXYZ>]+0x14): undefined reference to
`pcl::PassThrough<pcl::PointXYZ>::applyFilter(pcl::PointCloud<pcl::PointXYZ>&)'

CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o:(.data.rel.ro._ZTVN3pcl25StatisticalOutlierRemovalINS_8PointXYZEEE[vtable
for pcl::StatisticalOutlierRemoval<pcl::PointXYZ>]+0x14): undefined
reference to
`pcl::StatisticalOutlierRemoval<pcl::PointXYZ>::applyFilter(pcl::PointCloud<pcl::PointXYZ>&)'

CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: In function
`pcl::PassThrough<pcl::PointXYZ>::applyFilter(std::vector<int,
std::allocator<int> >&)':
KiwiNative.cpp:(.text._ZN3pcl11PassThroughINS_8PointXYZEE11applyFilterERSt6vectorIiSaIiEE[pcl::PassThrough<pcl::PointXYZ>::applyFilter(std::vector<int,
std::allocator<int> >&)]+0x1c): undefined reference to
`pcl::PassThrough<pcl::PointXYZ>::applyFilterIndices(std::vector<int,
std::allocator<int> >&)'
CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: In function
`pcl::StatisticalOutlierRemoval<pcl::PointXYZ>::applyFilter(std::vector<int,
std::allocator<int> >&)':
KiwiNative.cpp:(.text._ZN3pcl25StatisticalOutlierRemovalINS_8PointXYZEE11applyFilterERSt6vectorIiSaIiEE[pcl::StatisticalOutlierRemoval<pcl::PointXYZ>::applyFilter(std::vector<int,
std::allocator<int> >&)]+0x1c): undefined reference to
`pcl::StatisticalOutlierRemoval<pcl::PointXYZ>::applyFilterIndices(std::vector<int,
std::allocator<int> >&)'
collect2: ld returned 1 exit status
make[2]: *** [libs/armeabi-v7a/libKiwiNative.so] Error 1
make[1]: *** [jni/CMakeFiles/KiwiNative.dir/all] Error 2
make: *** [all] Error 2
+ exit
--------------------------------------------------
I try to find help in Google but it has  a bit topic relatively. Please
help me fix this error. Thanks for reading.

Best Regards,
Nghi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/kiwiviewer/attachments/20150326/f1475963/attachment.html>


More information about the Kiwiviewer mailing list