pkg-config of libflann

Marius Muja mariusm at cs.ubc.ca
Wed Oct 17 07:12:07 UTC 2012


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

Marius

On Wed, Oct 17, 2012 at 12:02 AM, Leopold Palomo-Avellaneda <
leo at alaxarxa.net> wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20121017/31a36c30/attachment.html>


More information about the debian-science-maintainers mailing list