1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 6d24f2138b
Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56)
3 years ago
..
AUTHORS Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
Android.configure.mk Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
Android.mk Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
COPYING Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
ChangeLog Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
Doxyfile Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
Makefile.am Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
Makefile.am.inc Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
README Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
README-WIN32.html Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
README.html Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
README.md Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
RELEASE_CHECKLIST.txt Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
arraylist.c Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
arraylist.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
autogen.sh Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
bits.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
check.log Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
config.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
config.h.in Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
configure.ac Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
debug.c Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
debug.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
json-c-uninstalled.pc.in Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
json-c.pc.in Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
json.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
json_c_version.c Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
json_c_version.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
json_config.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
json_config.h.in Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
json_inttypes.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
json_object.c Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
json_object.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
json_object_iterator.c Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
json_object_iterator.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
json_object_private.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
json_tokener.c Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
json_tokener.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
json_util.c Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
json_util.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
libjson.c Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
linkhash.c Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
linkhash.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
math_compat.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
printbuf.c Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
printbuf.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
random_seed.c Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
random_seed.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago

README.md

json-c

Building on Unix with git, gcc and autotools

Home page for json-c: https://github.com/json-c/json-c/wiki

Caution: do NOT use sources from svn.metaparadigm.com, they are old.

Prerequisites:

  • gcc, clang, or another C compiler
  • libtool

If you're not using a release tarball, you'll also need:

  • autoconf (autoreconf)
  • automake

Make sure you have a complete libtool install, including libtoolize.

json-c GitHub repo: https://github.com/json-c/json-c

$ git clone https://github.com/json-c/json-c.git
$ cd json-c
$ sh autogen.sh

followed by

$ ./configure
$ make
$ make install

To build and run the test programs:

$ make check

Linking to libjson-c

If your system has pkgconfig, then you can just add this to your makefile:

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

Without pkgconfig, you would do something like this:

JSON_C_DIR=/path/to/json_c/install
CFLAGS += -I$(JSON_C_DIR)/include/json-c
LDFLAGS+= -L$(JSON_C_DIR)/lib -ljson-c