Hello,
I want to modify the code of the nvgstcamera_capture example which is provided with VisionWorks-1.6.
First, I made a copy of the nvgstcamera_capture folder to another directory. Then I used make to run the Makefile provided by the example to build the executable. However I get the following error:
nvidia@tegra-ubuntu:~/Documents/CUDA Examples/nvgstcamera_capture$ make
g++ -I/usr/local/cuda-9.0/include -I/home/nvidia/code/build-visionworks/install/include -I…/…/nvxio/include -I…/…/nvxio/src/ -I…/…/nvxio/src/NVX/ -I…/…/3rdparty/opengl -I…/…/3rdparty/glfw3/include -I…/…/3rdparty/freetype/include -I…/…/3rdparty/eigen -O3 -DNDEBUG -std=c++0x -DCUDA_API_PER_THREAD_DEFAULT_STREAM -DUSE_GUI=1 -DUSE_GLFW=1 -DUSE_GLES=1 -DUSE_GSTREAMER=1 -DUSE_NVGSTCAMERA=1 -DUSE_GSTREAMER_OMX=1 -o obj/release/main_nvgstcamera_capture.o -c main_nvgstcamera_capture.cpp
main_nvgstcamera_capture.cpp:37:34: fatal error: OVX/FrameSourceOVX.hpp: No such file or directory
compilation terminated.
Makefile:140: recipe for target ‘obj/release/main_nvgstcamera_capture.o’ failed
make: *** [obj/release/main_nvgstcamera_capture.o] Error 1
I also tried the build a cmake file as is suggested in another thread. My CMakeLists.txt is:
[i]cmake_minimum_required(VERSION 2.8)
project(nvfstcamera_capture)
set(CMAKE_CXX_STANDARD 11)
find_package(VisionWorks REQUIRED)
find_package(VisionWorks-NVXIO REQUIRED)
MESSAGE( STATUS "VisionWorks Lib: " ${VisionWorks_LIBRARIES})
MESSAGE( STATUS "NVXIO Lib: " ${VisionWorks-NVXIO_LIBRARIES})
add_executable(app main_nvgstcamera_capture.cpp)
target_link_libraries(app ${VisionWorks_LIBRARIES} ${VisionWorks-NVXIO_LIBRARIES})[/i]
But I got the following error:
[i]nvidia@tegra-ubuntu:~/Documents/CUDA Examples/nvgstcamera_capture/build$ cmake …
– The C compiler identification is GNU 5.4.0
– The CXX compiler identification is GNU 5.4.0
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– 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
CMake Error at CMakeLists.txt:6 (find_package):
By not providing “FindVisionWorks-NVXIO.cmake” in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
“VisionWorks-NVXIO”, but CMake did not find one.
Could not find a package configuration file provided by “VisionWorks-NVXIO”
with any of the following names:
VisionWorks-NVXIOConfig.cmake
visionworks-nvxio-config.cmake
Add the installation prefix of “VisionWorks-NVXIO” to CMAKE_PREFIX_PATH or
set “VisionWorks-NVXIO_DIR” to a directory containing one of the above
files. If “VisionWorks-NVXIO” provides a separate development package or
SDK, be sure it has been installed.
– Configuring incomplete, errors occurred!
See also “/home/nvidia/Documents/CUDA Examples/nvgstcamera_capture/build/CMakeFiles/CMakeOutput.log”.[/i]
Evidently, the library NVXIO has some problem to be included in both cases. Can someone explain me how to include the library correctly, please? I am compiling directly on my Jetson TX2 platform which has the last JetPack installed.
Thank you.