3/20/2014

Build yajl in windows

I've used yajl, which is very attractive library for json in C.
Although, in package including a doc, 'BUILDING.win32', when I followed the guide, I've got some error.

First of all, I have no experience about CMake, and 'CMakeLists.txt' for window build, seems to have a little mistake.

For solving, let's say the path of 'yajl' package is 'D:\yajl_2_0_4_test'.
(My environment is CMake 2.6 and VS2010 for visual studio command prompt.)
In 'D:\yajl_2_0_4_test\CMakeLists.txt', below code have to append on line 14,
cmake_minimum_required(VERSION 2.6)

SET (YAJL_MAJOR 2)
SET (YAJL_MINOR 0)
SET (YAJL_MICRO 4)
By adding above code, I could acquire such a nice build log!








No comments:

Post a Comment