<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Vaclav,
<div class=""><br class="">
</div>
<div class="">I've been tied up for awhile, but I just now followed up on the suggestion to open a request to include laslib-config with the laslib/lastools Anaconda package. </div>
<div class=""><br class="">
</div>
<div class="">But I can see no way to do this. Not even a way to contact whoever is maintaining this package for Anaconda Cloud. The only link is back to the original site where the open source code can be downloaded. </div>
<div class=""><br class="">
</div>
<div class="">Here is the link if you or anyone out there has a suggestion.</div>
<div class=""><a href="https://anaconda.org/conda-forge/lastools" class="">https://anaconda.org/conda-forge/lastools</a> </div>
<div class=""><br class="">
</div>
<div class="">Michael<br class="">
<div class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;" class="">
____________________</div>
<div style="font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Helvetica" size="3" class="">C. Michael Barton</font></div>
<div style="font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Helvetica" size="3" class="">Director, Center for Social Dynamics & Complexity </font></div>
<div style="font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Helvetica" size="3" class="">Professor of Anthropology, School of Human Evolution & Social Change</font></div>
<div class=""><font face="Helvetica" size="3" class="">Head, Graduate Faculty in Complex Adaptive Systems Science</font></div>
<div style="font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Helvetica" size="3" class="">Arizona State University</font></div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;" class="">
<br class="">
</div>
<font face="Helvetica" size="3" class=""><font class="">voice: </font><font class="">480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)</font><br class="">
<font class="">fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)</font><br class="">
</font>
<div style="font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Helvetica" size="3" class="">www: <a href="http://www.public.asu.edu/~cmbarton" class="">
http://www.public.asu.edu/~cmbarton</a>, <a href="http://csdc.asu.edu" class="">http://csdc.asu.edu</a></font></div>
<br class="">
</div>
</div>
</span></div>
</span></div>
</span></div>
</span></div>
</span></div>
</span></div>
</span></div>
</span></div>
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Feb 9, 2018, at 8:14 AM, Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com" class="">wenzeslaus@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Moving libLAS+Mac+Anaconda discussion to the list.<br class="">
<div class="">
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Fri, Feb 9, 2018 at 12:23 AM, Michael Barton <span dir="ltr" class="">
<<a href="mailto:Michael.Barton@asu.edu" target="_blank" class="">Michael.Barton@asu.edu</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class=""><br class="">
<div class="">The Anaconda LAS package seems to have all the binary distribution files and libraries built by compiling LAS from source (i.e., those that I bundled previously)--EXCEPT for liblas-config.</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">That's what I'm saying. Open an issue (wherever appropriate) to fix libLAS Anaconda package. Perhaps all you need is a development version of this package if Anaconda packaging is similar to Linux packaging.<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class="">
<div class="">It would be nice if I could build GRASS with LAS support without the need for this file.</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">That seems like a workaround for an upstream issue as opposed to reporting the issue upstream as first step in fixing it. If libLAS is dropping liblas-config a way to get the libraries and headers or of if liblas-config usage in this context is
not appropriate (which I can't tell), then yes, we should switch to specifying the libraries manually.<br class="">
</div>
<div class=""> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class="">
<div class=""><br class="">
</div>
<div class="">I've looked at liblas-config and can see what it does. But AFAICT, when running v.in.lidar or r.in.lidar, they are only really using the LAS libraries and binary tools las2txt and laszip.</div>
</div>
</blockquote>
<div class=""><br class="">
liblas-config is needed for the compilation of things against libLAS, not for runtime. It's the same as with the C header files, you don't need them during runtime, but you need them for compilation.<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class="">
<div class="">So perhaps GRASS is not using any of the non-LAS linked libraries that laslib-config provides paths to (e.g., boost and gdal).</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">As far as I understand, they are needed for the compilation because libLAS needs them.
<br class="">
</div>
<div class=""> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class="">
<div class="">If GRASS actually needs all of the linked files that laslib-config provides, then we can't just use the binaries in the Anaconda LAS tools package.</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">libLAS uses Boost and (I think optionally) GDAL, so I would expect that to be part of the Anaconda package (or installed as a dependency).<br class="">
</div>
<div class=""> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class="">
<div class="">The only recourse is to try to recompile it in an Anaconda environment and have it create an appropriate laslib-config. A serious pain.</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">I would not do that until you see what the upstream (Anaconda package) people say.<br class="">
<br class="">
In the mean time, before the issue is resolved upstream, you can create the liblas-config, youself. It will look something like this:<br class="">
</div>
<div class=""><br class="">
if [ "$1" = "--libs" ]<br class="">
then<br class="">
echo -L/usr/lib -llas -llas_c -L... /usr/lib/x86_64-linux-gnu/libtiff.so<br class="">
...<br class="">
<br class="">
</div>
<div class="">I'm attaching a full script, but you need to supply the values appropriate for Mac/your computer. Start with what you would put to the --with-liblas-libs=...<br class="">
<br class="">
</div>
<div class="">Unrelated to the Mac issue, I wonder if it is a probable that we are not making use of the --defines option in liblas-config (which gives "-DHAVE_GDAL=1 -DHAVE_LIBGEOTIFF=1", but perhaps it is important only when compiling libLAS binary tools.<br class="">
</div>
<div class=""> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class="">
<div class=""><br class="">
</div>
<div class="">But if all GRASS really needs are the LAS binaries and libraries (liblas.dylib on the Mac), then maybe we can just point to the resources it needs.</div>
</div>
</blockquote>
<div class=""><br class="">
<br class="">
</div>
<div class="">Try the attached script to do that. For me GRASS configures successfully when I use it instead of liblas-config:<br class="">
<br class="">
--with-liblas="/home/.../fake-liblas-config.sh" <br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Best,<br class="">
</div>
<div class="">Vaclav<br class="">
</div>
<div class=""> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class="">
<div class=""><br class="">
</div>
<div class="">Cheers</div>
<div class="">Michael</div>
<div class="">
<div class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">
<div style="text-indent:0px" class=""><span class="gmail-m_2741894623242975464Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="overflow-wrap: break-word;" class=""><span class="gmail-m_2741894623242975464Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="overflow-wrap: break-word;" class=""><span class="gmail-m_2741894623242975464Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="overflow-wrap: break-word;" class=""><span class="gmail-m_2741894623242975464Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="overflow-wrap: break-word;" class=""><span class="gmail-m_2741894623242975464Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="overflow-wrap: break-word;" class=""><span class="gmail-m_2741894623242975464Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="overflow-wrap: break-word;" class=""><span class="gmail-m_2741894623242975464Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="overflow-wrap: break-word;" class=""><span class="gmail-m_2741894623242975464Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="overflow-wrap: break-word;" class="">
<div class=""><span class="gmail-">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
____________________</div>
<div style="font-variant:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px" class="">
<font size="3" face="Helvetica" class="">C. Michael Barton</font></div>
<div style="font-variant:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px" class="">
<font size="3" face="Helvetica" class="">Director, Center for Social Dynamics & Complexity </font></div>
<div style="font-variant:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px" class="">
<font size="3" face="Helvetica" class="">Professor of Anthropology, School of Human Evolution & Social Change</font></div>
<div class=""><font size="3" face="Helvetica" class="">Head, Graduate Faculty in Complex Adaptive Systems Science</font></div>
<div style="font-variant:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px" class="">
<font size="3" face="Helvetica" class="">Arizona State University</font></div>
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
<br class="">
</div>
</span><span class="gmail-"><font size="3" face="Helvetica" class=""><font class="">voice: </font><font class=""><a href="tel:(480)%20965-6262" value="+14809656262" target="_blank" class="">480-965-6262</a> (SHESC), <a href="tel:(480)%20965-8130" value="+14809658130" target="_blank" class="">480-965-8130</a>/727-<wbr class="">9746 (CSDC)</font><br class="">
<font class="">fax: <a href="tel:(480)%20965-7671" value="+14809657671" target="_blank" class="">
480-965-7671</a> (SHESC), <a href="tel:(480)%20727-0709" value="+14807270709" target="_blank" class="">480-727-0709</a> (CSDC)</font><br class="">
</font></span>
<div style="font-variant:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px" class="">
<font size="3" face="Helvetica" class="">www: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=koceBYgeMqhIORXyOL-wIEeo3WDdsWFZKza5z7-oZT8&s=2s299vwE06IODZNlQBKe9qMmWwVPg2Ka4A-aCuv_pEs&e=" target="_blank" class="">
http://www.public.asu.edu/~<wbr class="">cmbarton</a>, <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=koceBYgeMqhIORXyOL-wIEeo3WDdsWFZKza5z7-oZT8&s=otYeQ8UOhP9rfAUxhw95siPL86C1goWF2m1DzmOcGvo&e=" target="_blank" class="">
http://csdc.asu.edu</a></font></div>
<br class="">
</div>
<br class="">
</div>
</span></div>
</span></div>
</span></div>
</span></div>
</span></div>
</span></div>
</span><br class="">
On Feb 8, 2018, at 6:16 PM, Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com" class="">wenzeslaus@gmail.com</a>> wrote:<br class="">
<br class="">
Hi Michael,<br class="">
<br class="">
I would say first thing is to check if it is really missing and if so why is that. I assume you have *-config for GDAL, so in general there is no special thing why there should be no *-configure on Mac.<br class="">
<br class="">
Then you can supply your own liblas-config. What you need is a bash script which will behave like this:<br class="">
<br class="">
$ liblas-config --libs<br class="">
-L/usr/lib -llas -llas_c -L/usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libboost_program_options.so /usr/lib/x86_64-linux-gnu/libboost_thread.so /usr/lib/libgdal.so /usr/lib/x86_64-linux-gnu/libgeotiff.so /usr/lib/x86_64-linux-gnu/libtiff.so<br class="">
$ liblas-config --cflags<br class="">
-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2<br class="">
$ liblas-config --includes<br class="">
-I/usr/include -I/usr/include/gdal -I/usr/include/geotiff -I/usr/include/x86_64-linux-gnu<br class="">
<br class="">
The last resort would be to add --with-*-libs at el. to <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__configure.in&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=koceBYgeMqhIORXyOL-wIEeo3WDdsWFZKza5z7-oZT8&s=mSkvZCKAiuPaLTfgUcV6R5p1tLg1UoZkuzXgyXUQ1L0&e=" class="">
configure.in</a> in GRASS but there are 2 reasons why not to do that: 1) I don't see the combination of *-config and --with-*-libs at el. to be used now. 2) The fix really should be done on the libLAS site.<br class="">
<br class="">
If we would switch from liblas-config just to --with-*-libs at el., it would be much harder for the average person compiling GRASS. I don't understand it 100% but I think you need to a list of libLAS dependencies to make it work (such as /usr/lib/x86_64-linux-gnu/libboost_thread.so)
which might be hard to get. On the other hand, liblas-config takes care of providing path to the right libraries.<br class="">
<br class="">
I just compiled libLAS from latest source on Linux and liblas-config was in dir called `app` after build (i.e. `make`) and after `make install` it is in the install dir under `bin` with other executables. So as far as I can tell, libLAS should have liblas-config.<br class="">
<br class="">
Vaclav<br class="">
<br class="">
On Thu, Feb 8, 2018 at 3:49 PM, Markus Neteler <<a href="mailto:neteler@osgeo.org" class="">neteler@osgeo.org</a>> wrote:<br class="">
><br class="">
> ...<br class="">
><br class="">
> On Thu, Feb 8, 2018 at 9:05 PM, Michael Barton <<a href="mailto:Michael.Barton@asu.edu" class="">Michael.Barton@asu.edu</a>> wrote:<br class="">
> > ...<br class="">
> > However, the Anaconda version of LAS tools does not include a liblas-config<br class="">
> > file. The presence of this file is used by GRASS as a proxy check for the<br class="">
> > existence of LAS libraries. I'm not sure if compiling v.in.lidar and<br class="">
> > r.in.lidar actually do anything with the config file beyond finding<br class="">
> > liblas.dylib. But if I try to point configure to the libraries directly<br class="">
> > (with-liblas-libraries="...") it is ignored.<br class="">
> ><br class="">
> > So do you have any thoughts about how to get GRASS to use the liblas<br class="">
> > resources if liblas-config is missing?<br class="">
> ><br class="">
> > Michael<br class="">
> > ______________________________<br class="">
> > C. Michael Barton<br class="">
> > Director, Center for Social Dynamics & Complexity<br class="">
> > Professor of Anthropology, School of Human Evolution & Social Change<br class="">
> > Head, Graduate Faculty in Complex Adaptive Systems Science<br class="">
> > Arizona State University<br class="">
> > Tempe, AZ 85287-2402<br class="">
> > USA<br class="">
<br class="">
</div>
</span></div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
<span id="cid:33FF7BDB-C36D-49C7-A070-04455011ED0B"><fake-liblas-config.sh></span></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>