Git Product home page Git Product logo

cjson's Introduction

cjson

This repository contains the edition of the open-source json-c library used by webOS.

How to Build on Linux

Dependencies

Below are the tools and libraries (and their minimum versions) required to build cjson:

  • autoconf 2.61
  • automake 1.9.3
  • gcc 4.3
  • libtool 1.5.24
  • make (any version)

Building

Once you have downloaded the source, execute the following to build it:

$ sh autogen.sh
$ ./configure --disable-static
$ make
$ sudo make install

The header files will be installed under

/usr/local/include/cjson

and the libraries and the pkg-config file under

/usr/local/lib

You can install it elsewhere by supplying the --prefix option when invoking configure. For example:

$ ./configure --disable-static --prefix=$HOME/projects/openwebos
$ make
$ sudo make install

will install the header files under

$HOME/projects/openwebos/include/cjson

and the libraries and the pkg-config file under

$HOME/projects/openwebos/lib

directory.

To undo what make install did, run:

$ sudo make uninstall

Generating documentation

The tools required to generate the documentation are:

  • doxygen 1.6.3
  • graphviz 2.20.2

Once you have run configure, execute the following to generate the documentation:

$ make doc

To view the generated HTML documentation, point your browser to:

doc/html/index.html

Testing

To build the test programs, run:

$ make check

Linking against libcjson

If your system has pkg-config then you can just add this to your makefile:

CFLAGS += $(shell pkg-config --cflags cjson) LDFLAGS += $(shell pkg-config --libs cjson)

Copyright and License Information

See the file COPYING.

cjson's People

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.