<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Feb 17, 2011, at 12:18 PM, Stuart Edwards wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>On Feb 17, 2011, at 11:56 AM, Howard Butler wrote:<br><br><blockquote type="cite"><br></blockquote><blockquote type="cite">On Feb 13, 2011, at 10:06 AM, Stuart Edwards wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Hi ~<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">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.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">The errors all occur in point.cpp. <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">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. <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">2. Two more are similar to each other - at lines 563, 791, <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">e.g<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">#ifdef LIBLAS_ENDIAN_AWARE<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> boost::uint16_t output = liblas::detail::bitsToInt<boost::int32_t>(output, m_data, pos);<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> return output<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">#else<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> boost::uint8_t* data = const_cast<boost::uint8_t*>(&m_data[0] + pos);<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> boost::uint16_t* output = reinterpret_cast<boost::uint16_t*>(data);<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> return *output;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">#endif<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">; //(note -- my ";" see 1.above)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">}<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">and the error is:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">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></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">3. The last is: Command /Developer/usr/bin/g++-4.2 failed with exit code 1<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">This one is puzzling since I did set CC=/usr/bin/llvm-gcc, and $CC yields <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">i686-apple-darwin10-llvm-gcc-4.2: no input files<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Having made it this far I'd like to get this running, so if anyone has any advice it would be much appreciated.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Stewart,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Do you happen to know which version of XCode you are running? I'm running the latest XCode (3.2.5, I think), and I can compile libLAS using both LLVM and regular g++ without a problem. I could do so before Michael made the fixes as well. <br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Howard<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">PS, while we're doing our best to support LLVM, the version that comes with XCode is a bit old, and no libLAS developer is a daily LLVM user at this time. We want to make sure that platform works, as it is a rapidly improving up-and-comer, but it might still lag a little bit due to cultural uptake from the project.<br></blockquote><br>It's 3.2.3 - I'll update it and see what happens.<br>thx<br><br>Stu_______________________________________________<br></div></blockquote></div><br><div><br></div><div>OK -- that did the trick. With Xcode 3.2.5 no errors (but 150 warnings .....)</div><div><br></div><div>I did have to start from scratch; when I tried to compile my existing project I got the old errors</div><div><br></div><div>One other thing for those compiling on OS X using the instructions at:</div><div><br></div><div><a href="http://liblas.org/compilation.html#using-xcode-on-os-x">http://liblas.org/compilation.html#using-xcode-on-os-x</a></div><div><br></div><div>The arguments to be passed on at launch for the test of lasinfo had to be changed</div><div><br></div><div>First I get an error message: </div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">Program loaded.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><b>run</b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">[Switching to process 31225]</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">Running…</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><b>error: unknown option -c</b></div></div><div><b><br></b></div><div>I unchecked the "-c" in the set up box, and the error went away</div><div><br></div><div>then:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">Debugger stopped.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><b>Cannot open /Users/stu/liblas/test/data/TO_core_last_zoom.las for read. Exiting...</b></div></div><div><b><br></b></div><div>This is because the file is actually /test/data/TO_core_last_<b><i>clip</i></b>.las in my download</div><div><br></div><div>So change this too in the set up box and it should run just fine.............</div><div><br></div><div>Thanks for the help</div><div><br></div><div>Stu</div></body></html>