Git Product home page Git Product logo

Comments (4)

puzzlepaint avatar puzzlepaint commented on June 28, 2024

Hi, does /usr/local/include/DLib/ contain a file DLibConfig.cmake? If yes, you could set DLib_DIR to this directory. Otherwise, it would be a possibility to write a custom DLibConfig.cmake that points to your installation directories. As an example, here is the content of /usr/local/include/DLib/DLibConfig.cmake on my system:

FIND_LIBRARY(DLib_LIBRARY DLib
    PATHS "/usr/local/lib"
)
FIND_PATH(DLib_INCLUDE_DIR DLibConfig.cmake
    PATHS "/usr/local/include/DLib" 
)
LIST(APPEND DLib_INCLUDE_DIR
  ${DLib_INCLUDE_DIR}/../ ${DLib_INCLUDE_DIR}/../DUtils
  ${DLib_INCLUDE_DIR}/../DUtilsCV ${DLib_INCLUDE_DIR}/../DVision)
SET(DLib_LIBRARIES ${DLib_LIBRARY})
SET(DLib_LIBS ${DLib_LIBRARY})
SET(DLib_INCLUDE_DIRS ${DLib_INCLUDE_DIR})

from badslam.

brookman avatar brookman commented on June 28, 2024

@jiapei100 You have probably installed the wrong library. There are two unrelated libraries which have the same name (but different capitalization in the name):

I made the same mistake and lost a few hours because of it. ^^'

from badslam.

puzzlepaint avatar puzzlepaint commented on June 28, 2024

Indeed, the .pc file referenced above contains Description: Numerical and networking C++ library, which I overlooked when I first replied. I just added a warning about this to the Readme to hopefully prevent this from happening to more people.

from badslam.

jiapei100 avatar jiapei100 commented on June 28, 2024

@brookman

Thank you @brookman . There are still compatibility issue:

dorian3d/DLib#23

from badslam.

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.