From nguyenvannghi.hust at gmail.com Thu Mar 26 02:02:50 2015 From: nguyenvannghi.hust at gmail.com (=?UTF-8?B?Tmdo4buLIE5ndXnhu4VuIFbEg24=?=) Date: Thu, 26 Mar 2015 13:02:50 +0700 Subject: [Kiwiviewer] Error when run compile.sh Kiwi Viewer Message-ID: 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::VoxelGrid()': KiwiNative.cpp:(.text._ZN3pcl9VoxelGridIN11sensor_msgs11PointCloud2EEC2Ev[_ZN3pcl9VoxelGridIN11sensor_msgs11PointCloud2EEC5Ev]+0x22c): undefined reference to `vtable for pcl::VoxelGrid' CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: In function `pcl::VoxelGrid::~VoxelGrid()': KiwiNative.cpp:(.text._ZN3pcl9VoxelGridIN11sensor_msgs11PointCloud2EED2Ev[_ZN3pcl9VoxelGridIN11sensor_msgs11PointCloud2EED5Ev]+0xac): undefined reference to `vtable for pcl::VoxelGrid' CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: In function `filterVoxelGrid': KiwiNative.cpp:(.text.filterVoxelGrid+0x15c): undefined reference to `pcl::Filter::filter(sensor_msgs::PointCloud2&)' CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o:(.data.rel.ro._ZTVN3pcl11PassThroughINS_8PointXYZEEE[vtable for pcl::PassThrough]+0x14): undefined reference to `pcl::PassThrough::applyFilter(pcl::PointCloud&)' CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o:(.data.rel.ro._ZTVN3pcl25StatisticalOutlierRemovalINS_8PointXYZEEE[vtable for pcl::StatisticalOutlierRemoval]+0x14): undefined reference to `pcl::StatisticalOutlierRemoval::applyFilter(pcl::PointCloud&)' CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: In function `pcl::PassThrough::applyFilter(std::vector >&)': KiwiNative.cpp:(.text._ZN3pcl11PassThroughINS_8PointXYZEE11applyFilterERSt6vectorIiSaIiEE[pcl::PassThrough::applyFilter(std::vector >&)]+0x1c): undefined reference to `pcl::PassThrough::applyFilterIndices(std::vector >&)' CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: In function `pcl::StatisticalOutlierRemoval::applyFilter(std::vector >&)': KiwiNative.cpp:(.text._ZN3pcl25StatisticalOutlierRemovalINS_8PointXYZEE11applyFilterERSt6vectorIiSaIiEE[pcl::StatisticalOutlierRemoval::applyFilter(std::vector >&)]+0x1c): undefined reference to `pcl::StatisticalOutlierRemoval::applyFilterIndices(std::vector >&)' 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: