1, version pcsc: pcsc-lite-1.6.0libusb: libusb-0.1.12ccid: ccid-1.3.12 hardware environment is friends of the day idea6410 Development Board, software environment is linux-2.6.242, compilation: a, libusb :. /configure -- host = arm-linux -- prefix =/usr/ccid/CC =/usr/local/arm/3.4.1
1. Version
PC: pcsc-lite-1.6.0
Libusb: libusb-0.1.12
Ccid: ccid-1.3.12
Hardware environment is the idea6410 Development Board, the software environment is linux-2.6.24
2. Compile:
A. libusb:
. /Configure -- host = arm-linux -- prefix =/usr/ccid/CC =/usr/local/arm/3.4.1/bin/arm-linux-gcc CXX =/usr/local /arm/3.4.1/bin/arm-linux-g ++
Make
Sudo make install
B. pcsc:
. /Configure -- host = arm-linux -- prefix =/usr/ccid/CC =/usr/local/arm/3.4.1/bin/arm-linux-gcc CXX =/usr/local /arm/3.4.1/bin/arm-linux-g ++ -- enable-libusb LIBUSB_LIBS = "-L/usr/ccid/lib-lusb" LIBUSB_CFLAGS = "-I/usr/ ccid/include "-- disable-libhal -- enable-static
Make
Sudo make install
C. ccid:
. /Configure -- host = arm-linux -- prefix =/usr/ccid/CC =/usr/local/arm/3.4.1/bin/arm-linux-gcc CXX =/usr/local /arm/3.4.1/bin/arm-linux-g ++ -- enable-libusb LIBUSB_LIBS = "-L/usr/ccid/lib-lusb" LIBUSB_CFLAGS = "-I/usr/ ccid/include "PCSC_CFLAGS ="-I/usr/ccid/include/PCSC/"PCSC_LIBS =/usr/ccid/lib/libpcsclite. so -- enable-usbdropdir = "/usr/ccid/pcsc/drivers /"
Make
Sudo make install
3. Run
Copy the compiled/usr/ccid to the/usr directory of the target board file system, and set the environment:
Mount-t usbfs none/proc/bus/usb
LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/usr/ccid/lib
Export LD_LIBRARY_PATH
./Usr/ccid/sbin/pcscd &
Download and run.