PCL superbuild for Android

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

PCL superbuild for Android

karlipl
Hey everyone,

I used the pcl-superbuild from pat marion and the build succeeded, but when I try to include PCL into the KiwiViewer example I get the following error. I also tried to include PCL into the openFrameworks examples with a similar error.

Is the pat marion superbuild still the best solution for pcl on android or are there other ways to get pcl for android?

Can someone give me a hint, what is wrong, when I get these errors:

Linking CXX shared library libs/armeabi-v7a/libKiwiNative.so
/home/karli/nfm/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold: CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: in function pcl::PCLBase<pcl::PointXYZ>::initCompute():KiwiNative.cpp(.text._ZN3pcl7PCLBaseINS_8PointXYZEE11initComputeEv+0x368): error: undefined reference to 'pcl::console::print(pcl::console::VERBOSITY_LEVEL, char const*, ...)'
/home/karli/nfm/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold: CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: in function vtable for pcl::PassThrough<pcl::PointXYZ>:KiwiNative.cpp(.data.rel.ro._ZTVN3pcl11PassThroughINS_8PointXYZEEE+0x14): error: undefined reference to 'pcl::PassThrough<pcl::PointXYZ>::applyFilter(pcl::PointCloud<pcl::PointXYZ>&)'
/home/karli/nfm/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold: CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: in function pcl::PassThrough<pcl::PointXYZ>::applyFilter(std::vector<int, std::allocator<int> >&):KiwiNative.cpp(.text._ZN3pcl11PassThroughINS_8PointXYZEE11applyFilterERSt6vectorIiSaIiEE+0x1c): error: undefined reference to 'pcl::PassThrough<pcl::PointXYZ>::applyFilterIndices(std::vector<int, std::allocator<int> >&)'
collect2: ld returned 1 exit status
CMakeFiles/KiwiNative.dir/build.make:131: recipe for target 'libs/armeabi-v7a/libKiwiNative.so' failed
make[2]: *** [libs/armeabi-v7a/libKiwiNative.so] Error 1
CMakeFiles/Makefile2:63: recipe for target 'CMakeFiles/KiwiNative.dir/all' failed
make[1]: *** [CMakeFiles/KiwiNative.dir/all] Error 2
Makefile:75: recipe for target 'all' failed
make: *** [all] Error 2
Reply | Threaded
Open this post in threaded view
|

Re: PCL superbuild for Android

concave
This post has NOT been accepted by the mailing list yet.
hey! i successfuly builded & run the KiwiPCLKinect Project on OSX. I had a lot of dependency troubles but no error like yours.
I will try to build & run on Linux(Ubunutu 14.04) today. I'll keep you updated.
Reply | Threaded
Open this post in threaded view
|

Re: PCL superbuild for Android

Frangmuler
In reply to this post by karlipl
Hi karlipl
How did you used the pcl-superbuild and the build succeeded? It didn`t works,while I did it some months.
Can you help me?

regards,
Frang
Reply | Threaded
Open this post in threaded view
|

Re: PCL superbuild for Android

jblaze761
In reply to this post by karlipl
karlipl wrote

> Hey everyone,
>
> I used the pcl-superbuild from pat marion and the build succeeded, but
> when I try to include PCL into the KiwiViewer example I get the following
> error. I also tried to include PCL into the openFrameworks examples with a
> similar error.
>
> Is the pat marion superbuild still the best solution for pcl on android or
> are there other ways to get pcl for android?
>
> Can someone give me a hint, what is wrong, when I get these errors:
>
> Linking CXX shared library libs/armeabi-v7a/libKiwiNative.so
> /home/karli/nfm/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold:
> CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: in function pcl::PCLBase
> <pcl::PointXYZ>
> ::initCompute():KiwiNative.cpp(.text._ZN3pcl7PCLBaseINS_8PointXYZEE11initComputeEv+0x368):
> error: undefined reference to
> 'pcl::console::print(pcl::console::VERBOSITY_LEVEL, char const*, ...)'
> /home/karli/nfm/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold:
> CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: in function vtable for
> pcl::PassThrough
> <pcl::PointXYZ>
> :KiwiNative.cpp(.data.rel.ro._ZTVN3pcl11PassThroughINS_8PointXYZEEE+0x14):
> error: undefined reference to 'pcl::PassThrough
> <pcl::PointXYZ>
> ::applyFilter(pcl::PointCloud
> <pcl::PointXYZ>
> &)'
> /home/karli/nfm/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold:
> CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: in function pcl::PassThrough
> <pcl::PointXYZ>
> ::applyFilter(std::vector&lt;int, std::allocator&lt;int&gt;
> >&):KiwiNative.cpp(.text._ZN3pcl11PassThroughINS_8PointXYZEE11applyFilterERSt6vectorIiSaIiEE+0x1c):
> error: undefined reference to 'pcl::PassThrough
> <pcl::PointXYZ>
> ::applyFilterIndices(std::vector&lt;int, std::allocator&lt;int&gt; >&)'
> collect2: ld returned 1 exit status
> CMakeFiles/KiwiNative.dir/build.make:131: recipe for target
> 'libs/armeabi-v7a/libKiwiNative.so' failed
> make[2]: *** [libs/armeabi-v7a/libKiwiNative.so] Error 1
> CMakeFiles/Makefile2:63: recipe for target 'CMakeFiles/KiwiNative.dir/all'
> failed
> make[1]: *** [CMakeFiles/KiwiNative.dir/all] Error 2
> Makefile:75: recipe for target 'all' failed
> make: *** [all] Error 2

There's a newer version of these build scripts by someone else @





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

Re: PCL superbuild for Android

jblaze761
In reply to this post by karlipl
karlipl wrote

> Hey everyone,
>
> I used the pcl-superbuild from pat marion and the build succeeded, but
> when I try to include PCL into the KiwiViewer example I get the following
> error. I also tried to include PCL into the openFrameworks examples with a
> similar error.
>
> Is the pat marion superbuild still the best solution for pcl on android or
> are there other ways to get pcl for android?
>
> Can someone give me a hint, what is wrong, when I get these errors:
>
> Linking CXX shared library libs/armeabi-v7a/libKiwiNative.so
> /home/karli/nfm/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold:
> CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: in function pcl::PCLBase
> <pcl::PointXYZ>
> ::initCompute():KiwiNative.cpp(.text._ZN3pcl7PCLBaseINS_8PointXYZEE11initComputeEv+0x368):
> error: undefined reference to
> 'pcl::console::print(pcl::console::VERBOSITY_LEVEL, char const*, ...)'
> /home/karli/nfm/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold:
> CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: in function vtable for
> pcl::PassThrough
> <pcl::PointXYZ>
> :KiwiNative.cpp(.data.rel.ro._ZTVN3pcl11PassThroughINS_8PointXYZEEE+0x14):
> error: undefined reference to 'pcl::PassThrough
> <pcl::PointXYZ>
> ::applyFilter(pcl::PointCloud
> <pcl::PointXYZ>
> &)'
> /home/karli/nfm/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.gold:
> CMakeFiles/KiwiNative.dir/KiwiNative.cpp.o: in function pcl::PassThrough
> <pcl::PointXYZ>
> ::applyFilter(std::vector&lt;int, std::allocator&lt;int&gt;
> >&):KiwiNative.cpp(.text._ZN3pcl11PassThroughINS_8PointXYZEE11applyFilterERSt6vectorIiSaIiEE+0x1c):
> error: undefined reference to 'pcl::PassThrough
> <pcl::PointXYZ>
> ::applyFilterIndices(std::vector&lt;int, std::allocator&lt;int&gt; >&)'
> collect2: ld returned 1 exit status
> CMakeFiles/KiwiNative.dir/build.make:131: recipe for target
> 'libs/armeabi-v7a/libKiwiNative.so' failed
> make[2]: *** [libs/armeabi-v7a/libKiwiNative.so] Error 1
> CMakeFiles/Makefile2:63: recipe for target 'CMakeFiles/KiwiNative.dir/all'
> failed
> make[1]: *** [CMakeFiles/KiwiNative.dir/all] Error 2
> Makefile:75: recipe for target 'all' failed
> make: *** [all] Error 2

There's a newer version of these build scripts by someone else @
 https://github.com/bashbug/pcl-for-android/

This one builds perfectly on Linux, I haven't tested on Windows using MingW
and Studio.




--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users