pastec icon indicating copy to clipboard operation
pastec copied to clipboard

Libjson fix

Open mdlincoln opened this issue 8 years ago • 0 comments

I have run into errors with your cmake file correctly locating libjsoncpp, both on OS X (10.10.5, with libjsoncpp installed via homebrew) as well as Ubuntu 14.04 (installed via apt-get). This has also been described in #30

# cmake ../
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") 
-- Found libmicrohttpd: /usr/lib/x86_64-linux-gnu/libmicrohttpd.so  
-- Could NOT find libjsoncpp (missing:  LIBJSONCPP_INCLUDE_DIR) 
-- Configuring done
-- Generating done
-- Build files have been written to: /root/pastec/build

The following patch described in #8 fixes this for both OS X and Ubuntu. I have not yet tested it on other systems, however.

mdlincoln avatar Apr 04 '16 22:04 mdlincoln