[Liblas-devel] build problem OS X
Michael P. Gerlek
mpg at flaxen.com
Mon Feb 14 12:13:23 EST 2011
I've fixed the missing semicolon issue, thanks for the report. (Did you
turn on LIBLAS_ENDIAN_AWARE explicitly? I'd have not expected that to be
the default.)
I can't help you on the gcc error, though, as I'm not a Mac guy - sorry.
-mpg
From: liblas-devel-bounces at lists.osgeo.org
[mailto:liblas-devel-bounces at lists.osgeo.org] On Behalf Of Stuart Edwards
Sent: Sunday, February 13, 2011 8:06 AM
To: liblas-devel at lists.osgeo.org
Subject: [Liblas-devel] build problem OS X
Hi ~
I'm trying to install libLAS-1.6.0 on OS X 10.6 and have run into a problem
during build. First though, congratulations on the amazing install
documentation without which I (a non-programmer) would never have got even
to this point. Everything has gone according to the instructions so far -
I've installed boost, cmake and laszip-1.0.1 (actually not mentioned in the
documentation). The configure process has completed successfully for the
base and optional libraries, but at build I get seven errors that causes
build to fail - I'm trying to build lasinfo, as directed.
The errors all occur in point.cpp.
1. Four are missing ";" before "}" ( at lines 498, 514, 530, and 571)
These are all in conjunction with "#endif" statements and adding a seemingly
redundant ";" before the "}" makes these errors go away, but may be causing
other damage that I'm not aware of.
2. Two more are similar to each other - at lines 563, 791,
e.g
#ifdef LIBLAS_ENDIAN_AWARE
boost::uint16_t output =
liblas::detail::bitsToInt<boost::int32_t>(output, m_data, pos);
return output
#else
boost::uint8_t* data = const_cast<boost::uint8_t*>(&m_data[0] + pos);
boost::uint16_t* output = reinterpret_cast<boost::uint16_t*>(data);
return *output;
#endif
; //(note -- my ";" see 1.above)
}
and the error is:
point.cpp:563: error: no matching function for call to 'bitsToInt(uint16_t&,
const std::vector<unsigned char, std::allocator<unsigned char> >&, size_t&)'
3. The last is: Command /Developer/usr/bin/g++-4.2 failed with
exit code 1
This one is puzzling since I did set CC=/usr/bin/llvm-gcc, and $CC yields
i686-apple-darwin10-llvm-gcc-4.2: no input files
Having made it this far I'd like to get this running, so if anyone has any
advice it would be much appreciated.
thx
Stu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/liblas-devel/attachments/20110214/6519af90/attachment.html
More information about the Liblas-devel
mailing list