Skip to content

docker build failed, missing nvjpeg2k_ext_static #6126

@lyquid617

Description

@lyquid617

Version

1.52

Describe the bug.

Hello DALI team!
I tried building containers by ./build.sh, and perform
bash-4.4$ /opt/dali/docker/build_helper.sh in the builder container.
Based on my needs, I set the WITH_DYNAMIC_* options OFF.

But the make procedure occured an error.

[ 97%] Linking CXX shared library ../python/nvidia/dali/libdali_operators.so
/opt/rh/gcc-toolset-14/root/usr/libexec/gcc/x86_64-redhat-linux/14/ld: cannot find -lnvjpeg2k_ext_static: No such file or directory.

I guess the problem is related to DALI/cmake/Dependencies.common.cmake

    if (BUILD_NVJPEG2K)
      message(STATUS "nvImageCodec - Include nvjpeg2k extension")
      list(APPEND NVIMGCODEC_LIBS nvjpeg2k_ext_static)
      list(APPEND DALI_EXCLUDES libnvjpeg2k_ext_static.a)
      endif()

and a previous warning

CMake Warning at cmake/Dependencies.cmake:69 (message):
  nvJPEG2k library not found.  Disabling nvJPEG2k and tests build.
Call Stack (most recent call first):
  CMakeLists.txt:329 (include)

But I checked libnvjpeg2k is installed in the container

bash-4.4$ find /usr/local/cuda* -name "*nvjpeg2k*" 2>/dev/null
/usr/local/cuda/targets/x86_64-linux/include/nvjpeg2k_version.h
/usr/local/cuda/targets/x86_64-linux/include/nvjpeg2k.h
/usr/local/cuda/targets/x86_64-linux/lib/libnvjpeg2k.so
/usr/local/cuda/targets/x86_64-linux/lib/libnvjpeg2k_static.a
/usr/local/cuda/targets/x86_64-linux/lib/libnvjpeg2k.so.0
/usr/local/cuda/targets/x86_64-linux/lib/libnvjpeg2k.so.0.9.0.43

The detailed ouput is attached.

Minimum reproducible example

Relevant log output

Other/Misc.

No response

Check for duplicates

  • I have searched the open bugs/issues and have found no duplicates for this bug report

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions