[fprint] Linking shared libraries
Kunal Gangakhedkar
kunal.gangakhedkar at gmail.com
Wed Sep 8 10:23:00 BST 2010
On Wednesday 08 Sep 2010 2:28:56 pm Bastien Nocera wrote:
> On Wed, 2010-09-08 at 10:54 +0800, Guus Ellenkamp wrote:
> > Hi,
> >
> > Thanks for your reply.
> >
> > I am trying to use the version that comes with my package. I'm using Ubuntu and just installed 'libfprint-dev'. Tried the IDE and now tried just using a makefile.
> >
> > Errors I get are 'undefined reference to fp_init(), fp_discover_devs() and fp_dscv_free(fp_dscv_dev**). The code compiles ok.
> >
> > My makefile is:
> >
> > all: test
> >
> > test: test.o devicehandling.o
> > g++ test.o devicehandling.o -lfprint -o test
>
> use:
> `pkg-config --libs libfprint`
> not:
> -lfprint
It essentially returns the same thing.
Even though libfprint.pc has "-L{libdir}" in the Libs: statement,
somehow, it's not passing it in the output. Don't know why :(
On my ubuntu box, this is what I get:
kunal at plutonium:~$ pkg-config --libs libfprint
-lfprint
kunal at plutonium:~$
BTW, the version packaged for ubuntu seems to be old.
The version string is 0.0.6-2ubuntu2.
I don't know how old that is - I've started following fprint project recently.
Kunal
More information about the fprint
mailing list