[GRASS-user] r.in.lidar build errors

   I think there was a recent thread on *.in.lidar modules, but I paid no
attention as I'm not currently using lidar data.

   After checking out the latest from the grass7_trunk svn repository I
configured the source tree and tried to build it. There are errors in the
*.in.lidar modules; each has errors when I try to build each one separately:

(r.in.lidar)
: /error while loading shared libraries: libproj.so.12: cannot open shared object file: No such file or directory
../../include/Make/Html.make:14: recipe for target 'r.in.lidar.tmp.html' failed
make: *** [r.in.lidar.tmp.html] Error 1
rm r.in.lidar.tmp.html

(r3.in.lidar)
: /error while loading shared libraries: libproj.so.12: cannot open shared object file: No such file or directory
../../include/Make/Html.make:14: recipe for target 'r3.in.lidar.tmp.html' failed
make: *** [r3.in.lidar.tmp.html] Error 1
rm r3.in.lidar.tmp.html

(v.out.lidar)
: error while loading shared libraries: libproj.so.12: cannot open shared object file: No such file or directory
../../include/Make/Html.make:14: recipe for target 'v.out.lidar.tmp.html' failed
make: *** [v.out.lidar.tmp.html] Error 1
rm v.out.lidar.tmp.html

(v.in.lidar)
:: error while loading shared libraries: libproj.so.12: cannot open shared object file: No such file or directory
../../include/Make/Html.make:14: recipe for target 'v.in.lidar.tmp.html' failed
make: *** [v.in.lidar.tmp.html] Error 1
rm v.in.lidar.tmp.html

   Your suggestions on resolving these issues will be appreciated.

TIA,

Rich

On Tue, 6 Mar 2018, Rich Shepard wrote:

(r.in.lidar) : /error while loading shared libraries: libproj.so.12:
cannot open shared object file: No such file or directory
../../include/Make/Html.make:14: recipe for target 'r.in.lidar.tmp.html' failed
make: *** [r.in.lidar.tmp.html] Error 1
rm r.in.lidar.tmp.html

   I see that someone added a couple of .html files to the trunck branch in
release 72331. Unfortunately, these did not fis the problems. Here're the
error messages and the results of running 'make' in each directory:

Errors in:
/home/rshepard/gis/grass/grass7_trunk/raster/r.in.lidar
/home/rshepard/gis/grass/grass7_trunk/raster3d/r3.in.lidar
/home/rshepard/gis/grass/grass7_trunk/vector/v.out.lidar
/home/rshepard/gis/grass/grass7_trunk/vector/v.in.lidar

~/gis/grass/grass7_trunk/raster/r.in.lidar]$ make
if [ "/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin/r.in.lidar" != "" ] ; then GISRC=/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/demolocation/.grassrc75 GISBASE=/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu PATH="/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/scripts:$PATH" PYTHONPATH="/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/etc/python:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/gui/wxpython:$PYTHONPATH" LD_LIBRARY_PATH="/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/scripts:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/lib:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/lib:/usr/lib/qt
/lib:" LC_ALL=C LANG=C LANGUAGE=C /home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin/r.in.lidar --html-description < /dev/null | grep -v '</body>\|</html>' > r.in.lidar.tmp.html ; fi
/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin/r.in.lidar: error while loading shared libraries: libproj.so.12: cannot open shared object file: No such file or directory
../../include/Make/Html.make:14: recipe for target 'r.in.lidar.tmp.html' failed
make: *** [r.in.lidar.tmp.html] Error 1
rm r.in.lidar.tmp.html

~/gis/grass/grass7_trunk/raster3d/r3.in.lidar]$ make
if [ "/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin/r3.in.lidar" != "" ] ; then GISRC=/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/demolocation/.grassrc75 GISBASE=/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu PATH="/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/scripts:$PATH" PYTHONPATH="/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/etc/python:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/gui/wxpython:$PYTHONPATH" LD_LIBRARY_PATH="/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/scripts:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/lib:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/lib:/usr/lib/q
t/lib:" LC_ALL=C LANG=C LANGUAGE=C /home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin/r3.in.lidar --html-description < /dev/null | grep -v '</body>\|</html>' > r3.in.lidar.tmp.html ; fi
/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin/r3.in.lidar: error while loading shared libraries: libproj.so.12: cannot open shared object file: No such file or directory
../../include/Make/Html.make:14: recipe for target 'r3.in.lidar.tmp.html' failed
make: *** [r3.in.lidar.tmp.html] Error 1
rm r3.in.lidar.tmp.html

~/gis/grass/grass7_trunk/vector/v.out.lidar]$ make
if [ "/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin/v.out.lidar" != "" ] ; then GISRC=/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/demolocation/.grassrc75 GISBASE=/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu PATH="/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/scripts:$PATH" PYTHONPATH="/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/etc/python:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/gui/wxpython:$PYTHONPATH" LD_LIBRARY_PATH="/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/scripts:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/lib:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/lib:/usr/lib/q
t/lib:" LC_ALL=C LANG=C LANGUAGE=C /home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin/v.out.lidar --html-description < /dev/null | grep -v '</body>\|</html>' > v.out.lidar.tmp.html ; fi
/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin/v.out.lidar: error while loading shared libraries: libproj.so.12: cannot open shared object file: No such file or directory
../../include/Make/Html.make:14: recipe for target 'v.out.lidar.tmp.html' failed
make: *** [v.out.lidar.tmp.html] Error 1
rm v.out.lidar.tmp.html

~/gis/grass/grass7_trunk/vector/v.in.lidar]$ make
if [ "/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin/v.in.lidar" != "" ] ; then GISRC=/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/demolocation/.grassrc75 GISBASE=/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu PATH="/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/scripts:$PATH" PYTHONPATH="/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/etc/python:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/gui/wxpython:$PYTHONPATH" LD_LIBRARY_PATH="/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/scripts:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/lib:/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/lib:/usr/lib/qt
/lib:" LC_ALL=C LANG=C LANGUAGE=C /home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin/v.in.lidar --html-description < /dev/null | grep -v '</body>\|</html>' > v.in.lidar.tmp.html ; fi
/home/rshepard/gis/grass/grass7_trunk/dist.i686-pc-linux-gnu/bin/v.in.lidar: error while loading shared libraries: libproj.so.12: cannot open shared object file: No such file or directory
../../include/Make/Html.make:14: recipe for target 'v.in.lidar.tmp.html' failed
make: *** [v.in.lidar.tmp.html] Error 1
rm v.in.lidar.tmp.html

   Perhaps later today or tomorrow?

TIA,

Rich

Rich,

v.in.lidar: error while loading shared libraries: libproj.so.12: cannot open shared object file: No such file or directory

To me that looks like library not in LD_LIBRARY_PATH error or library version changed after compilation of GRASS.

Markus

On Wed, 7 Mar 2018, Markus Neteler wrote:

v.in.lidar: error while loading shared libraries: libproj.so.12: cannot
open shared object file: No such file or directory

To me that looks like library not in LD_LIBRARY_PATH error or library
version changed after compilation of GRASS.

Markus,

   The latter is probably the reason. Installed here are:

/usr/lib/libproj.so.13
/usr/lib/libproj.so.13.0.0
/usr/lib/libproj.so

   But, I cannot compile the latest GRASS release (72331) because of the
missing .html files.

   I suppose I can cd to those directories and touch the filenames so I can
build GRASS against the upgraded libproj.so.

Thanks,

Rich

On Wed, 7 Mar 2018, Rich Shepard wrote:

I suppose I can cd to those directories and touch the filenames so I can
build GRASS against the upgraded libproj.so.

   No, this won't work. The error message is the lack of a makefile 'all' for
r.in.lidar.tmp.html (and the other three modules), but that file does not
exist in the source tree:

~/gis/grass/grass7_trunk/raster/r.in.lidar]$ ls
Makefile projection.c r_in_lidar_zrange.png
filters.c r.in.lidar.html r_in_lidar_zrange.svg
filters.h r_in_lidar.png rast_segment.c
info.c r_in_lidar_base_raster.png rast_segment.h
local_proto.h r_in_lidar_base_raster.svg string_list.c
main.c r_in_lidar_binning_count.png support.c
point_binning.c r_in_lidar_binning_mean.png test/
point_binning.h r_in_lidar_dem_mean3D.jpg testsuite/

   The file, r.in.lidar.html exists, but not r.in.lidar.tmp.html. Is the tmp
