building jsoncpp on OS X

dokaptur
2013-08-13
2013-08-13
  • dokaptur
    dokaptur
    2013-08-13

    Hi, I need to build jsoncpp library on OS X 10.8.3. There is x86_64 architecture, but i have to use jsoncpp in i386 architecture Xcode project (unfortunately i have to use Xcode 3.2.5 with sdk10.6). How can I do that? When I run 'scons platform=linux-gcc' it seems to create working library only for x86_64 projects. I tried to modify SConstruct file adding -arch i386 flag, but it doesn't work. I have no experience in building and installing c++ libraries on Mac, so I'd really appreciate your help.