wireless_tools 交叉编译:
- 1.cd wireless_tools.29
- 2.mkdir __install
- 3.Git df Makefile
- diff --Git a/Makefile b/Makefile
- index 2e43159..fcb0c30 100644
- --- a/Makefile
- +++ b/Makefile
- @@ -4,14 +4,15 @@
- ## Installation directory. By default, go in /usr/local.
- ## Distributions should probably use /, but they probably know better...
- +PREFIX = /home/trl/Documents/wifi_ap/wireless_tools.29/__install
- ifndef PREFIX
- PREFIX = /usr/local
- endif
- ## Compiler to use (modify this for cross compile).
- -CC = gcc
- +CC = ARM-Linux-gnueabihf-gcc
- ## Other tools you need to modify for cross compile (static lib only).
- -AR = ar
- +AR = ARM-Linux-gnueabihf-ar
- RANLIB = ranlib
- ## Uncomment this to build tools using static version of the library.
- 4.make
- 5.make install
来源: http://www.bubuko.com/infodetail-3095580.html