Comments (3)
I find that something is wrong in the compile of this project, which is as follows:
CMake Warning (dev) at /usr/local/share/OpenCV/OpenCVConfig.cmake:52 (if):
given arguments:
"TRUE"
An argument named "TRUE" appears in a conditional statement. Policy
CMP0012 is not set: if() recognizes numbers and boolean constants. Run
"cmake --help-policy CMP0012" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt:37 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find libjsoncpp-dev (missing: LIBJSONCPP_INCLUDE_DIR)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/changliu/github/pastec/build
I cross-searched in stackoverflow and find the reason here:
http://stackoverflow.com/questions/18005880/how-to-writing-a-cmake-module-for-jsoncpp
so there need some changes in Findjsoncpp.cmake, I think maybe different machine configurations should be different...
diff --git a/cmake/Modules/Findjsoncpp.cmake b/cmake/Modules/Findjsoncpp.cmake
index 4857396..8fc8bb0 100644
--- a/cmake/Modules/Findjsoncpp.cmake
+++ b/cmake/Modules/Findjsoncpp.cmake
@@ -9,9 +9,9 @@ find_package(PkgConfig)
pkg_check_modules(PC_LIBJSONCPP QUIET libjsoncpp)
set(LIBJSONCPP_DEFINITIONS ${PC_LIBJSONCPP_CFLAGS_OTHER})
-find_path(LIBJSONCPP_INCLUDE_DIR json.h
+find_path(LIBJSONCPP_INCLUDE_DIR json/features.h
HINTS ${PC_LIBJSONCPP_INCLUDEDIR} ${PC_LIBJSONCPP_INCLUDE_DIRS}
-
PATH_SUFFIXES libjsoncpp)
-
PATH_SUFFIXES jsoncpp)
find_library(LIBJSONCPP_LIBRARY jsoncpp
HINTS ${PC_LIBJSONCPP_LIBDIR} ${PC_LIBJSONCPP_LIBRARY_DIRS} )
from pastec.
@deercoder: Thanks for the description of your software build experiences.
But I wonder why you appended this story to my issue here. How do you think about to move it to a new bug report?
from pastec.
@elfring Sorry, I didn't find somewhere to put, I think I would better move it to some be right place, Thanks!
from pastec.
Related Issues (20)
- Unix socket support HOT 1
- Pastec Server Not retruns More than 100 records HOT 1
- Installation Error - CMake on mac HOT 2
- Run pastec in https HOT 1
- IMAGE_NOT_ENCODED HOT 4
- Image not encoded HOT 2
- Querying from HTTP HOT 1
- How does image resolution impact results? HOT 4
- Loading the same index on different platforms HOT 5
- Problem when installing pastec on ubuntu 18.04 HOT 5
- Questions regarding pastec HOT 1
- Python wrapper HOT 5
- Feature: VisualWordsORB, but for Danbooru HOT 4
- all the -d commands error, why ? HOT 1
- Segmentation fault (core dumped) HOT 3
- pastec "Could not open the backward index file" HOT 11
- Attach 2 models to the index ?
- Continued developement and problem in weight ranking
- Any publication or text about Pastec? HOT 1
- The URL for setup is not available anymore. Is this project still being maintained?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pastec.