wireless_tools交叉编译
Posted live-program
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了wireless_tools交叉编译相关的知识,希望对你有一定的参考价值。
wireless_tools交叉编译:
1.cd wireless_tools.29
2.mkdir __install
3.git df Makefile
1 diff --git a/Makefile b/Makefile 2 index 2e43159..fcb0c30 100644 3 --- a/Makefile 4 +++ b/Makefile 5 @@ -4,14 +4,15 @@ 6 7 ## Installation directory. By default, go in /usr/local. 8 ## Distributions should probably use /, but they probably know better... 9 +PREFIX = /home/trl/Documents/wifi_ap/wireless_tools.29/__install 10 ifndef PREFIX 11 PREFIX = /usr/local 12 endif 13 14 ## Compiler to use (modify this for cross compile). 15 -CC = gcc 16 +CC = arm-linux-gnueabihf-gcc 17 ## Other tools you need to modify for cross compile (static lib only). 18 -AR = ar 19 +AR = arm-linux-gnueabihf-ar 20 RANLIB = ranlib 21 22 ## Uncomment this to build tools using static version of the library.
4.make
5.make install
以上是关于wireless_tools交叉编译的主要内容,如果未能解决你的问题,请参考以下文章