[Liblas-devel] build problem OS X
sedwards2 at cinci.rr.com
Sun Feb 13 11:06:11 EST 2011
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,
boost::uint16_t output = liblas::detail::bitsToInt<boost::int32_t>(output, m_data, pos);
boost::uint8_t* data = const_cast<boost::uint8_t*>(&m_data + pos);
boost::uint16_t* output = reinterpret_cast<boost::uint16_t*>(data);
; //(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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Liblas-devel