Installing libvisionwork-nvxio on Tx1

Hi Folks,

I have a Tx1 board. I installed most recent version of jetpack on it two weeks back. I building an example code on Tx1 which makes use of libvisionworks-nvxio. I do not have libvisionworks-nvxio and looking for help in installing it on my Tx1. I do have libvisionworks on my board.

Thanks,

Following is what I have tried -

ubuntu@tegra-ubuntu:~/work/Demo$ sudo apt-get install libvisionworks-nvxio
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libvisionworks-nvxio
u

Hi,

Do you use visionworks 1.5? (since we changes API in visionworks-1.6)

Library can be found in
/usr/lib/libvisionworks.so
/usr/lib/libnvxio.so

Command should be

nvcc test.cpp -lnvxio -lvisionworks -o test

Hi AastaLLL

I do see /usr/lib/libvisionworks.so, but I do not see any /usr/lib/libnvxio.so. How can I install libnvxio ?

Thanks,

Hi,

Which version do you use?

In VisionWorks-1.6:
NVXIO was split to NVX and OVX. And libnvx.a and libovx.a will be generated automatically before building visionworks samples.

Please read more information in VisionWorks release note:
https://developer.nvidia.com/embedded/dlc/visionworks-1-6-release-notes

Thanks.

How can I find the version of VisionWorks ? I am thinking I will reinstall the Jet pack again. That look way more simpler/safe/quick.

BTW, my emmc card with 16GB capacity is full. I have a 128 GB SD card - which has everything set up on it. I am booting ubuntu from SD card.

Thanks,

Hi,

Please try this:

dpkg -l | grep visionworks

If you install VisionWorks with JetPack3.0, it should be version1.6.
VisionWorks-1.5, which has libnvxio and libvisionworks, can be installed with JetPack2.3.1.

I see following …

dpkg -l | grep visionworks
ii  libvisionworks                              1.6.0.235n                                          arm64        NVIDIA's VisionWorks Library and supplemental data
ii  libvisionworks-dev                          1.6.0.235n                                          all          Development files for NVIDIA's VisionWorks Library
ii  libvisionworks-docs                         1.6.0.235n                                          all          Documentation for NVIDIA's VisionWorks Library
ii  libvisionworks-repo                         1.6.0.235n                                          arm64        NVIDIA VisionWorks computer vision library.
ii  libvisionworks-samples                      1.6.0.235n                                          arm64        Samples for NVIDIA's VisionWorks Library
ii  libvisionworks-sfm                          0.90.1                                              arm64        SFM module for NVIDIA's VisionWorks Library
ii  libvisionworks-sfm-dev                      0.90.1                                              arm64        Development files for SFM module for NVIDIA's VisionWorks Library
ii  libvisionworks-sfm-docs                     0.90.1                                              all          Documentation for SFM module for NVIDIA's VisionWorks Library
ii  libvisionworks-sfm-repo                     0.90.1                                              arm64        Package repository for NVIDIA's VisionWorks SFM module.
ii  libvisionworks-tracking                     0.88.0                                              arm64        Tracking module for NVIDIA's VisionWorks Library
ii  libvisionworks-tracking-dev                 0.88.0                                              arm64        Development files for Tracking module for NVIDIA's VisionWorks Library
ii  libvisionworks-tracking-docs                0.88.0                                              all          Documentation for Tracking module for NVIDIA's VisionWorks Library
ii  libvisionworks-tracking-repo                0.88.0                                              arm64        Package repository for NVIDIA's VisionWorks Tracking module.

Hi,
Thanks for your feedback.

Based on your log, visionworks-1.6 is installed.
If you prefer nvxio API, please migrate to visionworks-1.5.

No need to flash every, just re-install visionworks should be enough:

  1. Remove visionworks-1.6 first:
$ sudo apt-get remove --purge libvisionworks-samples libvisionworks-dev libvisionworks-docs libvisionworks
$ sudo apt-get purge libvisionworks-repo
$ sudo apt-get update
  1. Install visionworks-1.5 via JetPack2.3.1 (only select visionworks packs)

Thanks AastaLLL.

I would not like to move backward. I have problem compiling following code

#include <NVX/nvx.h>
#include <NVX/nvx_timer.hpp>

#include <NVXIO/Application.hpp>
#include <NVXIO/ConfigParser.hpp>
#include <NVXIO/FrameSource.hpp>
#include <NVXIO/Render.hpp>
#include <NVXIO/SyncTimer.hpp>
#include <NVXIO/Utility.hpp>

I am getting following error

ubuntu@tegra-ubuntu:~/work/Demo$ make
Package nvxio was not found in the pkg-config search path.
Perhaps you should add the directory containing `nvxio.pc'
to the PKG_CONFIG_PATH environment variable
No package 'nvxio' found
Package nvxio was not found in the pkg-config search path.
Perhaps you should add the directory containing `nvxio.pc'
to the PKG_CONFIG_PATH environment variable
No package 'nvxio' found
nvcc     -O3 -DNDEBUG -std=c++11 -o obj/release/leopard_demo.o -c leopard_demo.cpp
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
leopard_demo.cpp:38:33: fatal error: NVXIO/Application.hpp: No such file or directory
compilation terminated.
Makefile:101: recipe for target 'obj/release/leopard_demo.o' failed
make: *** [obj/release/leopard_demo.o] Error 1

Any idea which header I should use from visionworks 1.6 ?

Thanks,

Hi,

Thanks for your feedback.

As mentioned in #4, NVXIO was split into NVX and OVX.
Since API changes, please modify your source with NVX and OVX rather than NVXIO.

Please refer to Visionworks-1.6 samples to get more hint.
Thanks.