我的机器交叉编译工具链大同小异,参考一下格式就O了。

export PATH=/opt/CodeSourcery/Sourcery_G++_Lite/bin:$PATH
export LIBRARY_PATH=/opt/dvsdk/linux-devkit/arm-none-linux-gnueabi/usr/lib
export C_INCLUDE_PATH=/opt/dvsdk/linux-devkit/arm-none-linux-gnueabi/usr/include
export CPLUS_INCLUDE_PATH=/opt/dvsdk/linux-devkit/arm-none-linux-gnueabi/usr/include
CC=arm-none-linux-gnueabi-gcc CFLAGS=" -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp" ./configure --host=arm-none-linux-gnueabi --build=arm-linux
make



Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