[Liblas-devel] build problem OS X
Stuart Edwards
sedwards2 at cinci.rr.com
Sun Feb 13 11:06:11 EST 2011
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/20110213/5399cf90/attachment.html
More information about the Liblas-devel
mailing list