<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
So let me explain where I’m at with libLAS.
<div class=""><br class="">
</div>
<div class="">I recompiled boost 1.5.4 for 64 bit only (it will no longer compile 32_64 it seems) and fixed a known error in boost (<span style="font-family: 'Helvetica Neue'; font-size: 14px;" class="">manually delete the comma at the end of the list on line 117 of /boost-snow/include/boost/interprocess/errors.hpp)</span></div>
<div class=""><span style="font-family: 'Helvetica Neue'; font-size: 14px;" class=""><br class="">
</span></div>
<div class="">I’ve got libLAS 1.8</div>
<div class=""><br class="">
</div>
<div class="">Here is the workflow I used last time.</div>
<div class=""><br class="">
</div>
<div class="">
<div style="font-family:'Helvetica Neue';font-size:14px;" class="">cd to liblas source folder</div>
<span style="font-family:'Helvetica Neue';font-size:14px;" class=""></span>
<div style="font-family:'Helvetica Neue';font-size:14px;" class="">mkdir makefiles</div>
<span style="font-family:'Helvetica Neue';font-size:14px;" class=""></span>
<div style="font-family:'Helvetica Neue';font-size:14px;" class="">cd makefiles</div>
<span style="font-family:'Helvetica Neue';font-size:14px;" class=""></span>
<div style="font-family:'Helvetica Neue';font-size:14px;" class=""><br class="">
</div>
<span style="font-family:'Helvetica Neue';font-size:14px;" class=""></span>
<div style="font-family:'Helvetica Neue';font-size:14px;" class="">export BOOST_ROOT="/Users/cmbarton/Dropbox/GRASS_dropbox/compiling/boost-snow” ## my path to boost</div>
</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class=""><br class="">
</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class="">Then I run cmake</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class=""><br class="">
</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class="">Originally, I did this</div>
<div class=""><br class="">
</div>
<div class="">
<div style="font-family:'Helvetica Neue';font-size:14px;" class="">cmake -G "Unix Makefiles" -D CMAKE_OSX_ARCHITECTURES=“i386;x86_64"  -D CMAKE_OSX_SYSROOT="/Developer/SDKs/MacOSX10.7.sdk” -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 ../</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class=""><br class="">
</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class=""><br class="">
</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class="">cmake ran fine, but make bombed with </div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class=""><br class="">
</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class="">>clang: error: invalid arch name '-arch “i386’</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class=""><br class="">
</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class="">So I tried it 64 bit only since I compiled boost for 64 bit only.</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class=""><br class="">
</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class="">
<div class="">cmake -G "Unix Makefiles"  -D CMAKE_OSX_ARCHITECTURES=“x86_64"  -D CMAKE_OSX_SYSROOT="/Developer/SDKs/MacOSX10.7.sdk” -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"  -D CMAKE_VERBOSE_MAKEFILE=true ../</div>
<div class=""><br class="">
</div>
<div class=""></div>
</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class="">Again, cmake is fine but make bombed. Here is the complete error</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class=""><br class="">
</div>
<div class=""><font face="Helvetica Neue" size="4" class="">-- The C compiler identification is Clang 5.1.0<br class="">
-- The CXX compiler identification is Clang 5.1.0<br class="">
CMake Warning at /Applications/CMake 2.8-12.app/Contents/share/cmake-2.8/Modules/Platform/Darwin.cmake:179 (message):<br class="">
  Ignoring CMAKE_OSX_SYSROOT value:<br class="">
<br class="">
   /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk<br class="">
<br class="">
  because the directory does not exist.<br class="">
Call Stack (most recent call first):<br class="">
  /Applications/CMake 2.8-12.app/Contents/share/cmake-2.8/Modules/CMakeSystemSpecificInformation.cmake:36 (include)<br class="">
  CMakeLists.txt:9 (project)<br class="">
