<div dir="ltr">Hi guys,<br><br>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:
<br>--------------------------------------------------
<br>chinhnb@boss:~/Tools/ves-master/Apps/Android/Kiwi$ ./compile.sh
<br>+ cd /home/chinhnb/Tools/ves-master/Apps/Android/Kiwi
<br>+ make
<br>Linking CXX shared library ../libs/armeabi-v7a/libKiwiNative.so
<br>CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: In function `pcl::VoxelGrid<sensor_msgs::PointCloud2>::VoxelGrid()':
<br>KiwiNative.cpp:(.text._ZN3pcl9VoxelGridIN11sensor_msgs11PointCloud2EEC2Ev[_ZN3pcl9VoxelGridIN11sensor_msgs11PointCloud2EEC5Ev]+0x22c):
 undefined reference to `vtable for 
pcl::VoxelGrid<sensor_msgs::PointCloud2>'
<br>CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: In function `pcl::VoxelGrid<sensor_msgs::PointCloud2>::~VoxelGrid()':
<br>KiwiNative.cpp:(.text._ZN3pcl9VoxelGridIN11sensor_msgs11PointCloud2EED2Ev[_ZN3pcl9VoxelGridIN11sensor_msgs11PointCloud2EED5Ev]+0xac):
 undefined reference to `vtable for 
pcl::VoxelGrid<sensor_msgs::PointCloud2>'
<br>CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: In function `filterVoxelGrid':
<br>KiwiNative.cpp:(.text.filterVoxelGrid+0x15c): undefined reference to
 
`pcl::Filter<sensor_msgs::PointCloud2>::filter(sensor_msgs::PointCloud2&)'
<br>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>&)'
<br>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>&)'
<br>CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: In function 
`pcl::PassThrough<pcl::PointXYZ>::applyFilter(std::vector<int, 
std::allocator<int> >&)':
<br>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> >&)'
<br>CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: In function 
`pcl::StatisticalOutlierRemoval<pcl::PointXYZ>::applyFilter(std::vector<int,
 std::allocator<int> >&)':
<br>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> >&)'
<br>collect2: ld returned 1 exit status
<br>make[2]: *** [libs/armeabi-v7a/libKiwiNative.so] Error 1
<br>make[1]: *** [jni/CMakeFiles/KiwiNative.dir/all] Error 2
<br>make: *** [all] Error 2
<br>+ exit
<br>--------------------------------------------------
<br>I try to find help in Google but it has  a bit topic relatively. Please help me fix this error. Thanks for reading.
<br><br>Best Regards,
<br>Nghi

        
        
        
        </div>