标签:toolchain header package 开发板 sudo system devkit ant ror
报错 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++交叉编译器
1.1.sudo tar zxvf gettext-0.19.tar.gz
1.2sudo chown picohood:picohood gettext-0.19 -R
./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++交叉编译器
# the name of the target operating system
SET(CMAKE_SYSTEM_NAME Linux)
# which compilers to use for C and C++
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)
# adjust the default behaviour of the FIND_XXX() commands:
# search headers and libraries in the target environment, search
# programs in the host environment
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
cmake -DCMAKE_TOOLCHAIN_FILE=/home/picohood/gitrepo/tisdk/tools/libftdi/cmake/Toolchain-am3358.cmake ../
Lsusb -v -d 0x0403:6011 Lsusb -t ftdi_eeprom --device d:2/4 --erase-eeprom ee_prom.conf ftdi_eeprom --device d:2/4 --flash-eeprom ee_prom.conf ftdi_eeprom --device d:1/4 --erase-eeprom ee_prom.conf ftdi_eeprom --device d:1/4 --flash-eeprom ee_prom.conf
交叉编译 FT4232 eeprom 开源工具 libftdi 记录
标签:toolchain header package 开发板 sudo system devkit ant ror
原文地址:https://www.cnblogs.com/liushuhe1990/p/9608898.html