[oe] ccid recipe configure problem

Ergeerts Glenn glenn.ergeerts at artesis.be
Wed Feb 24 14:39:44 UTC 2010


Hi,

I'm trying to build the ccid recipe (from here http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/ccid?id=709c4d66e0b107ca606941b988bad717c0b45d9b).
This gives me the following problem during the configure step:

| NOTE: Running /home/glenn/projects/OpenEmbedded/Branch/v1.0.8.0-1oksolutions/build/tmp/work/armv5te-angstrom-linux/ccid-1.3.8-r0/ccid-1.3.8/configure                     --build=i686-linux                 --host=arm-angstrom-linux               --target=arm-angstrom-linux                     --prefix=/usr                   --exec_prefix=/usr              --bindir=/usr/bin                  --sbindir=/usr/sbin                     --libexecdir=/usr/libexec               --datadir=/usr/share                    --sysconfdir=/etc         --sharedstatedir=/usr/com                --localstatedir=/var                    --libdir=/usr/lib               --includedir=/usr/include               --oldincludedir=/usr/include               --infodir=/usr/share/info               --mandir=/usr/share/man                     --enable-udev               ...

<snip>

| checking ifdhandler.h usability... no
| checking ifdhandler.h presence... no
| checking for ifdhandler.h... no
| configure: error: ifdhandler.h not found, install pcsc-lite 1.3.3 or later, or use ./configure PCSC_CFLAGS=...
| FATAL: oe_runconf failed

ifdhandler.h should be provided by pcsc-lite. The bitbake build for pcsc-lite worked and the file exists at the following places:

$ find -name ifdhandler.h
./build/tmp/work/armv5te-angstrom-linux/ccid-1.3.8-r0/ccid-1.3.8/MacOSX/ifdhandler.h
./build/tmp/work/armv5te-angstrom-linux/pcsc-lite-1.5.2-r0/install/pcsc-lite-dev/usr/include/PCSC/ifdhandler.h
./build/tmp/work/armv5te-angstrom-linux/pcsc-lite-1.5.2-r0/pcsc-lite-1.5.2/src/PCSC/ifdhandler.h
./build/tmp/work/armv5te-angstrom-linux/pcsc-lite-1.5.2-r0/image/usr/include/PCSC/ifdhandler.h

The question is: why does the configure of ccid not find this file?

I tried to fix this by adding PCSC_CFLAGS to EXTRA_OECONF, which fixed this error but this got me to the next error:

| checking for SCardEstablishContext... configure: error: 
| SCardEstablishContext() not found, install pcsc-lite 1.2.9-beta9 or 
| later,or use PCSC_LIBS=...  ./configure
| FATAL: oe_runconf failed

To fix this I also added PCSC_LIBS to EXTRA_OECONF like this:

EXTRA_OECONF = "--enable-udev \
                --enable-usbdropdir=${D}/usr/lib/pcsc/drivers/ \
                PCSC_CFLAGS=-I${S}/../../pcsc-lite-1.5.2-r0/image/usr/include/PCSC/ \
                PCSC_LIBS=\"-L${S}/../../pcsc-lite-1.5.2-r0/image/usr/lib -lpcsclite\" \
                "
(probably this is not the best way but I was trying to be pragmatic..) Running this gives the following error:

| NOTE: Running /home/glenn/projects/OpenEmbedded/Branch/v1.0.8.0-1oksolutions/build/tmp/work/armv5te-angstrom-linux/ccid-1.3.8-r0/ccid-1.3.8/configure                     --build=i686-linux                 --host=arm-angstrom-linux               --target=arm-angstrom-linux                     --prefix=/usr                   --exec_prefix=/usr              --bindir=/usr/bin                  --sbindir=/usr/sbin                     --libexecdir=/usr/libexec               --datadir=/usr/share                    --sysconfdir=/etc         --sharedstatedir=/usr/com                --localstatedir=/var                    --libdir=/usr/lib               --includedir=/usr/include               --oldincludedir=/usr/include               --infodir=/usr/share/info               --mandir=/usr/share/man                     --enable-udev           --enable-usbdropdir=/home/glenn/projects/OpenEmbedded/Branch/v1.0.8.0-1oksolutions/build/tmp/work/armv5te-angstrom-linux/ccid-1.3.8-r0/image/usr/lib/pcsc/drivers/                 PCSC_CFLAGS=-I/home/glenn/projects/OpenEmbedded/Branch/v1.0.8.0-1oksolutions/build/tmp/work/armv5te-angstrom-linux/ccid-1.3.8-r0/ccid-1.3.8/../../pcsc-lite-1.5.2-r0/image/usr/include/PCSC/               PCSC_LIBS="-L/home/glenn/projects/OpenEmbedded/Branch/v1.0.8.0-1oksolutions/build/tmp/work/armv5te-angstrom-linux/ccid-1.3.8-r0/ccid-1.3.8/../../pcsc-lite-1.5.2-r0/image/usr/lib -lpcsclite"                    ...
| configure: error: unrecognized option: -lpcsclite"
| Try `/home/glenn/projects/OpenEmbedded/Branch/v1.0.8.0-1oksolutions/build/tmp/work/armv5te-angstrom-linux/ccid-1.3.8-r0/ccid-1.3.8/configure --help' for more information.
| FATAL: oe_runconf failed

For some reason configure is confused with the quotes. I tried different combinations (not escaping them, using single quotes,..) but I can't get it working.
So as an openembedded newbie I am stuck now.. Does anyone know how to fix this issue?

Thanks,
Glenn





More information about the Openembedded-devel mailing list