Yes, -lflann_cpp-gd should be deleted from flann.pc.. This is fixed in trunk (<a href="https://github.com/mariusmuja/flann/blob/master/cmake/flann.pc.in">https://github.com/mariusmuja/flann/blob/master/cmake/flann.pc.in</a>) and the fix will be included in the next FLANN version.<div>

<br></div><div>Marius<br><br><div class="gmail_quote">On Wed, Oct 17, 2012 at 12:02 AM, Leopold Palomo-Avellaneda <span dir="ltr"><<a href="mailto:leo@alaxarxa.net" target="_blank">leo@alaxarxa.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have done a backported package of libflann from Debian Wheezy to Squeeze<br>
[1]. When I used it, I realized that the debian package and upstream install a<br>
file flann.pc with the specific flags to use libflann using pkg-conffig.<br>
<br>
But, this file, IMHO is not correct and I would like to ask you your opinion.<br>
With this file, if you would like to use libflann pkg-config tells you that<br>
must link against flann_cpp, that's ok but also against flann_cpp-gd (the<br>
debug version of the lib) and this is not correct, because, for example in the<br>
debian package the debug version is not shipped, or could be shipped in<br>
another package (whatever distro use a similar convention).<br>
<br>
So my opinion is to ship another flann-gd.pc with the debug version or delete<br>
the -lflann_cpp-gd in the flann.pc.<br>
<br>
What do you think?<br>
<br>
regards,<br>
<br>
<br>
Leo<br>
<br>
<br>
[1] <a href="http://sir.upc.es/debian-robotics/pool/main/f/flann/" target="_blank">http://sir.upc.es/debian-robotics/pool/main/f/flann/</a><br>
------------------------------------------<br>
<br>
--- flann-1.7.1.orig/cmake/<a href="http://flann.pc.in" target="_blank">flann.pc.in</a><br>
+++ flann-1.7.1/cmake/<a href="http://flann.pc.in" target="_blank">flann.pc.in</a><br>
@@ -8,6 +8,6 @@ Name: @PROJECT_NAME@<br>
 Description: @PKG_DESC@<br>
 Version: @FLANN_VERSION@<br>
 Requires: @PKG_EXTERNAL_DEPS@<br>
-Libs: -L${libdir} -lflann_cpp -lflann_cpp-gd<br>
+Libs: -L${libdir} -lflann_cpp<br>
 Cflags: -I${includedir}<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
--<br>
Linux User 152692<br>
Catalonia<br>
<br>
</font></span></blockquote></div><br></div>