--host
argument.--host
and --build
option to the configure script. The --host
option allow to select the architecture for which the libraries and programs are built. The --build
option allows to choose the architecture on which the compilation tools are run, i.e. the system running the configure script.mkdir build && cd build
../configure --target=arm-linux-gnueabihf --host=arm-linux-gnueabihf --build=x86_64-unknown-linux-gnu CFLAGS="-march=armv7-a -mfpu=vfp3" CC=/home/knd/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin/arm-linux-gnueabihf-gcc AR=/home/knd/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin/arm-linux-gnueabihf-ar LD=/home/knd/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin/arm-linux-gnueabihf-ld
../configure --help 可以查看帮助
--build 和 CC AR LD 选择一个即可; 由于系统默认安装了cross tool arm-xxxx, 所以这里使用了CC AR LD,避免修改PATH顺序的麻烦
../configure --target=arm-linux-gnueabihf --host=arm-linux-gnueabihf CFLAGS="-march=armv7-a -mfpu=vfp3" CC=/home/knd/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin/arm-linux-gnueabihf-gcc AR=/home/knd/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin/arm-linux-gnueabihf-ar LD=/home/knd/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin/arm-linux-gnueabihf-ld
make
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。