Visionworks NVX OVX

Hi!

I’m trying to follow the image stabilizer tutorial for visionworks Tutorials/VisionWorks Quick Start (Immediate Mode) but I can’t get it to compile. I’ve read this topic:

And followed the steps there. Using the CmakeList.txt suggested there:
cmake_minimum_required (VERSION 2.8)

project(VisionWorks)

set (CMAKE_CXX_STANDARD 11)
find_package(VisionWorks REQUIRED)

add_executable(app src/main.cpp)

target_include_directories(app PRIVATE /usr/share/visionworks/sources/nvxio/include)
target_link_libraries(app -L/usr/share/visionworks/sources/libs/aarch64/linux/release -lnvx -lovx -lglfw -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 ${VisionWorks_LIBRARIES})

Produces the following error:

Scanning dependencies of target app
[ 50%] Building CXX object CMakeFiles/app.dir/src/main.cpp.o
[100%] Linking CXX executable app
/usr/bin/ld: cannot find -lnvx
/usr/bin/ld: cannot find -lovx
collect2: error: ld returned 1 exit status
CMakeFiles/app.dir/build.make:84: recipe for target 'app' failed
make[3]: *** [app] Error 1
CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/app.dir/all' failed
make[2]: *** [CMakeFiles/app.dir/all] Error 2
CMakeFiles/Makefile2:82: recipe for target 'CMakeFiles/app.dir/rule' failed
make[1]: *** [CMakeFiles/app.dir/rule] Error 2
Makefile:118: recipe for target 'app' failed
make: *** [app] Error 2

Hi,

VisionWorks library by default is not compiled.
Please follow the below instructions to build it from source first.

$ cd /usr/share/visionworks/sources
$ sudo make

Thanks.

Thanks, I had done that but turns out I was including the wrong folder.