Hello!
I’m trying to build a custom version of libfreenect2, which uses nvjpeg as standard library. The project compiles but when I try to run ./Protonect I found this error:
terminate called after throwing an instance of 'std::runtime_error'
what(): JPEG parameter struct mismatch: library thinks size is 656, caller expects 744
Aborted (core dumped)
I’ve already read some threads about a similar issue, but I don’t understand what could have caused it. Here’s the portion of my CMakeLists.txt file where I call the library, and only here:
IF(ENABLE_TEGRA_JPEG AND EXISTS "/etc/nv_tegra_release")
FIND_LIBRARY(TEGRA_JPEG_LIBRARY nvjpeg PATHS /usr/lib/aarch64-linux-gnu/tegra NO_DEFAULT_PATH)
IF(NOT TEGRA_JPEG_LIBRARY)
MESSAGE(FATAL_ERROR "Did not find Tegra JPEG library")
ENDIF(NOT TEGRA_JPEG_LIBRARY)
INCLUDE_DIRECTORIES("${MY_DIR}/../../depends/nv_headers")
MESSAGE(STATUS "Found Tegra hardware accelerated JPEG support")
SET(LIBFREENECT2_WITH_TEGRA_JPEG_SUPPORT 1)
LIST(APPEND SOURCES
src/tegra_jpeg_rgb_packet_processor.cpp
)
LIST(APPEND LIBRARIES
${TEGRA_JPEG_LIBRARY}
)
ENDIF()
How could it be that the project links to another library? And how can I check WHICH library is it?