I suffered PCL buit failed in PX2 but no this error in my HOST, please refer below log. Any idea on it?
…
nvidia@nvidia:~/work/pcl/build$ make
[ 4%] Built target pcl_common
[ 5%] Built target pcl_octree
[ 6%] Built target pcl_io_ply
make[2]: *** No rule to make target ‘/usr/lib/aarch64-linux-gnu/libGL.so’, needed by ‘lib/libpcl_io.so.1.8.1.99’. Stop.
CMakeFiles/Makefile2:232: recipe for target ‘io/CMakeFiles/pcl_io.dir/all’ failed
make[1]: *** [io/CMakeFiles/pcl_io.dir/all] Error 2
Makefile:160: recipe for target ‘all’ failed
make: *** [all] Error 2
nvidia@nvidia:~/work/pcl/build$
…
Would you like to try the following method? Thanks.
There is a hack to enable libGL.so
You can rename libdrm.a into libdrm_static.a in /usr/lib/aarch64/…
And then link it with option -Wl,–whole-archive -ldrm_static -Wl,–no-whole-archive added.
There is not tegra’s libGL.so in my DRIVERWORK 0.6 w/ PX2. So I made link to mesa/libGL.so (sudo ln -sf mesa/libGL.so libGL.so
). Does PX2 need specific Tegra’s LibGL.so? I still suffered following error even mesa’s libgl.so linked,
…
/usr/lib/gcc/aarch64-linux-gnu/5/…/…/…/aarch64-linux-gnu/libGL.so: undefined reference to drmMap' /usr/lib/gcc/aarch64-linux-gnu/5/../../../aarch64-linux-gnu/libGL.so: undefined reference to drmCloseOnce’
/usr/lib/gcc/aarch64-linux-gnu/5/…/…/…/aarch64-linux-gnu/libGL.so: undefined reference to drmUnmap' /usr/lib/gcc/aarch64-linux-gnu/5/../../../aarch64-linux-gnu/libGL.so: undefined reference to drmOpenOnce’
…