You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README 801 B

123456789101112131415161718192021222324252627282930313233343536
  1. Building on Unix with git, gcc and autotools
  2. Home page for json-c:
  3. http://oss.metaparadigm.com/json-c/
  4. Caution: do NOT use sources from svn.metaparadigm.com, they are old.
  5. Github repo for json-c:
  6. https://github.com/json-c/json-c
  7. $ git clone https://github.com/json-c/json-c.git
  8. $ cd json-c
  9. $ sh autogen.sh
  10. Then
  11. $ ./configure
  12. $ make
  13. $ make install
  14. To build and run the test programs run
  15. $ make check
  16. Linking to libjson-c
  17. If your system has pkgconfig then you can just add this to your makefile
  18. CFLAGS += $(shell pkg-config --cflags json-c)
  19. LDFLAGS += $(shell pkg-config --libs json-c)
  20. Without pkgconfig, you would do something like this:
  21. JSON_C_DIR=/path/to/json_c/install
  22. CFLAGS += -I$(JSON_C_DIR)/include/json-c
  23. LDFLAGS+= -L$(JSON_C_DIR)/lib -ljson-c