Skip to content
Yet Another JSON Library - A Portable JSON parsing and serialization library in ANSI C http://lloyd.github.com/yajl
Pull request Compare This branch is 39 commits behind likema:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
debian
example
include/yajl
perf
reformatter
src
test
verify
.gitignore
CMakeLists.txt
COPYING
ChangeLog
README.md
TODO
YAJLDoc.cmake
yajl.spec

README.md

YAJL 2

This is a fork of YAJL 2 (https://github.com/lloyd/yajl). It maily aims at better platform building support.

Building

The following are cmake building options:

  • DISABLE_DOCS: Disable building docs
  • DISABLE_TESTS: Disable building tests and examples
  • DISABLE_TOOLS: Disable building tools
  • DISABLE_STATIC: Disable building static
  • DISABLE_SHARED: Disable building shared
  • DISABLE_SO_VERSION: Disable so version

You can also get them by

cd yajl
cmake -LH

Ubuntu/Debian

sudo apt-get install -y cmake
cd yajl
cmake -G"Unix Makefiles"
make

Fedora/Red Hat/CentOS

sudo yum install -y cmake
cd yajl
cmake -G"Unix Makefiles"
make

AIX

Please get CMake RPM (http://www.perzl.org/aix/index.php?n=Main.Cmake)

cd yajl
cmake -G"Unix Makefiles"
make

Windows

Please get CMake (http://www.cmake.org)

cmake -G"NMake Makefiles"
nmake

or

cmake -G"Visual Studio 10"

Packaging

Ubuntu/Debian

sudo apt-get install -y build-essential cmake doxygen
cd yajl
dpkg-buildpackage -us -uc -rfakeroot

Fedora/Red Hat/CentOS

sudo yum install -y cmake doxygen
cd yajl
git archive --prefix=yajl-2.0.5/ | bzip2 -9 > `rpm -E %{_topdir}`/yajl-2.0.5.tar.bz2
rpmbuild -ba yajl.spec

Additionally, you can build YAJL i686 rpm on x86_64 platform as

CC="gcc -m32" rpmbuild -ba --target=i686 yajl.spec

AIX

Please get CMake RPM (http://www.perzl.org/aix/index.php?n=Main.Cmake)

cd yajl
git archive --prefix=yajl-2.0.5/ | bzip2 -9 > `rpm -E %{_topdir}`/yajl-2.0.5.tar.bz2
rpmbuild -ba yajl.spec

Additionally, you can build YAJL ppc64 rpm as

CC="gcc -maix64" rpmbuild -ba --target=ppc64 yajl.spec
Something went wrong with that request. Please try again.