How to compile jsoncpp without scons ?

Mani
2011-12-02
2013-04-22
  • Mani
    Mani
    2011-12-02

    How we can compile the Json-cpp library without scons build tools. I want compile this for vacpp.
    Is there a way to create makefiles to compile the source code without the scons build scripts.

     
  • Miguel Diez
    Miguel Diez
    2012-10-16

    I want to know it also.

     
  • Brenda Bell
    Brenda Bell
    2013-02-21

    I'm obviously doing something wrong.

    I applied the patch while in the jsoncpp-src-0.5.0 directory. I determined this to be the correct patch path because that's the parent directory of the files being patched.

    I then ran the commands you listed above (for Xcode instead of Unix), but got errors. cake is looking for CMakeLists.txt in the current directory which is currently the empty build directory just created.

    Any hints as to what's wrong?

     
  • daminetreg
    daminetreg
    2013-02-25

    If you didn't get any error by applying the patch, it should work correctly. Did you really run cmake .. (notice the .. to go to the parent dir containing the CMakeLists.txt). You can also try running cmake /path/to/jsoncpp-src-0.5.0/ , give me the output of this.

    Additionally, it could be something I missed that doesn't run on Mac, as I don't have one to test, but I would be happy to debug this together.