Could someone please let me know the exact steps in getting jsoncpp library to work on visual studio 2008. I am pretty new to visual studio, so don't quite understand how to go about this and I want to use jsoncpp for an MFC application. I read the readme of jsoncpp, and installed python on my machine, but I am still quite unclear about the remaining steps. Any help would be greatly appreciated. Thanks.
2 Answers
I recently added CMake build for jsoncpp -- will support various flavor of visual studio.
- Install CMake
- Download sources with my update: https://github.com/okigan/jsoncpp
- And run bootstrap.bat file
Both Debug/Release will be built and stored in ./stage directory.
2 Comments
The jsoncpp README file, unfortunately, does not list Visual Studio 2008 as a supported build.
However, jsoncpp on vc90? has an answer which points out that there is no need to use SCONs, because somebody already created and included a Visual Studio project (lib_json.vcproj) inside the "makefiles\vs71" directory (which should be included with the JSON files that you download from http://sourceforge.net/projects/jsoncpp/).
This Visual Studio project is for an older version of Visual Studio. However, if you open it within Visual Studio 2008, it should convert just fine, at which point you can build it within Visual Studio 2008, and then you should have the necessary .lib file you need for your project.