当前位置: 首页> 财经> 金融 > rapidjson的移植

rapidjson的移植

时间:2025/7/10 20:09:42来源:https://blog.csdn.net/zhouzhenhe2008/article/details/141476096 浏览次数:0次

因为rapidjson是只有头文件 使用模板来实现json 所以只需要添加头文件就行 make使用-I/路径指定头文件 解压后编写makefile

下载地址

https://github.com/Tencent/rapidjson

https://github.com/Tencent/rapidjson/releases/tag/v1.1.0
下载了版本
rapidjson-1.1.0.zip


使用方法  解压

RapidJSON is a header-only C++ library. Just copy the include/rapidjson folder to system or project's include path.(仅仅拷贝头文件就可以用,不要过多的编译

执行命令

unzip rapidjson-1.1.0.zip

root@ubuntu:~/share/gateway/app/openlib/rapidjson-1.1.0# cp include/rapidjson /root/share/nuvoton_cross/host/usr/arm-nuvoton-linux-gnueabi/sysroot/usr/include/ -arf 
root@ubuntu:~/share/gateway/app/openlib/rapidjson-1.1.0# cd /root/share/nuvoton_cross/host/usr/arm-nuvoton-linux-gnueabi/sysroot/usr/include
root@ubuntu:~/share/nuvoton_cross/host/usr/arm-nuvoton-linux-gnueabi/sysroot/usr/include# 
root@ubuntu:~/share/nuvoton_cross/host/usr/arm-nuvoton-linux-gnueabi/sysroot/usr/include# 
root@ubuntu:~/share/nuvoton_cross/host/usr/arm-nuvoton-linux-gnueabi/sysroot/usr/include# tree rapidjson/
rapidjson/
├── allocators.h
├── document.h
├── encodedstream.h
├── encodings.h
├── error
│   ├── en.h
│   └── error.h
├── filereadstream.h
├── filewritestream.h
├── fwd.h
├── internal
│   ├── biginteger.h
│   ├── diyfp.h
│   ├── dtoa.h
│   ├── ieee754.h
│   ├── itoa.h
│   ├── meta.h
│   ├── pow10.h
│   ├── regex.h
│   ├── stack.h
│   ├── strfunc.h
│   ├── strtod.h
│   └── swap.h
├── istreamwrapper.h
├── memorybuffer.h
├── memorystream.h
├── msinttypes
│   ├── inttypes.h
│   └── stdint.h
├── ostreamwrapper.h
├── pointer.h
├── prettywriter.h
├── rapidjson.h
├── reader.h
├── schema.h
├── stream.h
├── stringbuffer.h
└── writer.h

3 directories, 35 files

关键字:rapidjson的移植

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: