Jsoncpp linux platform compilation and arm porting, jsoncpparm

Source: Internet
Author: User

Jsoncpp linux platform compilation and arm porting, jsoncpparm
Jsoncpp

Soncpp is an implementation of a JSON (http://json.org) reader and writer in C ++. JSON (JavaScript Object Notation) is a lightweight data-interchange format. it is easy for humans to read and write. it is easy for machines to parse and generate.

Download

Http://sourceforge.net/projects/jsoncpp/
Or here: http://download.csdn.net/detail/chinaeran/8631141

Compiling on Linux

ExtractRun the following command:

# First install scons $ sudo apt-get install scons $ scons platform = linux-gcc

Target path:
Dynamic library:./libs/linux-gcc-4.8/libjson_linux-gcc-4.8_libmt.so
Static Library:./libs/linux-gcc-4.8/libjson_linux-gcc-4.8_libmt.a

Arm platform Compilation

Note:Platform does not contain the arm platform, similar to linux-gcc. Therefore, the source code is extracted and compiled independently.
ExtractRun the following command:

$ Mkdir arm_jsoncpp $ cp include/arm_jsoncpp/-r$ cp src/lib_json/* arm_jsoncpp/$ cd arm_jsoncpp/# compile the static library $ arm-linux-gnueabihf-g ++-c *. cpp-I. /include-fPIC $ ar cr libjsoncpp. a *. o # compile the dynamic library $ arm-linux-gnueabihf-g ++-shared-fPIC *. cpp-I. /include-o libjsoncpp. so

Target path:
Dynamic library:./arm_jsoncpp/libjsoncpp. so
Static Library:./arm_jsoncpp/libjsoncpp.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.