Problem with building Visionworks samples on Ubuntu

Hello,

I need to install Visionworks on Ubuntu and run some sample code. I downloaded and installed “JetPack-L4T-2.3-linux-x64”.

I decided to build "sample"s that comes with the installation.

I went to the “/usr/share/visionworks/sources/”

Then I followed the instructions, which was in the readme:

"All samples use `make` as a build tool.

    $ /usr/share/visionworks/sources/install-samples.sh ~/
    $ cd ~/VisionWorks-<ver>-Samples/
    $ make -j4 # add dbg=1 to make debug build"

However when I tried to build it with “make -j4” (debug or not) it gives me an endless error, here is the part of it:

/usr/include/NVXIO/Range.hpp: In function ‘nvxio::Range<T> nvxio::ranges::all() [with T = int]’:
/usr/include/NVXIO/OptionHandler.hpp:112:   instantiated from here
/usr/include/NVXIO/Range.hpp:164: error: ‘lowest’ is not a member of ‘std::numeric_limits<int>’
/usr/include/NVXIO/Range.hpp:164: error: could not convert ‘{<expression error>, std::numeric_limits<int>::max(), true, true}’ to ‘nvxio::Range<int>’
/usr/include/NVXIO/Range.hpp: In function ‘nvxio::Range<T> nvxio::ranges::all() [with T = unsigned int]’:
/usr/include/NVXIO/OptionHandler.hpp:121:   instantiated from here
/usr/include/NVXIO/Range.hpp:164: error: ‘lowest’ is not a member of ‘std::numeric_limits<unsigned int>’
/usr/include/NVXIO/Range.hpp:164: error: could not convert ‘{<expression error>, std::numeric_limits<unsigned int>::max(), true, true}’ to ‘nvxio::Range<unsigned int>’
/usr/include/NVXIO/Range.hpp: In function ‘nvxio::Range<T> nvxio::ranges::all() [with T = float]’:
/usr/include/NVXIO/OptionHandler.hpp:130:   instantiated from here
/usr/include/NVXIO/Range.hpp:164: error: ‘lowest’ is not a member of ‘std::numeric_limits<float>’
/usr/include/NVXIO/Range.hpp:164: error: could not convert ‘{<expression error>, std::numeric_limits<float>::max(), true, true}’ to ‘nvxio::Range<float>’
/usr/include/NVXIO/Range.hpp: In function ‘nvxio::Range<T> nvxio::ranges::all() [with T = double]’:
/usr/include/NVXIO/OptionHandler.hpp:139:   instantiated from here
/usr/include/NVXIO/Range.hpp:164: error: ‘lowest’ is not a member of ‘std::numeric_limits<double>’
/usr/include/NVXIO/Range.hpp:164: error: could not convert ‘{<expression error>, std::numeric_limits<double>::max(), true, true}’ to ‘nvxio::Range<double>’
/usr/include/NVXIO/Range.hpp: In function ‘nvxio::Range<T> nvxio::ranges::atMost(T) [with T = unsigned int]’:
main_object_tracker_nvxcu.cpp:306:   instantiated from here
/usr/include/NVXIO/Range.hpp:208: error: ‘lowest’ is not a member of ‘std::numeric_limits<unsigned int>’
/usr/include/NVXIO/Range.hpp:208: error: could not convert ‘{<expression error>, x, true, true}’ to ‘nvxio::Range<unsigned int>’
/usr/include/NVXIO/Range.hpp: In function ‘nvxio::Range<T> nvxio::ranges::atMost(T) [with T = float]’:
main_object_tracker_nvxcu.cpp:331:   instantiated from here
/usr/include/NVXIO/Range.hpp:208: error: ‘lowest’ is not a member of ‘std::numeric_limits<float>’
/usr/include/NVXIO/Range.hpp:208: error: could not convert ‘{<expression error>, x, true, true}’ to ‘nvxio::Range<float>’
In file included from /usr/include/NVXIO/OptionHandler.hpp:187,
                 from /usr/include/NVXIO/Application.hpp:38,
                 from main_opengl_interop.cpp:61:
