<br><br><div class="gmail_quote">2008/11/24 Martin SCHREIBER <span dir="ltr"><<a href="mailto:schreiberx@gmail.com">schreiberx@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi fangbai!<br>
<br>
the recent version was removed from the website due to a serious bug.<br>
<br>
you can use the "old" version 0.6.2 which you can find here:<br>
<a href="https://alioth.debian.org/projects/libkdtree/" target="_blank">https://alioth.debian.org/projects/libkdtree/</a><br>
but this code has problems with recent compilers.<br>
<br>
if you need the most recent code (i recommend that), download it with git:<br>
git clone git://<a href="http://git.debian.org/git/libkdtree/libkdtree.git" target="_blank">git.debian.org/git/libkdtree/libkdtree.git</a><br>
</blockquote><div><br><br>this is ok<br>but i would suggest doing this after the clone<br><br>cd libkdtree<br>git checkout origin/paulharris/changes_to_discuss<br><br>at the moment both the kdtree trunk and origin/paulharris/bugfixes will return the WRONG distance because of the sqrt issue.<br>
<br>you can see the bug if you do (after a clone)<br>cd libkdtree<br>git checkout origin/paulharris/bugfixes<br>cd ..<br>mkdir build<br>cd build<br>cmake ../libkdtree<br>./examples/test_kdtree<br><br>the same procedure with my changes_to_discuss will show the test passing.<br>
<br><br>Sylvain is currently in the process of building a good solution, and once that is ready we can notify everyone and release something.<br><br>thanks,<br>Paul<br><br></div></div><br>