请教如何解决编译pcsc时候出现c编译器不作用

编译安装或者制作Deb包
回复
zzq12345
帖子: 16
注册时间: 2016-07-04 23:43
系统: win2003 ubuntu16服务器
送出感谢: 0
接收感谢: 0

请教如何解决编译pcsc时候出现c编译器不作用

#1

帖子 zzq12345 » 2017-01-10 17:11

sudo mkdir -p /opt/cross
sudo wget https://downloads.openwrt.org/barrier_b ... .2.tar.bz2

sudo wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz


sudo wget http://downloads.sourceforge.net/projec ... .9.tar.bz2

sudo wget https://alioth.debian.org/frs/download. ... 17.tar.bz2

sudo tar -xf OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2 -C /opt/cross

sudo tar -xf libusb-1.0.9.tar.bz2 -C /opt/cross

sudo tar -xf openssl-1.0.1g.tar.gz -C /opt/cross


sudo tar -xf pcsc-lite-1.8.17.tar.bz2 -C /opt/cross

安装 How to install openssl/libcrypto

export TOOLCHAIN=/opt/cross/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2
export CC= /opt/cross/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/ mipsel-openwrt-linux-gcc
export RANLIB= /opt/cross/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/ mipsel-openwrt-linux-gcc-ranlib
sudo ./Configure --prefix=$TOOLCHAIN/usr/ linux-generic32 shared
sudo make
sudo make install
cd /opt
cd cross
cd libusb-1.0.9
export TOOLCHAIN=/opt/cross/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2
export PATH="$TOOLCHAIN/bin:$PATH"
sudo ./configure --prefix=$TOOLCHAIN/usr --host=mipsel-openwrt-linux-uclibc
sudo make
sudo make install
cd /opt
cd cross
cd pcsc-lite-1.8.17
export TOOLCHAIN=/opt/cross/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2
export PATH="$TOOLCHAIN/bin:$PATH"
export STAGING_DIR=/opt/cross/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir
export CC=$TOOLCHAIN/bin/mipsel-openwrt-linux-gcc
sudo ./configure CC=$TOOLCHAIN/bin/mipsel-openwrt-linux-gcc-4.8.3 --disable-libudev --host=mipsel-openwrt-linux-uclibc --prefix=$TOOLCHAIN/usr --exec-prefix=$TOOLCHAIN/usr --disable-shared LIBUSB_LIBS="-L$TOOLCHAIN/usr/lib -lusb-1.0" LIBUSB_CFLAGS="-I$TOOLCHAIN/usr/include/libusb-1.0"
sudo ./configure CC=$TOOLCHAIN/bin/mipsel-unknown-linux-gnu-gcc-4.3.8 --disable-libudev --host= mipsel-openwrt-linux-uclibc --prefix=$TOOLCHAIN/usr --exec-prefix=$TOOLCHAIN/usr --disable-shared LIBUSB_LIBS="-L$TOOLCHAIN/usr/lib -lusb-1.0" LIBUSB_CFLAGS="-I$TOOLCHAIN/usr/include/libusb-1.0"

在编译安装 How to install openssl/libcrypto ibusb-1.0.9都没有问题,在编译PCSC 过程中sudo ./configure CC=$TOOLCHAIN/bin/mipsel-openwrt-linux-gcc-4.8.3 --disable-libudev --host=mipsel-openwrt-linux-uclibc --prefix=$TOOLCHAIN/usr --exec-prefix=$TOOLCHAIN/usr --disable-shared LIBUSB_LIBS="-L$TOOLCHAIN/usr/lib -lusb-1.0" LIBUSB_CFLAGS="-I$TOOLCHAIN/usr/include/libusb-1.0"
sudo ./configure CC=$TOOLCHAIN/bin/mipsel-unknown-linux-gnu-gcc-4.3.8 --disable-libudev --host= mipsel-openwrt-linux-uclibc --prefix=$TOOLCHAIN/usr --exec-prefix=$TOOLCHAIN/usr --disable-shared LIBUSB_LIBS="-L$TOOLCHAIN/usr/lib -lusb-1.0" LIBUSB_CFLAGS="-I$TOOLCHAIN/usr/include/libusb-1.0"运行时候出现C complier not work ,
回复

回到 “编译或打包”