android_mt6572_jiabo/external/json-c
2025-09-05 16:56:03 +08:00
..
Android.configure.mk first commit 2025-09-05 16:56:03 +08:00
Android.mk first commit 2025-09-05 16:56:03 +08:00
arraylist.c first commit 2025-09-05 16:56:03 +08:00
arraylist.h first commit 2025-09-05 16:56:03 +08:00
AUTHORS first commit 2025-09-05 16:56:03 +08:00
autogen.sh first commit 2025-09-05 16:56:03 +08:00
bits.h first commit 2025-09-05 16:56:03 +08:00
ChangeLog first commit 2025-09-05 16:56:03 +08:00
config.h first commit 2025-09-05 16:56:03 +08:00
config.h.in first commit 2025-09-05 16:56:03 +08:00
configure.ac first commit 2025-09-05 16:56:03 +08:00
COPYING first commit 2025-09-05 16:56:03 +08:00
debug.c first commit 2025-09-05 16:56:03 +08:00
debug.h first commit 2025-09-05 16:56:03 +08:00
Doxyfile first commit 2025-09-05 16:56:03 +08:00
json-c-uninstalled.pc.in first commit 2025-09-05 16:56:03 +08:00
json-c.pc.in first commit 2025-09-05 16:56:03 +08:00
json.h first commit 2025-09-05 16:56:03 +08:00
json_c_version.c first commit 2025-09-05 16:56:03 +08:00
json_c_version.h first commit 2025-09-05 16:56:03 +08:00
json_config.h first commit 2025-09-05 16:56:03 +08:00
json_config.h.in first commit 2025-09-05 16:56:03 +08:00
json_inttypes.h first commit 2025-09-05 16:56:03 +08:00
json_object.c first commit 2025-09-05 16:56:03 +08:00
json_object.h first commit 2025-09-05 16:56:03 +08:00
json_object_iterator.c first commit 2025-09-05 16:56:03 +08:00
json_object_iterator.h first commit 2025-09-05 16:56:03 +08:00
json_object_private.h first commit 2025-09-05 16:56:03 +08:00
json_tokener.c first commit 2025-09-05 16:56:03 +08:00
json_tokener.h first commit 2025-09-05 16:56:03 +08:00
json_util.c first commit 2025-09-05 16:56:03 +08:00
json_util.h first commit 2025-09-05 16:56:03 +08:00
libjson.c first commit 2025-09-05 16:56:03 +08:00
linkhash.c first commit 2025-09-05 16:56:03 +08:00
linkhash.h first commit 2025-09-05 16:56:03 +08:00
Makefile.am first commit 2025-09-05 16:56:03 +08:00
Makefile.am.inc first commit 2025-09-05 16:56:03 +08:00
math_compat.h first commit 2025-09-05 16:56:03 +08:00
printbuf.c first commit 2025-09-05 16:56:03 +08:00
printbuf.h first commit 2025-09-05 16:56:03 +08:00
random_seed.c first commit 2025-09-05 16:56:03 +08:00
random_seed.h first commit 2025-09-05 16:56:03 +08:00
README first commit 2025-09-05 16:56:03 +08:00
README-WIN32.html first commit 2025-09-05 16:56:03 +08:00
README.html first commit 2025-09-05 16:56:03 +08:00
README.md first commit 2025-09-05 16:56:03 +08:00
RELEASE_CHECKLIST.txt first commit 2025-09-05 16:56:03 +08:00

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