DALI: cmake failed - nvJPEG
Here is the thing. After I do the cmake step:
$cmake ..
It gives me the error:
-- The CXX compiler identification is GNU 5.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda-8.0 (found version "8.0")
-- root:
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find NVJPEG (missing: NVJPEG_INCLUDE_DIR NVJPEG_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindNVJPEG.cmake:32 (find_package_handle_standard_args)
cmake/Dependencies.cmake:13 (find_package)
CMakeLists.txt:47 (include)
-- Configuring incomplete, errors occurred!
See also "/home/smluo/GithubProject/DALI-master/build/CMakeFiles/CMakeOutput.log".
See also "/home/smluo/GithubProject/DALI-master/build/CMakeFiles/CMakeError.log".
I guess the error is about nvJPEG
I downloaded the pre-release version v0.1 and decompressed it. There is no more other instructions on the official website of NVIDIA (https://developer.nvidia.com/nvjpeg)
THX in advance.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (10 by maintainers)
Commits related to this issue
- Check that third_party git submodules are synced If third_party/*/CMakeLists.txt files are not found, it probably means that the user forgot to do `git clone --recursive`, as in https://github.com/NV... — committed to cliffwoolley/DALI-1 by cliffwoolley 6 years ago
- Check that third_party git submodules are synced If third_party/*/CMakeLists.txt files are not found, it probably means that the user forgot to do `git clone --recursive`, as in https://github.com/NV... — committed to NVIDIA/DALI by cliffwoolley 6 years ago
It sounds like you didn’t do a recursive clone of the git repo. Try this:
Hi, If you extract it anywhere you need to run cmake with NVJPEG_ROOT_DIR argument which value points to dir where you have your nvJPEG. Other way is to copy nvJPEG libs to /usr/local/lib/ and headers to /usr/local/include/.
I’m working on a PR that would make
NVJPEG_ROOT_DIR
(and similar vars for other dependencies) a bit more usable via ccmake. But yes you can already specify that with something likecmake ... -DNVJPEG_ROOT_DIR=/path/to/nvjpeg/
.