linux交叉编译cJSON

58 阅读1分钟

下载cJSON

git clone github.com/DaveGamble/… cd cJSON

安装

make CC= arm-buildroot-linux-gnueabihf-gcc

make install DESTDIR=/home/book/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot

查看编译后的版本

cd ~/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/arm-buildroot-linux-gnueabihf/sysroot/usr/local/lib

readelf -h libcjson.so

image.png

以上已经编译成功