Giter Site home page Giter Site logo

Comments (3)

deercoder avatar deercoder commented on August 16, 2024 1

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.

elfring avatar elfring commented on August 16, 2024

@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.

deercoder avatar deercoder commented on August 16, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.