Public bug reported:
When including dlib in a custom project using CMake
find_package(dlib REQUIRED)
... and later...
target_link_libraries(myprojectname
${dlib_LIBRARIES})
I get the following error:
CMake Error at /usr/lib/cmake/dlib/dlib.cmake:76 (message):
The imported target "dlib::dlib" references the file
"/usr/lib/libdlib.a"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/cmake/dlib/dlib.cmake"
but not all the files it references.
This can be solved by removing the line
list(APPEND _IMPORT_CHECK_FILES_FOR_dlib::dlib
"${_IMPORT_PREFIX}/lib/libdlib.a" )
from /usr/lib/cmake/dlib/dlib-none.cmake
or by adding libdlib.a to the -dev package.
** Affects: dlib (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1576604
Title:
static library file missing
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dlib/+bug/1576604/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs