libftdi下载地址
Libftdi 依赖 libusb libconfuse gettext-0.19
首先安装依赖文件
sudo apt-get install libboost-all-dev
报错 configure: error: udev support requested but libudev header not installed 报错 error: Libtool library used but ‘LIBTOOL’ is undefined libusb/Makefile.am:5: The usual way to define ‘LIBTOOL’ is to add ‘LT_INIT’ libusb/Makefile.am:5: to ‘configure.ac’ and run ‘aclocal’ and ‘autoconf’ again. libusb/Makefile.am:5: If ‘LT_INIT’ is in ‘configure.ac’, make sure libusb/Makefile.am:5: its definition is in acloc
rm: invalid option – ‘l’
Try ‘rm –help’ for more information.
mv: invalid option – ‘l’
Try ‘mv –help’ for more information.
rm: invalid option – ‘l’
Try ‘rm ./-libtoolT’ to remove the file ‘-libtoolT’.
Try ‘rm –help’ for more information.
mv: invalid option – ‘l’
Try ‘mv –help’ for more information.
rm: invalid option – ‘l’
Try ‘rm ./-libtoolT’ to remove the file ‘-libtoolT’.
Try ‘rm –help’ for more information.
mv: invalid option – ‘l’
Try ‘mv –help’ for more information.
rm: invalid option – ‘l’
Try ‘rm ./-libtoolT’ to remove the file ‘-libtoolT’.
Try ‘rm –help’ for more information.mv: invalid option – ‘l’
Try ‘mv –help’ for more information.
rm: invalid option – ‘l’
Try ‘rm ./-libtoolT’ to remove the file ‘-libtoolT’.
Try ‘rm –help’ for more information.
mv: invalid option – ‘l’
Try ‘mv –help’ for more information.
rm: invalid option – ‘l’
Try ‘rm ./-libtoolT’ to remove the file ‘-libtoolT’.
Try ‘rm –help’ for more information.
mv: invalid option – ‘l’
Try ‘mv –help’ for more information.
rm: invalid option – ‘l’
Try ‘rm ./-libtoolT’ to remove the file ‘-libtoolT’.
Try ‘rm –help’ for more information.
mv: invalid option – ‘l’
Try ‘mv –help’ for more information.
rm: invalid option – ‘l’
Try ‘rm ./-libtoolT’ to remove the file ‘-libtoolT’.
Try ‘rm –help’ for more information.
mv: invalid option – ‘l’
Try ‘mv –help’ for more information.
rm: invalid option – ‘l’
Try ‘rm ./-libtoolT’ to remove the file ‘-libtoolT’.
Try ‘rm –help’ for more information.
mv: invalid option – ‘l’
Try ‘mv –help’ for more information.
rm: invalid option – ‘l’
Try ‘rm ./-libtoolT’ to remove the file ‘-libtoolT’.
Try ‘rm –help’ for more information.
mv: invalid option – ‘l’
Try ‘mv –help’ for more information.
rm: invalid option – ‘l’
Try ‘rm ./-libtoolT’ to remove the file ‘-libtoolT’.
Try ‘rm –help’ for more information.
mv: invalid option – ‘l’
Try ‘mv –help’ for more information.
rm: invalid option – ‘l’
Try ‘rm ./-libtoolT’ to remove the file ‘-libtoolT’.
Try ‘rm –help’ for more information.
mv: invalid option – ‘l’
Try ‘mv –help’ for more information.
rm: invalid option – ‘l’
Try ‘rm ./-libtoolT’ to remove the file ‘-libtoolT’.
Try ‘rm –help’ for more information.
mv: invalid option – ‘l’
Try ‘mv –help’ for more information.
rm: invalid option – ‘l’
Try ‘rm ./-libtoolT’ to remove the file ‘-libtoolT’.
Try ‘rm –help’ for more information.config.status: WARNING: Unable to substitute extended shell functions in -libtool
mv: invalid option – ‘l’
Try ‘mv –help’ for more information.
rm: invalid option – ‘l’
Try ‘rm –help’ for more information.
chmod: invalid option – ‘l’
Try ‘chmod –help’ for more information.
./configure –build=i686-linux –host=arm-linux-gnueabihf –target=arm-linux-gnueabihf
–prefix=/home/picohood/projects/linux-devkit/sysroots/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi CC=arm-linux-gnueabihf-gcc
CXX=arm-linux-gnueabihf-g++ –disable-udev
–build=i686-linux 表示该软件在 x86 平台被编译
–host=arm-linux 表示该软件编译完成后在 arm 平台上运行
–prefix 后面为软件安装目录。
CC=,CXX 等于指定了交叉编译使用的 C, C++交叉编译器
./configure –build=i686-linux –host=arm-linux-gnueabihf –target=arm-linux-gnueabihf
–prefix=/home/picohood/projects/linux-devkit/sysroots/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi CC=arm-linux-gnueabihf-gcc
CXX=arm-linux-gnueabihf-g++ –disable-udev
报错/home/picohood/gitrepo/tisdk/tools/libconfuse/support/missing: line 81: flex: command not foundWARNING: ‘flex’ is missing on your system.
You should only need it if you modified a ‘.l’ file.
You may want to install the Fast Lexical Analyzer package:
http://flex.sourceforge.net/
–build=i686-linux 表示该软件在 x86 平台被编译
–host=arm-linux 表示该软件编译完成后在 arm 平台上运行
–prefix 后面为软件安装目录。
CC=,CXX 等于指定了交叉编译使用的 C, C++交叉编译器
./configure –build=i686-linux –host=arm-linux-gnueabihf –target=arm-linux-gnueabihf
–prefix=/home/picohood/projects/linux-devkit/sysroots/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi CC=arm-linux-gnueabihf-gcc
CXX=arm-linux-gnueabihf-g++ –disable-udev
–build=i686-linux 表示该软件在 x86 平台被编译
–host=arm-linux 表示该软件编译完成后在 arm 平台上运行
–prefix 后面为软件安装目录。
CC=,CXX 等于指定了交叉编译使用的 C, C++交叉编译器
下面的配置经过解决编译各种问题的最终配置, 为了节省时间可以直接写入该
配置
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
SET(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++)
SET(LIBUSB_LIBRARIES
/home/picohood/projects/linux-devkit/sysroots/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/lib/libusb-1.0.so.0
/home/picohood/projects/linux-devkit/sysroots/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/usr/lib/librt.so)
SET(LIBUSB_INCLUDE_DIR
/home/picohood/projects/linux-devkit/sysroots/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/include/libusb-1.0)
SET(CMAKE_C_FLAGS -g -O2 -fPIC)
SET(CMAKE_CXX_FLAGS -g -O2 -fPIC)
SET(CMAKE_INSTALL_PREFIX
/home/picohood/projects/linux-devkit/sysroots/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi)
SET(CONFUSE_LIBRARY
/home/picohood/projects/linux-devkit/sysroots/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/lib/libconfuse.so.2)
SET(CONFUSE_INCLUDE_DIR/home/picohood/projects/linux-devkit/sysroots/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/include/)
SET(LIBINTL_INCLUDE_DIR
/home/picohood/projects/linux-devkit/sysroots/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/lib)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)