[GRASS-dev] error when compiling grass with pdal

Paulo van Breugel p.vanbreugel at gmail.com
Wed Jan 2 06:48:30 PST 2019


Hi Markus

Thanks for your reply. It was the first time I compiled. Running sudo 
ldconfig did not help. When running export 
LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" first, grass compiles 
without errors with pdal (mentioned in 
https://trac.osgeo.org/grass/ticket/2732). (so I guess I am doing 
something wrong on the ldconfig part).

When trying to run v.in.pdal, however, I get the following:

v.in.pdal

v.in.pdal: error while loading shared libraries: libpdal_base.so.5: cannot open shared object file: No such file or directory

After creating symlinks libpdal_base.so.5  pointing to libpdal_base.so.7 
and libpdal_utils.so.5  pointing to libpdal_utils.so.7, I can open the 
v.in.pdal window, but when trying to run (e.g., importing the demo data 
from 
https://grasswiki.osgeo.org/wiki/Processing_lidar_and_UAV_point_clouds_in_GRASS_GIS_(workshop_at_FOSS4G_Boston_2017)#Addons) 
I am getting a segmentation fault:

v.in.pdal input=/home/paulo/Desktop/nc_tile_0793_016_spm.las output=test2

Running PDAL algorithms...

Segmentation fault (core dumped)

Any ideas how to solve this?




On 1/2/19 3:26 PM, Markus Neteler wrote:
> Hi,
>
> Am Mi., 2. Jan. 2019, 14:58 hat Paulo van Breugel 
> <p.vanbreugel at gmail.com <mailto:p.vanbreugel at gmail.com>> geschrieben:
>
>     Hi devs,
>
>     I am trying to compile grass with pdal. My system is Ubuntu 18.04,
>     grass 7.7.svn (r73901), pdal 1.8.0 (git-version: dfface).
>
>     When trying to compile with
>
>     --with-pdal=/usr/local/bin/pdal-config
>
>     I get the following error message:
>
>     Errors in:
>     /home/paulo/Software/Linux/grass7/trunk/vector/v.in.pdal
>     --
>
>     When running make in the v.in.pdal folder, I get:
>
>     make
>     if [ "/home/paulo/Software/Linux/grass7/trunk/dist.x86_64-pc-linux-gnu/bin/v.in.pdal" != "" ] ; then GISRC=/home/paulo/Software/Linux/grass7/trunk/dist.x86_64-pc-linux-gnu/demolocation/.grassrc77 GISBASE=/home/paulo/Software/Linux/grass7/trunk/dist.x86_64-pc-linux-gnu PATH="/home/paulo/Software/Linux/grass7/trunk/dist.x86_64-pc-linux-gnu/bin:/home/paulo/Software/Linux/grass7/trunk/dist.x86_64-pc-linux-gnu/bin:/home/paulo/Software/Linux/grass7/trunk/dist.x86_64-pc-linux-gnu/scripts:$PATH" PYTHONPATH="/home/paulo/Software/Linux/grass7/trunk/dist.x86_64-pc-linux-gnu/etc/python:/home/paulo/Software/Linux/grass7/trunk/dist.x86_64-pc-linux-gnu/gui/wxpython:$PYTHONPATH" LD_LIBRARY_PATH="/home/paulo/Software/Linux/grass7/trunk/dist.x86_64-pc-linux-gnu/bin:/home/paulo/Software/Linux/grass7/trunk/dist.x86_64-pc-linux-gnu/bin:/home/paulo/Software/Linux/grass7/trunk/dist.x86_64-pc-linux-gnu/scripts:/home/paulo/Software/Linux/grass7/trunk/dist.x86_64-pc-linux-gnu/lib:/home/paulo/Software/Linux/grass7/trunk/dist.x86_64-pc-linux-gnu/lib:" LC_ALL=C LANG=C LANGUAGE=C /home/paulo/Software/Linux/grass7/trunk/dist.x86_64-pc-linux-gnu/bin/v.in.pdal --html-description < /dev/null | grep -v '</body>\|</html>' > v.in.pdal.tmp.html ; fi
>     /home/paulo/Software/Linux/grass7/trunk/dist.x86_64-pc-linux-gnu/bin/v.in.pdal: error while loading shared libraries: libpdal_base.so.7: cannot open shared object file: No such file or directory
>     ../../include/Make/Html.make:14: recipe for target 'v.in.pdal.tmp.html' failed
>     make: *** [v.in.pdal.tmp.html] Error 1
>     rm v.in.pdal.tmp.html
>
>     Any idea what I am doing wrong?
>
>
> In case you updated PDAL, did you run
>
> sudo ldconfig
>
> ?
>
> Markus
>
>     Cheers,
>
>     Paulo
>
>
>
>     _______________________________________________
>     grass-dev mailing list
>     grass-dev at lists.osgeo.org <mailto:grass-dev at lists.osgeo.org>
>     https://lists.osgeo.org/mailman/listinfo/grass-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20190102/66d0c713/attachment-0001.html>


More information about the grass-dev mailing list