magwyz / pastec

Image recognition open source index and search engine
http://pastec.io
GNU Lesser General Public License v3.0
620 stars 175 forks source link

Problem when installing pastec on ubuntu 18.04 #66

Open hassanayoub85 opened 6 years ago

hassanayoub85 commented 6 years ago

Hi, I followed the setup guide, When i run cmake .. it shows tthis error:

-- Could NOT find libjsoncpp (missing: LIBJSONCPP_INCLUDE_DIR) CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.10/Modules/FindCURL.cmake:48 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:47 (find_package)

-- Configuring incomplete, errors occurred! See also "/root/pastec/build/CMakeFiles/CMakeOutput.log". See also "/root/pastec/build/CMakeFiles/CMakeError.log".

loge5 commented 6 years ago

I got under Arch Linux the similar problem that the libjsoncpp can not been included. I did not spend much time, but found in src/requesthandler.cpp the following lines:

#ifndef __APPLE__
#include <jsoncpp/json/json.h>
#else
#include <json/json.h>
#endif

Under Arch the json.h is located here: usr/include/json/json.h So I removed the "APPLE" handling and it compiles :)

(Under Arch I had also to install hdf5 first)

bperel commented 6 years ago

I think that this is fixed by the #36 PR, but it was never merged

loge5 commented 6 years ago

I tested #36 - for me, the changes doesn't fix the include.

bperel commented 6 years ago

Maybe installing libcurl-dev would solve the problem then?

ghost commented 5 years ago

apt install libcurl4-openssl-dev fixed this on my ubuntu 18.04