libann-dev is missing ANN.pc for pkgconfig
Bug #1803243 reported by
John Ellson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pkg-website |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I'm trying to use libann from graphviz.
- the location of the lib moved between 18.04 and 18.10
- no ANN.pc file is provided for either.
- is there a later release available? The one on Fedora26 and later works for graphviz.
To post a comment you must log in.
Following up on this.
The library fails to link properly.
Grabbing ann_1.1. 1/sample/ ann_sample. cpp from upstream ( www.cs. umd.edu/ ~mount/ ANN/ ) and compiling on ubuntu_18.04 against
http://
the .deb installed libann produces:
$ g++ ann_sample.cpp -o ann_sample -IANN -Lann cpp:(.text+ 0x14c): undefined reference to `annAllocPt(int, cpp:(.text+ 0x165): undefined reference to `annAllocPts(int, int)' cpp:(.text+ 0x284): undefined reference to tree::ANNkd_ tree(double* *, int, int, int, ANNsplitRule)' cpp:(.text+ 0x461): undefined reference to `annClose()'
/tmp/ccBhJBQw.o: In function `main':
ann_sample.
double)'
ann_sample.
ann_sample.
`ANNkd_
ann_sample.
collect2: error: ld returned 1 exit status
On ubuntu 18.10 I get essentially the same result:
$ g++ ann_sample.cpp -o ann_sample -IANN -Lann cpp:(.text+ 0x13c): undefined reference to `annAllocPt(int, cpp:(.text+ 0x155): undefined reference to cpp:(.text+ 0x274): undefined reference to tree::ANNkd_ tree(double* *, int, int, int, ANNsplitRule)' cpp:(.text+ 0x435): undefined reference to
/usr/bin/ld: /tmp/ccE53eQm.o: in function `main':
ann_sample.
double)'
/usr/bin/ld: ann_sample.
`annAllocPts(int, int)'
/usr/bin/ld: ann_sample.
`ANNkd_
/usr/bin/ld: ann_sample.
`annClose()'
collect2: error: ld returned 1 exit status
On Tue, Nov 13, 2018 at 9:15 PM John Ellson <email address hidden>
wrote:
> Public bug reported: /bugs.launchpad .net/bugs/ 1803243 /bugs.launchpad .net/pkg- website/ +bug/1803243/ +subscriptions
>
> I'm trying to use libann from graphviz.
>
> - the location of the lib moved between 18.04 and 18.10
> - no ANN.pc file is provided for either.
> - is there a later release available? The one on Fedora26 and later works
> for graphviz.
>
> ** Affects: pkg-website
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> libann-dev is missing ANN.pc for pkgconfig
>
> To manage notifications about this bug go to:
> https:/
>