[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1112551: libosd-dev cmake exported targets miss static libraries



Package: libosd-dev
Version: 3.6.0-3

When trying to build OpenUSD https://github.com/PixarAnimationStudios/OpenUSD , cmake fails in the cache configuration phase because the exported target expects static version of the libraries to be present on the filesystem. Here is the error for osdCPU, it's similar for osdGPU.


CMake Error at /usr/lib/x86_64-linux-gnu/cmake/OpenSubdiv/OpenSubdivTargets.cmake:122 (message):
  The imported target "OpenSubdiv::osdCPU_static" references the file

     "/usr/lib/x86_64-linux-gnu/libosdCPU.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/x86_64-linux-gnu/cmake/OpenSubdiv/OpenSubdivTargets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/OpenSubdiv/OpenSubdivConfig.cmake:40 (include)
  cmake/defaults/Packages.cmake:226 (find_package)
  CMakeLists.txt:23 (include)


If I create empty files at the expected .a locations, cmake then works as expected.

touch /usr/lib/x86_64-linux-gnu/libosdCPU.a /usr/lib/x86_64-linux-gnu/libosdGPU.a

Shipping the static versions of the libraries should fix this issue.

cat /etc/debian_version 
13.0

uname -a
Linux ws 6.12.41+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.41-1 (2025-08-12) x86_64 GNU/Linux

Reply to: