<div dir="ltr">Hi Vaclav,<div><br></div><div>try linking to las_c instead of las</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">gcc liblastest.c -o liblastest -ggdb -L/usr/lib -llas_c </span><span style="font-family:arial,sans-serif;font-size:13px">/usr/lib/libgdal.so /usr/lib/libgeotiff.so /usr/lib/x86_64-linux-gnu/</span><span style="font-family:arial,sans-serif;font-size:13px">libtiff.so</span><br>
</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">boost and las.so not required here, i think</font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, May 23, 2014 at 10:04 PM, Vaclav Petras <span dir="ltr"><<a href="mailto:wenzeslaus@gmail.com" target="_blank">wenzeslaus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="">On Fri, May 23, 2014 at 3:35 PM, Rashad M <span dir="ltr"><<a href="mailto:mohammedrashadkm@gmail.com" target="_blank">mohammedrashadkm@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Vaclav,<div><br></div><div>If it helps: <a href="http://trac.osgeo.org/grass/ticket/2065" target="_blank">http://trac.osgeo.org/grass/ticket/2065</a></div>
<div class="gmail_extra"><br></div></div></blockquote></div><div>Thanks, I tried to unify the variables (r57541 and the patch from #2065):<br><br>CFLAGS="$CFLAGS $LIBLAS_CFLAGS $LIBLAS_INC"<br>CPPFLAGS="$CPPFLAGS $LIBLAS_CPPFLAGS $LIBLAS_INC" <br>
</div><div><br></div><div>but it did not help. I see that the ticket is closed and it puzzles me that it is not enough for me.<br></div><div class=""><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><div><div>
On Fri, May 23, 2014 at 9:25 PM, Vaclav Petras <span dir="ltr"><<a href="mailto:wenzeslaus@gmail.com" target="_blank">wenzeslaus@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div>
<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><div>On Fri, May 23, 2014 at 2:53 PM, Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br>
Vaclav Petras wrote:<br>
<br>
> So the test failed with segmentation fault<br>
<br>
</div>Possibly due to linking with gcc rather than g++. But that doesn't<br>
matter, as configure tests don't normally try to execute the program<br>
(that doesn't work if you're cross-compiling); they only care whether<br>
linking succeeds.<br>
<div><br></div></blockquote><div><br></div></div><div>I have to remember this gcc vs g++ possible issue and that ./cofigure does not execute. However, it did not helped me now. My sample program still segfaults when compiled with g++.<br>
</div><div><div> </div></div></div></div></div></div></div></blockquote></div></div></div></blockquote><div><br></div></div><div>I've tried also cxxflags and a file with cpp extension:<br><br>g++ liblastest.cpp -o liblastest -ggdb $(liblas-config --libs) $(liblas-config --includes) $(liblas-config --cxxflags)<br>
<br></div><div>but it still segfaults (with and without -ggdb). Should I report this somewhere (Launchpad, libLAS)?<br> <br></div><div class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div dir="ltr">
<div class="gmail_extra"><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
> but it would actually fail<br>
> during compilation if I would use `liblas-config --libs` because the boost<br>
> libraries are `libboost_program_options.so.1.54.0` on my computer while<br>
> `liblas-config --libs` says just `libboost_program_options.so` (same for<br>
> thread library).<br>
<br>
</div>You may need to install a -devel package, e.g. boost-devel or<br>
whatever.<br>
<br>
Typically, the unversioned symlink is in the -devel package, as it's<br>
only needed for compiling programs which use the library; running them<br>
will use either the library itself or a symlink which includes at<br>
least the major version number.<br>
<span></span></blockquote><div> </div></div>I installed libboost-thread-dev and libboost-program-options-dev and
compilation works with $(liblas-config --libs) $(liblas-config
--includes). So, it should work in ./configure but the result is still
"libLAS support: no".<span><font color="#888888"><br><br> <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span><font color="#888888">
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>><br>
</font></span></blockquote></font></span></div><br></div></div>
<br></div></div>_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org" target="_blank">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><span><font color="#888888"><br></font></span></blockquote></div><span><font color="#888888"><br>
<br clear="all"><div><br></div>-- <br><div><font face="arial, helvetica, sans-serif">Regards,<br>
Rashad</font></div>
</font></span></div></div>
</blockquote></div></div><br></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font face="arial, helvetica, sans-serif">Regards,<br> Rashad</font></div>
</div>