• source navigation  • identifier search  • freetext search  • 

Sources/json-c/

Back Parent directory
Folder doc/
Folder tests/
File AUTHORS 165 bytes
File Android.configure.mk 1089 bytes
File COPYING 2205 bytes
File ChangeLog 8456 bytes
File Doxyfile 47272 bytes
File INSTALL 15578 bytes
File Makefile.am 2153 bytes
File Makefile.am.inc 111 bytes
File Makefile.in 34467 bytes
File NEWS 0 bytes
File README 949 bytes
File README-WIN32.html 2410 bytes
File README.html 1664 bytes
File RELEASE_CHECKLIST.txt 1499 bytes
File aclocal.m4 316393 bytes
C file arraylist.c 2316 bytes
C file arraylist.h 1089 bytes
File autogen.sh 276 bytes
C file bits.h 693 bytes
File config.guess 44959 bytes
File config.h.in 3922 bytes
File config.h.win32 2746 bytes
File config.sub 34469 bytes
File configure 391647 bytes
File configure.in 1773 bytes
C file debug.c 1651 bytes
C file debug.h 1724 bytes
File depcomp 18615 bytes
File install-sh 6618 bytes
File json-c-uninstalled.pc.in 218 bytes
File json-c.pc.in 223 bytes
File json-c.vcproj 3988 bytes
C file json.h 699 bytes
File json.pc.in 219 bytes
C file json_c_version.c 364 bytes
C file json_c_version.h 680 bytes
File json_config.h.in 91 bytes
C file json_inttypes.h 579 bytes
C file json_object.c 19009 bytes
C file json_object.h 19749 bytes
C file json_object_iterator.c 4822 bytes
C file json_object_iterator.h 8184 bytes
C file json_object_private.h 990 bytes
C file json_tokener.c 23543 bytes
C file json_tokener.h 6718 bytes
C file json_util.c 7140 bytes
C file json_util.h 1034 bytes
C file libjson.c 625 bytes
C file linkhash.c 5332 bytes
C file linkhash.h 6761 bytes
File ltmain.sh 243381 bytes
File missing 11419 bytes
C file printbuf.c 4490 bytes
C file printbuf.h 2194 bytes

  1 Building on Unix with git, gcc and autotools
  2 
  3 Home page for json-c:
  4   https://github.com/json-c/json-c/wiki
  5 
  6   Caution: do NOT use sources from svn.metaparadigm.com, they are old.
  7 
  8 Prerequisites:
  9         gcc (or another C compiler)
 10         libtool
 11 
 12         If you're not using a release tarball, you'll also need:
 13         autoconf (autoreconf)
 14         automake
 15 
 16 Github repo for json-c:
 17   https://github.com/json-c/json-c
 18 
 19     $ git clone https://github.com/json-c/json-c.git
 20     $ cd json-c
 21     $ sh autogen.sh
 22 
 23 Then 
 24 
 25     $ ./configure
 26     $ make
 27     $ make install
 28 
 29 To build and run the test programs run 
 30 
 31     $ make check
 32 
 33 Linking to libjson-c
 34 
 35 If your system has pkgconfig then you can just add this to your makefile
 36 
 37 CFLAGS += $(shell pkg-config --cflags json-c)
 38 LDFLAGS += $(shell pkg-config --libs json-c)
 39 
 40 Without pkgconfig, you would do something like this:
 41 
 42 JSON_C_DIR=/path/to/json_c/install
 43 CFLAGS += -I$(JSON_C_DIR)/include/json-c
 44 LDFLAGS+= -L$(JSON_C_DIR)/lib -ljson-c

This page was automatically generated by LXR 0.3.1.  •  OpenWrt