YAJL has been successfully built using Visual Studio 8. CMake, a build file generator, is used to build the software. CMake supports several different build environments, so you may either build YAJL using the IDE via the following steps:
-
acquire cmake (www.cmake.org)
-
mkdir build
-
cd build
-
cmake ..
-
devenv YetAnotherJSONParser.sln /project ALL_BUILD /build Release
-
build output is left in build/yajl-X.Y.Z
Or you can build from the command line using nmake:
-
Click Start > Programs > Microsoft Visual Studio > Visual Studio
Tools > Visual Studio Command Prompt – for your version of Visual Studio, which will open a command prompt. You may verify that the compiler is in your path by typing “cl /?” at the prompt.
-
cd C:pathtoyajlsource\
-
mkdir build
-
cd build
-
cmake -G“NMake Makefiles” -DCMAKE_BUILD_TYPE=Release ..
-
nmake
-
nmake install
Earlier versions of visual studio and other build generators haven't been thoroughly tested, but should work without any major issues.