file generated during the build process? If so, I wonder why the Makefile
doesn't include it.

Rich

2018-03-07 20:17 GMT+01:00 Rich Shepard <rshepard@appl-ecosys.com>:

I suppose I can cd to those directories and touch the filenames so I can
build GRASS against the upgraded libproj.so.

probably liblas is compiled against different version of libproj. Try
to recompile liblas first.

Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

On Wed, 7 Mar 2018, Martin Landa wrote:

probably liblas is compiled against different version of libproj. Try to
recompile liblas first.

Martin,

   Installed here are libproj-4.4.7 and proj-5.0.0. Today I rebuilt
libLAS-1.8.1 and libspatialite (gdal rebuilt yesterday) so the latest qgis
would build.

Thanks,

Rich

On Tue, Mar 6, 2018 at 5:22 PM, Rich Shepard <rshepard@appl-ecosys.com> wrote:

I think there was a recent thread on *.in.lidar modules, but I paid no
attention as I’m not currently using lidar data.

After checking out the latest from the grass7_trunk svn repository I
configured the source tree and tried to build it. There are errors in the
*.in.lidar modules; each has errors when I try to build each one separately:

(r.in.lidar)
: /error while loading shared libraries: libproj.so.12: cannot open shared object file: No such file or directory

Apparently your liblas installation does not find libproj.so.12.

If you compiled liblas from source, please recompile liblas.

If you installed liblas from your distro’s repo, this distro’s repo is broken and you need to compile liblas from source.

HTH,

Markus M

On Wed, 7 Mar 2018, Markus Metz wrote:

Apparently your liblas installation does not find libproj.so.12.

Markus,

   There are two issues and I think they're becoming conflated.

   Issue 1: I cannot invoke the installed grass-7.5 because it was built
against libproj.so.12.0.0 and that library has been upgraded to
libproj.so.13.0.0. This issue will be resolved by building the new svn
source against the newer libproj library.

   Issue 2: Building the new version fails because of errors in:
/home/rshepard/gis/grass/grass7_trunk/raster/r.in.lidar
/home/rshepard/gis/grass/grass7_trunk/raster3d/r3.in.lidar
/home/rshepard/gis/grass/grass7_trunk/vector/v.out.lidar
/home/rshepard/gis/grass/grass7_trunk/vector/v.in.lidar

and when I run make in each of those directories it fails because it cannot
find the *.tmp.html files.

   I can re-post those attempts at running 'make' in each *.lidar directory
if desired.

HTH,

Rich

On Wed, Mar 7, 2018 at 10:27 PM, Rich Shepard <rshepard@appl-ecosys.com> wrote:

On Wed, 7 Mar 2018, Markus Metz wrote:

Apparently your liblas installation does not find libproj.so.12.

Markus,

There are two issues and I think they’re becoming conflated.

Issue 1: I cannot invoke the installed grass-7.5 because it was built
against libproj.so.12.0.0 and that library has been upgraded to
libproj.so.13.0.0.

that means you need to rebuild liblas and maybe its dependencies, before you recompile GRASS

Markus M

This issue will be resolved by building the new svn
source against the newer libproj library.

Issue 2: Building the new version fails because of errors in:
/home/rshepard/gis/grass/grass7_trunk/raster/r.in.lidar
/home/rshepard/gis/grass/grass7_trunk/raster3d/r3.in.lidar
/home/rshepard/gis/grass/grass7_trunk/vector/v.out.lidar
/home/rshepard/gis/grass/grass7_trunk/vector/v.in.lidar

and when I run make in each of those directories it fails because it cannot
find the *.tmp.html files.

I can re-post those attempts at running ‘make’ in each *.lidar directory
if desired.

HTH,

Rich


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

On Wed, 7 Mar 2018, Markus Metz wrote:

that means you need to rebuild liblas and maybe its dependencies, before
you recompile GRASS

Markus,

   Thank you. The errors I reported were not being able to compile lidar html
files which seemed to me to be independent of the spatial libraries.

   Taking your advice, I recompiled and re-installed proj, gdal, geos,
libLAS, laszip, blas/lapack (and OpenBLAS but the system cannot find it),
etc. Surprisingly (to me) this did the trick.

   While I don't understand the relationship of these libraries to the build
error I accept that there is such a relationship.

Best regards,

Rich