pkg-config of libflann

Leopold Palomo-Avellaneda leo at alaxarxa.net
Wed Oct 17 07:07:16 UTC 2012


Hi,

I have done a backported package of libflann from Debian Wheezy to Squeeze 
[1]. When I used it, I realized that the debian package and upstream install a 
file flann.pc with the specific flags to use libflann using pkg-conffig.

But, this file, IMHO is not correct and I would like to ask you your opinion. 
With this file, if you would like to use libflann pkg-config tells you that 
must link against flann_cpp, that's ok but also against flann_cpp-gd (the 
debug version of the lib) and this is not correct, because, for example in the 
debian package the debug version is not shipped, or could be shipped in 
another package (whatever distro use a similar convention).

So my opinion is to ship another flann-gd.pc with the debug version or delete 
the -lflann_cpp-gd in the flann.pc.

What do you think?

regards,


Leo


[1] http://sir.upc.es/debian-robotics/pool/main/f/flann/
------------------------------------------

--- flann-1.7.1.orig/cmake/flann.pc.in
+++ flann-1.7.1/cmake/flann.pc.in
@@ -8,6 +8,6 @@ Name: @PROJECT_NAME@
 Description: @PKG_DESC@
 Version: @FLANN_VERSION@
 Requires: @PKG_EXTERNAL_DEPS@
-Libs: -L${libdir} -lflann_cpp -lflann_cpp-gd
+Libs: -L${libdir} -lflann_cpp
 Cflags: -I${includedir}



-- 
--
Linux User 152692
Catalonia



More information about the debian-science-maintainers mailing list