<HTML>
<HEAD>
<TITLE>Re: [Liblas-devel] Problems (and solutions) installing liblas 1.6.0 onMac OS X</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Peder,<BR>
<BR>
I don’t think you should be using WITH_ENDIANAWARE. That’s only for compiling on Big Endian systems (SPARC). OS X is little endian. <BR>
<BR>
Mike<BR>
<BR>
<BR>
-- <BR>
Michael Smith<BR>
Remote Sensing/GIS Center<BR>
US Army Corps of Engineers<BR>
<BR>
<BR>
<BR>
On 2/20/11 4:46 AM, "Peder Axensten" <<a href="Peder.Axensten@slu.se">Peder.Axensten@slu.se</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>On Mac OS X 10.6.6 there are a few issues with the liblas installation, at least on my machine. These problems occurred on a copy of the active source code. I also tried the latest release, but it seems to have the same issues.<BR>
<BR>
A basic installation works well, but<BR>
<BR>
Using WITH_GDAL it gets the wrong GDAL_LIBRARY path. It works if I change it manually to<BR>
/Library/Frameworks/GDAL.framework/unix/lib/libgdal<BR>
(It does get GDAL_INCLUDE_DIR right: /Library/Frameworks/GDAL.framework/Headers)<BR>
<BR>
Using WITH_LASZIP it gets the wrong LASZIP_INCLUDE_DIR. It gets it to<BR>
/usr/local/bin, changing it manually to /usr/local/include fixes it.<BR>
<BR>
Using WITH_ENDIANAWARE I got<BR>
liblas/src/point.cpp: In member function ‘uint16_t liblas::Point::GetIntensity() const’:<BR>
liblas/src/point.cpp:563: error: no matching function for call to ‘bitsToInt(uint16_t&, const std::vector<unsigned char, std::allocator<unsigned char> >&, size_t&)’<BR>
liblas/src/point.cpp: In member function ‘uint16_t liblas::Point::GetPointSourceID() const’:<BR>
liblas/src/point.cpp:791: error: no matching function for call to ‘bitsToInt(uint16_t&, const std::vector<unsigned char, std::allocator<unsigned char> >&, size_t&)’<BR>
make[2]: *** [src/CMakeFiles/las.dir/point.cpp.o] Error 1<BR>
make[1]: *** [src/CMakeFiles/las.dir/all] Error 2<BR>
make: *** [all] Error 2<BR>
<BR>
I can see that there is a<BR>
template <typename IntegerType><BR>
inline IntegerType bitsToInt(IntegerType& output, std::vector<boost::uint8_t> const& data, std::size_t index)<BR>
in details/private_utility.hpp, but I haven't looked into why it's not found...<BR>
<BR>
<BR>
<BR>
We are about 10 researchers who work extensively with las files, generated from lidar scanning as well as aerial photography through photometrical calculations. I want to develop a C++ library implementing our most frequent tasks. The idea is to implement it in C++ and then run it from R through wrappers. To be able to use liblas, it must be easily to install it on Mac, Linux, and Windows using gcc (that R requires, also on Windows).<BR>
<BR>
I'm not very good with 'make' scripts, but I'm very willing to contribute in any way I can.<BR>
<BR>
Best regards,<BR>
<BR>
Peder Axensten<BR>
Research engineer<BR>
<BR>
Swedish University of Agricultural Sciences<BR>
Dept. of Forest Resource Management<BR>
Forest Remote Sensing<BR>
Sweden<BR>
<BR>
Phone: +46-90-786.8500<BR>
<a href="http://www.srh.slu.se/">http://www.srh.slu.se/</a><BR>
<BR>
_______________________________________________<BR>
Liblas-devel mailing list<BR>
<a href="Liblas-devel@lists.osgeo.org">Liblas-devel@lists.osgeo.org</a><BR>
<a href="http://lists.osgeo.org/mailman/listinfo/liblas-devel">http://lists.osgeo.org/mailman/listinfo/liblas-devel</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>