/usr/include/NVXIO/detail/OptionHandler.hpp: In constructor ‘nvxio::detail::OptionHandlerOneOf<T>::OptionHandlerOneOf(T*, It, It)’:
/usr/include/NVXIO/detail/OptionHandler.hpp:49: error: expected primary-expression before ‘[’ token
/usr/include/NVXIO/detail/OptionHandler.hpp:49: error: expected primary-expression before ‘const’
/usr/include/NVXIO/detail/OptionHandler.hpp:49: error: expected primary-expression before ‘>’ token
/usr/include/NVXIO/detail/OptionHandler.hpp:49: error: ‘p’ was not declared in this scope
main_opengl_interop.cpp: In constructor ‘Window::Window(const char*, int, int)’:
main_opengl_interop.cpp:213: error: ‘nullptr’ was not declared in this scope
main_opengl_interop.cpp: In constructor ‘Render::Render(GLuint, GLuint, GLuint, GLuint)’:
main_opengl_interop.cpp:434: error: ‘nullptr’ was not declared in this scope
main_opengl_interop.cpp: In member function ‘void Render::createVertexBuffer()’:
main_opengl_interop.cpp:506: error: ‘nullptr’ was not declared in this scope
In file included from /usr/include/NVXIO/OptionHandler.hpp:187,
                 from /usr/include/NVXIO/Application.hpp:38,
                 from main_opencv_npp_interop.cpp:30:
/usr/include/NVXIO/detail/OptionHandler.hpp: In constructor ‘nvxio::detail::OptionHandlerOneOf<T>::OptionHandlerOneOf(T*, It, It)’:
/usr/include/NVXIO/detail/OptionHandler.hpp:49: error: expected primary-expression before ‘[’ token
/usr/include/NVXIO/detail/OptionHandler.hpp:49: error: expected primary-expression before ‘const’
/usr/include/NVXIO/detail/OptionHandler.hpp:49: error: expected primary-expression before ‘>’ token
/usr/include/NVXIO/detail/OptionHandler.hpp:49: error: ‘p’ was not declared in this scope
In file included from /usr/include/NVXIO/OptionHandler.hpp:187,
                 from /usr/include/NVXIO/Application.hpp:38,
                 from main_object_tracker_nvxcu.cpp:41:
/usr/include/NVXIO/detail/OptionHandler.hpp: In constructor ‘nvxio::detail::OptionHandlerOneOf<T>::OptionHandlerOneOf(T*, It, It) [with It = const std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool>*, T = bool]’:
/usr/include/NVXIO/Utility.hpp:291:   instantiated from ‘std::unique_ptr<T, std::default_delete<_Tp> > nvxio::makeUP(Args&& ...) [with T = nvxio::detail::OptionHandlerOneOf<bool>, Args = bool*&, const std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool>*, const std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool>*]’
/usr/include/NVXIO/detail/OptionHandler.hpp:93:   instantiated from ‘static std::unique_ptr<nvxio::OptionHandler, std::default_delete<nvxio::OptionHandler> > nvxio::OptionHandler::oneOf(T*, typename nvxio::OptionHandler::PairList<T>::type) [with T = bool]’
main_object_tracker_nvxcu.cpp:319:   instantiated from here
/usr/include/NVXIO/detail/OptionHandler.hpp:49: error: unable to deduce ‘auto’ from ‘<expression error>’
In file included from /usr/include/NVXIO/OptionHandler.hpp:34,
                 from /usr/include/NVXIO/Application.hpp:38,
                 from main_opengl_interop.cpp:61:
/usr/include/NVXIO/Range.hpp: In function ‘nvxio::Range<T> nvxio::ranges::all() [with T = int]’:
/usr/include/NVXIO/OptionHandler.hpp:112:   instantiated from here
/usr/include/NVXIO/Range.hpp:164: error: ‘lowest’ is not a member of ‘std::numeric_limits<int>’
/usr/include/NVXIO/Range.hpp:164: error: could not convert ‘{<expression error>, std::numeric_limits<int>::max(), true, true}’ to ‘nvxio::Range<int>’
/usr/include/NVXIO/Range.hpp: In function ‘nvxio::Range<T> nvxio::ranges::all() [with T = unsigned int]’:
/usr/include/NVXIO/OptionHandler.hpp:121:   instantiated from here
/usr/include/NVXIO/Range.hpp:164: error: ‘lowest’ is not a member of ‘std::numeric_limits<unsigned int>’
/usr/include/NVXIO/Range.hpp:164: error: could not convert ‘{<expression error>, std::numeric_limits<unsigned int>::max(), true, true}’ to ‘nvxio::Range<unsigned int>’
/usr/include/NVXIO/Range.hpp: In function ‘nvxio::Range<T> nvxio::ranges::all() [with T = float]’:
/usr/include/NVXIO/OptionHandler.hpp:130:   instantiated from here
/usr/include/NVXIO/Range.hpp:164: error: ‘lowest’ is not a member of ‘std::numeric_limits<float>’
/usr/include/NVXIO/Range.hpp:164: error: could not convert ‘{<expression error>, std::numeric_limits<float>::max(), true, true}’ to ‘nvxio::Range<float>’
/usr/include/NVXIO/Range.hpp: In function ‘nvxio::Range<T> nvxio::ranges::all() [with T = double]’:
/usr/include/NVXIO/OptionHandler.hpp:139:   instantiated from here
/usr/include/NVXIO/Range.hpp:164: error: ‘lowest’ is not a member of ‘std::numeric_limits<double>’
/usr/include/NVXIO/Range.hpp:164: error: could not convert ‘{<expression error>, std::numeric_limits<double>::max(), true, true}’ to ‘nvxio::Range<double>’
make[1]: *** [obj/release/main_object_tracker_nvxcu.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [obj/release/main_opengl_interop.o] Error 1
make[1]: Leaving directory `/home/umut/VisionWorks-1.5-Samples/samples/opengl_interop'
make: *** [samples/opengl_interop/Makefile.pr_build] Error 2
In file included from /usr/include/NVXIO/OptionHandler.hpp:34,
                 from /usr/include/NVXIO/Application.hpp:38,
                 from main_opencv_npp_interop.cpp:30:
/usr/include/NVXIO/Range.hpp: In function ‘nvxio::Range<T> nvxio::ranges::all() [with T = int]’:
/usr/include/NVXIO/OptionHandler.hpp:112:   instantiated from here
/usr/include/NVXIO/Range.hpp:164: error: ‘lowest’ is not a member of ‘std::numeric_limits<int>’
/usr/include/NVXIO/Range.hpp:164: error: could not convert ‘{<expression error>, std::numeric_limits<int>::max(), true, true}’ to ‘nvxio::Range<int>’
/usr/include/NVXIO/Range.hpp: In function ‘nvxio::Range<T> nvxio::ranges::all() [with T = unsigned int]’:
/usr/include/NVXIO/OptionHandler.hpp:121:   instantiated from here
/usr/include/NVXIO/Range.hpp:164: error: ‘lowest’ is not a member of ‘std::numeric_limits<unsigned int>’
/usr/include/NVXIO/Range.hpp:164: error: could not convert ‘{<expression error>, std::numeric_limits<unsigned int>::max(), true, true}’ to ‘nvxio::Range<unsigned int>’
/usr/include/NVXIO/Range.hpp: In function ‘nvxio::Range<T> nvxio::ranges::all() [with T = float]’:
/usr/include/NVXIO/OptionHandler.hpp:130:   instantiated from here
/usr/include/NVXIO/Range.hpp:164: error: ‘lowest’ is not a member of ‘std::numeric_limits<float>’
/usr/include/NVXIO/Range.hpp:164: error: could not convert ‘{<expression error>, std::numeric_limits<float>::max(), true, true}’ to ‘nvxio::Range<float>’
/usr/include/NVXIO/Range.hpp: In function ‘nvxio::Range<T> nvxio::ranges::all() [with T = double]’:
/usr/include/NVXIO/OptionHandler.hpp:139:   instantiated from here
/usr/include/NVXIO/Range.hpp:164: error: ‘lowest’ is not a member of ‘std::numeric_limits<double>’
/usr/include/NVXIO/Range.hpp:164: error: could not convert ‘{<expression error>, std::numeric_limits<double>::max(), true, true}’ to ‘nvxio::Range<double>’
object_tracker_keypoint_nvxcu.cpp: In function ‘void<unnamed>::releaseImageU8(nvxcu_pitch_linear_image_t*)’:
object_tracker_keypoint_nvxcu.cpp:352: error: ‘nullptr’ was not declared in this scope
object_tracker_keypoint_nvxcu.cpp: In function ‘void<unnamed>::releasePyramid(nvxcu_pitch_linear_pyramid_t*)’:
object_tracker_keypoint_nvxcu.cpp:388: error: ‘nullptr’ was not declared in this scope
make[1]: *** [obj/release/main_opencv_npp_interop.o] Error 1
make[1]: Leaving directory `/home/umut/VisionWorks-1.5-Samples/samples/opencv_npp_interop'
make: *** [samples/opencv_npp_interop/Makefile.pr_build] Error 2
object_tracker_keypoint_nvxcu.cpp: In static member function ‘static void nvxcu_keypoint_tracker::ScaleLogarithmicAverager::makeLogarithmicAveragingOfScales(const std::vector<_nvxcu_point2f_t, std::allocator<_nvxcu_point2f_t> >&, std::vector<std::pair<float, int>, std::allocator<std::pair<float, int> > >&, const std::vector<int, std::allocator<int> >&, double&, double&)’:
object_tracker_keypoint_nvxcu.cpp:1351: error: expected unqualified-id before ‘(’ token
object_tracker_keypoint_nvxcu.cpp:1355: error: expected unqualified-id before ‘(’ token
object_tracker_keypoint_nvxcu.cpp: In constructor ‘nvxcu_keypoint_tracker::OpticalFlowBuilder::OpticalFlowBuilder(const nvxcu_keypoint_tracker::ObjectTrackerPyrLKKeyHistory::PyramidalLucasKanadeParameters&, const nvxcu_keypoint_tracker::ObjectTrackerPyrLKKeyHistory::CornerDetectorParameters&)’:
object_tracker_keypoint_nvxcu.cpp:1539: error: ‘nullptr’ was not declared in this scope
make[1]: *** [obj/release/object_tracker_keypoint_nvxcu.o] Error 1
make[1]: Leaving directory `/home/umut/VisionWorks-1.5-Samples/samples/object_tracker_nvxcu'
make: *** [samples/object_tracker_nvxcu/Makefile.pr_build] Error 2

What may be the problem here, what additional steps do I need to follow.

Thanks