<br class="">
<br class="">
-- Check for working C compiler: /usr/bin/cc<br class="">
-- Check for working C compiler: /usr/bin/cc -- works<br class="">
-- Detecting C compiler ABI info<br class="">
-- Detecting C compiler ABI info - failed<br class="">
-- Check for working CXX compiler: /usr/bin/c++<br class="">
-- Check for working CXX compiler: /usr/bin/c++ -- works<br class="">
-- Detecting CXX compiler ABI info<br class="">
-- Detecting CXX compiler ABI info - failed<br class="">
-- Setting libLAS build type - Release<br class="">
-- Searching for Boost 1.38+ - done<br class="">
-- Looking for include file pthread.h<br class="">
-- Looking for include file pthread.h - not found<br class="">
-- Could NOT find Threads (missing:  Threads_FOUND) <br class="">
-- Boost version: 1.54.0<br class="">
-- Found the following Boost libraries:<br class="">
--   program_options<br class="">
--   thread<br class="">
--   system<br class="">
--   iostreams<br class="">
--   filesystem<br class="">
-- Searching for LASzip 2.0.1+ library<br class="">
-- Could NOT find LASzip (missing:  LASZIP_LIBRARY LASZIP_INCLUDE_DIR) (Required is at least version "2.0.1")<br class="">
-- Searching for GDAL 1.7.0+ library<br class="">
-- Found acceptable GDAL version 1.11.2<br class="">
-- Found GDAL: /lib.dylib (Required is at least version "1.7.0") <br class="">
-- Searching for GeoTIFF 1.2.5+ library<br class="">
-- Found GeoTIFF version: 1.4.0<br class="">
-- Found GeoTIFF: /Library/Frameworks/UnixImageIO.framework/unix/lib/libgeotiff.dylib (Required is at least version "1.2.5") <br class="">
-- Found TIFF: /opt/local/lib/libtiff.dylib (found version "3.9.5") <br class="">
-- Enable libLAS utilities to build - done<br class="">
-- Enable libLAS unit tests to build - done<br class="">
-- Configuring done<br class="">
-- Generating done<br class="">
-- Build files have been written to: /Users/cmbarton/Dropbox/GRASS_dropbox/compiling/libLAS-1.8.0/makefiles<br class="">
cmb-imaccsdc:makefiles cmbarton$ make<br class="">
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -H/Users/cmbarton/Dropbox/GRASS_dropbox/compiling/libLAS-1.8.0 -B/Users/cmbarton/Dropbox/GRASS_dropbox/compiling/libLAS-1.8.0/makefiles --check-build-system CMakeFiles/Makefile.cmake 0<br class="">
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_start /Users/cmbarton/Dropbox/GRASS_dropbox/compiling/libLAS-1.8.0/makefiles/CMakeFiles /Users/cmbarton/Dropbox/GRASS_dropbox/compiling/libLAS-1.8.0/makefiles/CMakeFiles/progress.marks<br class="">
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all<br class="">
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f src/CMakeFiles/las.dir/build.make src/CMakeFiles/las.dir/depend<br class="">
cd /Users/cmbarton/Dropbox/GRASS_dropbox/compiling/libLAS-1.8.0/makefiles && "/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/cmbarton/Dropbox/GRASS_dropbox/compiling/libLAS-1.8.0 /Users/cmbarton/Dropbox/GRASS_dropbox/compiling/libLAS-1.8.0/src /Users/cmbarton/Dropbox/GRASS_dropbox/compiling/libLAS-1.8.0/makefiles
 /Users/cmbarton/Dropbox/GRASS_dropbox/compiling/libLAS-1.8.0/makefiles/src /Users/cmbarton/Dropbox/GRASS_dropbox/compiling/libLAS-1.8.0/makefiles/src/CMakeFiles/las.dir/DependInfo.cmake --color=<br class="">
Scanning dependencies of target las<br class="">
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f src/CMakeFiles/las.dir/build.make src/CMakeFiles/las.dir/build<br class="">
"/Applications/CMake 2.8-12.app/Contents/bin/cmake" -E cmake_progress_report /Users/cmbarton/Dropbox/GRASS_dropbox/compiling/libLAS-1.8.0/makefiles/CMakeFiles 3<br class="">
[  1%] Building CXX object src/CMakeFiles/las.dir/detail/index/indexcell.cpp.o<br class="">
cd /Users/cmbarton/Dropbox/GRASS_dropbox/compiling/libLAS-1.8.0/makefiles/src && /usr/bin/c++   -DHAVE_GDAL=1 -DHAVE_LIBGEOTIFF=1 -Dlas_EXPORTS -stdlib=libstdc++   -Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -Wpointer-arith -Wcast-align -Wcast-qual
 -Wfloat-equal -Wredundant-decls -Wno-long-long -O3 -DNDEBUG -arch “x86_64  -D CMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.7.sdk” -fPIC -I/Users/cmbarton/Dropbox/GRASS_dropbox/compiling/libLAS-1.8.0/src/../include -I/Users/cmbarton/Dropbox/GRASS_dropbox/compiling/boost-snow/include
 -I/Library/Frameworks/GDAL.framework/Headers -I/Library/Frameworks/UnixImageIO.framework/unix/include -I/opt/local/include    -o CMakeFiles/las.dir/detail/index/indexcell.cpp.o -c /Users/cmbarton/Dropbox/GRASS_dropbox/compiling/libLAS-1.8.0/src/detail/index/indexcell.cpp<br class="">
clang: error: invalid arch name '-arch “x86_64'<br class="">
make[2]: *** [src/CMakeFiles/las.dir/detail/index/indexcell.cpp.o] Error 1<br class="">
make[1]: *** [src/CMakeFiles/las.dir/all] Error 2<br class="">
make: *** [all] Error 2<br class="">
</font><br class="">
</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class=""><br class="">
</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class="">It looks like it is misreading the architecture flag value</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class=""><br class="">
</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class="">I’ve tried it without quotes around x86_64 and it acts like there are unmatched quotes in the configure string. But there are not. Is there a bug somewhere in a configure file? Where??? I can’t
 find any file with the CMAKE_OSX_ARCHITECTURES flag to look at.</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class=""><br class="">
</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class="">I’m completely stumped. </div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class=""><br class="">
</div>
<div class=""><font face="Helvetica Neue" size="4" class=""><br class="">
</font></div>
<div class=""><br class="">
</div>
<div class="">Michael</div>
<div style="font-family:'Helvetica Neue';font-size:14px;" class=""></div>
<div apple-content-edited="true" 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>
<br class="">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Sep 16, 2015, at 7:22 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="">
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Wed, Sep 16, 2015 at 9:41 AM, William Kyngesburye <span dir="ltr" class="">
<<a href="mailto:woklist@kyngchaos.com" target="_blank" class="">woklist@kyngchaos.com</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So the question is if GRASS supports one or the other library or both, or does it also use the tools in a script so it doesn't matter.</blockquote>
</div>
<br class="">
</div>
<div class="gmail_extra">GRASS uses only the library, not the tools, and is designed/tested/known to work only with libLAS.<br class="">
<br class="">
I suppose there never was a need or will to compile it with LASlib which is coupled with partially non-FOSS LAStools (and you would need the FOSS libLAS' tools anyway).<br class="">
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>