libusb / openct / pkg-config

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

libusb / openct / pkg-config

Simon Eisenmann
Hi,

i just compiled openct trunk and had some problems to include libusb
support as the configure script relies on libusb using pkg-config. My
libusb installation (FC4) and the sources does not seem to use
pkg-config though. Openct compiles fine when setting the environment
variables manually.

Cheers,
Simon

--

Simon Eisenmann

[ mailto:[hidden email] ]

[ struktur AG | Friedrichstr. 14 | 70174 Stuttgart ]
[ T. +49.711.896656.68 | F.+49.711.89665610 ]
[ http://www.struktur.de | mailto:[hidden email] ]

_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: libusb / openct / pkg-config

Roumen Petrov-2
See GnuPG project.
Example for m4 macro - http://cvs.gnupg.org/cgi-bin/viewcvs.cgi/trunk/m4/libusb.m4


Simon Eisenmann wrote:

> Hi,
>
> i just compiled openct trunk and had some problems to include libusb
> support as the configure script relies on libusb using pkg-config. My
> libusb installation (FC4) and the sources does not seem to use
> pkg-config though. Openct compiles fine when setting the environment
> variables manually.
>
> Cheers,
> Simon
>
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: libusb / openct / pkg-config

Andreas Jellinghaus-2
In reply to this post by Simon Eisenmann
On Wednesday 21 September 2005 11:23, Simon Eisenmann wrote:
> Hi,
>
> i just compiled openct trunk and had some problems to include libusb
> support as the configure script relies on libusb using pkg-config. My
> libusb installation (FC4) and the sources does not seem to use
> pkg-config though. Openct compiles fine when setting the environment
> variables manually.

Hi Simon,

does your libusb include a *.pc file?
if yes: please export PKG_CONFIG_PATH=/path/to/that/dir
if no: please export LIBUSB_CFLAGS="-I/whatever/include"
        export LIBUSB_LIBS="-L/whatever/lib -lusb"

the later will also work if your *.pc file is broken.

please let me know if that works for you.

Andreas
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: libusb / openct / pkg-config

Ville Skyttä-2
On Wed, 2005-09-21 at 22:26 +0200, Andreas Jellinghaus wrote:

> does your libusb include a *.pc file?

FC4 has 0.1.10a, and there's no *.pc file in it.  The *.pc seems to have
been added to upstream CVS after 0.1.10a, but AFAIK there's no official
upstream version that would contain it out yet.

> if yes: please export PKG_CONFIG_PATH=/path/to/that/dir
> if no: please export LIBUSB_CFLAGS="-I/whatever/include"
> export LIBUSB_LIBS="-L/whatever/lib -lusb"

This should work (after installing the libusb-devel package):

  export LIBUSB_CFLAGS="`libusb-config --cflags`"
  export LIBUSB_LIBS="`libusb-config --libs`"

Maybe it would be a good idea to stick with libusb-config in openct at
least for a while.

_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: libusb / openct / pkg-config

Simon Eisenmann
In reply to this post by Andreas Jellinghaus-2
Hi Andreas,

my libusb-devel package (libusb-devel-0.1.10a-1) does not contain a *.pc
file. Exporting the flags manually works fine.

Best regards,
Simon

On Wed, 2005-09-21 at 22:26 +0200, Andreas Jellinghaus wrote:

> On Wednesday 21 September 2005 11:23, Simon Eisenmann wrote:
> > Hi,
> >
> > i just compiled openct trunk and had some problems to include libusb
> > support as the configure script relies on libusb using pkg-config. My
> > libusb installation (FC4) and the sources does not seem to use
> > pkg-config though. Openct compiles fine when setting the environment
> > variables manually.
>
> Hi Simon,
>
> does your libusb include a *.pc file?
> if yes: please export PKG_CONFIG_PATH=/path/to/that/dir
> if no: please export LIBUSB_CFLAGS="-I/whatever/include"
> export LIBUSB_LIBS="-L/whatever/lib -lusb"
>
> the later will also work if your *.pc file is broken.
>
> please let me know if that works for you.
>
> Andreas
--

Simon Eisenmann

[ mailto:[hidden email] ]

[ struktur AG | Friedrichstr. 14 | 70174 Stuttgart ]
[ T. +49.711.896656.68 | F.+49.711.89665610 ]
[ http://www.struktur.de | mailto:[hidden email] ]

_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel