-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DLib is manually installed to /usr/local/lib ... #26
Comments
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}) |
@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. ^^' |
Indeed, the .pc file referenced above contains |
Thank you @brookman . There are still compatibility issue: |
Hi, I actually have manually installed DLib to /usr/local/lib, how should I define DLib_DIR ?
I don't have
DLibConfig.cmake
dlib-config.cmake
but with the following dlib.pc
The current ERROR is:
Can anybody help to fix this issue?
Thank you
Pei
The text was updated successfully, but these errors were encountered: