I did have the complete vision works package because I had installed the jetpack package. When I tried to build one of the samples (camera capture) in the samples directory /usr/share/visionworks/sources, I got the following the errors (I dont have the exact error lines but they were undefined references to the following 3 functions):
undefined reference to nvxio::OptionHandler::string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)' undefined reference to
nvxio::createDefaultFrameSource(_vx_context*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’
undefined reference to `nvxio::createDefaultRender(_vx_context*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned int, unsigned int, unsigned int, bool, bool)’
Looking up online, I cam accross some topics (like this one: https://devtalk.nvidia.com/default/topic/965838/unable-to-install-package-libvisionworks-nvxi-jetpack-l4t-2-1-1-32-bit-via-jetpack-2-3-/ ) here about these errors and in many of them these were the suggestions:
Remove nvxio lib
$ sudo apt-get remove --purge libvisionworks-nvxio libvisionworks-nvxio-dev
After installing VisionWorks
Install build dependencies:
$ sudo apt-get build-dep libvisionworks-nvxio libvisionworks-nvxio-dev
Download the source archive:
$ apt-get source libvisionworks-nvxio
Repackage nvxio
$ cd libvisionworks-nvxio_<visworks_ver>/
$ dpkg-buildpackage -j4 -b
Install newly built packages:
$ sudo dpkg -i …/libvisionworks-nvxio_<visworks_ver>.deb
…/libvisionworks-nvxio-dev<visworks_ver>_all.deb
I followed these, and everything looked good, but it seems that the only thing I did was remove somehow the samples and reinstall the a library in the samples directory (because I did all these in the samples directory).
How can I undo somehow the above commands or bring back the samples)?