Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Building libJSON Issue

Help
2012-06-28
2013-06-12
  • Nishant Mittal
    Nishant Mittal
    2012-06-28

    make finishes without issues (on my 64bit Ubuntu desktop) but sudo make install throws an error…

    ============================================================
    libjson version: 7.6.1 target:  OS: Linux
    ============================================================
    Install header files
    mkdir -p /usr/include/libjson
    cp -f ./*.h /usr/include/libjson
    mkdir -p /usr/include/libjson/_internal/Source
    cp -f ./_internal/Source/*.h /usr/include/libjson/_internal/Source
    cp -r ./_internal/Source/JSONDefs /usr/include/libjson/_internal/Source
    chmod -R a+r /usr/include/libjson
    find  /usr/include/libjson -type d -exec chmod a+x {} \;
    cp -rv _internal/Source/Dependencies/ /usr/include/libjson/_internal/Source
    cp: cannot stat `_internal/Source/Dependencies/': No such file or directory
    make: ***  Error 1

     
  • Nishant Mittal
    Nishant Mittal
    2012-06-28

    also i saw in the makefile that SHARED          ?= "1" but its still building a static version!

     
  • Hellhound
    Hellhound
    2012-07-29

    I got the same issue installing libjson version 7.6.1 using MSYS/MinGW on windows
    plattform:

    $ make install

    libjson version: 7.6.1 target:  OS: MINGW32_NT-6.0

    Install header files
    mkdir -p /usr/include/libjson
    cp -f ./*.h /usr/include/libjson
    mkdir -p /usr/include/libjson/_internal/Source
    cp -f ./_internal/Source/*.h /usr/include/libjson/_internal/Source
    cp -r ./_internal/Source/JSONDefs /usr/include/libjson/_internal/Source
    chmod -R a+r /usr/include/libjson
    find  /usr/include/libjson -type d -exec chmod a+x {} \;
    cp -rv _internal/Source/Dependencies/ /usr/include/libjson/_internal/Source
    cp: cannot stat `_internal/Source/Dependencies/': No such file or directory
    make: ***  Error 1

     
  • Brian H Wilson
    Brian H Wilson
    2012-12-10

    I had to comment out this line in makefile

       #cp -rv $(srcdir)/Dependencies/ $(include_path)/$(libname_hdr)/$(srcdir)

    to get past the Dependencies error, and I used this command to build and install shared libraries in /usr/local/lib

    SHARED=1 make && sudo SHARED=1 prefix=/usr/local make instal