[Liblas-devel] installing liblas on mac osx 10.6.5 - warning/error message when running "make"

Howard Butler hobu.inc at gmail.com
Thu Dec 2 12:23:09 EST 2010


On Dec 2, 2010, at 10:55 AM, Verbesselt, Jan wrote:

> Hi all,
> 
> I am trying to install the libLAS C++ library on my mac here so that I can use it with GRASS (from http://www.kyngchaos.com/software/grass) as shown on the following wiki (http://grass.osgeo.org/wiki/LIDAR) and in the future via Python or R statistics.

It would be nice if someone contributed some code to GRASS to enable reading/writing LAS files directly with libLAS instead of using the las2txt/txt2las mechanisms.  It'd be much faster.  I would happily help any volunteer who takes on the task.

> Initially, I was getting an error when running the 'cmake -G "Unix Makefiles" ../ ' command. This was solved by commenting out ln the CMakeLists.txt :
> #file(READ "doc/index.txt" README )  (thanks Howard)

I will fix this for the next release.  Thanks for the report.

> Then I ran the following to link it with gdal and geotif library (installed before installing grass from http://www.kyngchaos.com/software/grass):
> "
> cmake -D CMAKE_INSTALL_PREFIX=/usr/local \
> -D GDAL_CONFIG=/Library/Frameworks/GDAL.framework/Programs/gdal-config \
> -D GEOTIFF_INCLUDE_DIR=/Library/Frameworks/UnixImageIO.framework/unix/include \
> -D GEOTIFF_LIBRARY=/Library/Frameworks/UnixImageIO.framework/unix/lib/libgeotiff.dylib \
> ..
> "
> which went ok:

Awesome.  I hadn't tested with William's frameworks yet.  I will add this to the docs as another alternative.

> Do I have to do something about these warning messages?

These warnings are expected.

> What are the consequences?

Some of these might be issues to worry about.  Others are not so consequential.  We do strive to compile as warning-free as possible, and we compile by default with most of the warning knobs turned on.  

Howard


More information about the Liblas-devel mailing list