static library file missing

Bug #1576604 reported by Bruno Randolf
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
dlib (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dlib (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.