Ubuntupcbqlibusbccidarm-linux Compilation Method

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.