Server IP : 85.214.239.14 / Your IP : 3.144.250.160 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/cwd/usr/share/doc/libjson-c3/ |
Upload File : |
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 (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 Github repo for json-c: https://github.com/json-c/json-c $ git clone https://github.com/json-c/json-c.git $ cd json-c $ sh autogen.sh Then $ ./configure $ make $ make install To build and run the test programs run $ 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