error compiling visionWorks Samples with make -j4

ubuntu@tegra-ubuntu:~/VisionWorks-1.5-Samples$ make -j4
make[1]: Entering directory ‘/home/ubuntu/VisionWorks-1.5-Samples/demos/feature_tracker’
make[1]: Entering directory ‘/home/ubuntu/VisionWorks-1.5-Samples/demos/feature_tracker_nvxcu’
make[1]: Entering directory ‘/home/ubuntu/VisionWorks-1.5-Samples/demos/stereo_matching’
make[1]: Entering directory ‘/home/ubuntu/VisionWorks-1.5-Samples/demos/video_stabilizer’
mkdir -p obj/release
g++ -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 -O3 -DNDEBUG -std=c++0x -o obj/release/color_disparity_graph.o -c color_disparity_graph.cpp
mkdir -p obj/release
g++ -I/usr/local/cuda-8.0/include -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 -O3 -DNDEBUG -std=c++0x -o obj/release/main_feature_tracker_nvxcu.o -c main_feature_tracker_nvxcu.cpp
mkdir -p obj/release
g++ -I/usr/include/eigen3 -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 -O3 -DNDEBUG -std=c++0x -o obj/release/main_video_stabilizer.o -c main_video_stabilizer.cpp
mkdir -p obj/release
g++ -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 -O3 -DNDEBUG -std=c++0x -o obj/release/main_feature_tracker.o -c main_feature_tracker.cpp
g++ -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 -O3 -DNDEBUG -std=c++0x -o obj/release/stereo_matching.o -c stereo_matching.cpp
g++ -I/usr/include/eigen3 -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 -O3 -DNDEBUG -std=c++0x -o obj/release/smoother_node.o -c smoother_node.cpp
g++ -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 -O3 -DNDEBUG -std=c++0x -o obj/release/feature_tracker.o -c feature_tracker.cpp
g++ -I/usr/local/cuda-8.0/include -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 -O3 -DNDEBUG -std=c++0x -o obj/release/feature_tracker_nvxcu.o -c feature_tracker_nvxcu.cpp
g++ -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 -O3 -DNDEBUG -std=c++0x -o obj/release/main_stereo_matching.o -c main_stereo_matching.cpp
g++ -Wl,–allow-shlib-undefined -pthread -Wl,-rpath=/usr/local/cuda-8.0/lib64 -o …/…/bin/aarch64/linux/release/nvx_demo_feature_tracker_nvxcu obj/release/main_feature_tracker_nvxcu.o obj/release/feature_tracker_nvxcu.o -L"/usr/lib" -L/usr/local/cuda-8.0/lib64 -lcudart -lvisionworks -lnvxio
g++ -Wl,–allow-shlib-undefined -pthread -Wl,-rpath=/usr/local/cuda-8.0/lib64 -o …/…/bin/aarch64/linux/release/nvx_demo_feature_tracker obj/release/main_feature_tracker.o obj/release/feature_tracker.o -L"/usr/lib" -lvisionworks -lnvxio
obj/release/main_feature_tracker_nvxcu.o: In function main': main_feature_tracker_nvxcu.cpp:(.text.startup+0x12c): undefined reference to nvxio::OptionHandler::string(std::__cxx11::basic_string<char, std::char_traits, std::allocator >)’
main_feature_tracker_nvxcu.cpp:(.text.startup+0x1b4): undefined reference to nvxio::OptionHandler::string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)' main_feature_tracker_nvxcu.cpp:(.text.startup+0x24c): undefined reference to nvxio::OptionHandler::string(std::__cxx11::basic_string<char, std::char_traits, std::allocator >
)’
main_feature_tracker_nvxcu.cpp:(.text.startup+0x914): undefined reference to nvxcuio::createDefaultFrameSource(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' main_feature_tracker_nvxcu.cpp:(.text.startup+0x9a0): undefined reference to nvxcuio::createDefaultRender(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned int, unsigned int, _nvxcu_df_image_e, bool, bool)’
main_feature_tracker_nvxcu.cpp:(.text.startup+0x11a4): undefined reference to nvxcuio::loadImageFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, _nvxcu_df_image_e)' collect2: error: ld returned 1 exit status Makefile:135: recipe for target '../../bin/aarch64/linux/release/nvx_demo_feature_tracker_nvxcu' failed make[1]: *** [../../bin/aarch64/linux/release/nvx_demo_feature_tracker_nvxcu] Error 1 make[1]: Leaving directory '/home/ubuntu/VisionWorks-1.5-Samples/demos/feature_tracker_nvxcu' Makefile:31: recipe for target 'demos/feature_tracker_nvxcu/Makefile.pr_build' failed make: *** [demos/feature_tracker_nvxcu/Makefile.pr_build] Error 2 make: *** Waiting for unfinished jobs.... g++ -I/usr/include/eigen3 -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 -O3 -DNDEBUG -std=c++0x -o obj/release/stabilizer.o -c stabilizer.cpp obj/release/main_feature_tracker.o: In function main’:
main_feature_tracker.cpp:(.text.startup+0x12c): undefined reference to nvxio::OptionHandler::string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)' main_feature_tracker.cpp:(.text.startup+0x1b4): undefined reference to nvxio::OptionHandler::string(std::__cxx11::basic_string<char, std::char_traits, std::allocator >)’
main_feature_tracker.cpp:(.text.startup+0x24c): undefined reference to nvxio::OptionHandler::string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)' main_feature_tracker.cpp:(.text.startup+0x950): undefined reference to nvxio::createDefaultFrameSource(_vx_context
, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’
main_feature_tracker.cpp:(.text.startup+0x9e8): undefined reference to nvxio::createDefaultRender(_vx_context*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int, unsigned int, bool, bool)' main_feature_tracker.cpp:(.text.startup+0xc78): undefined reference to nvxio::loadImageFromFile(_vx_context*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned int)’
collect2: error: ld returned 1 exit status
Makefile:133: recipe for target ‘…/…/bin/aarch64/linux/release/nvx_demo_feature_tracker’ failed
make[1]: *** […/…/bin/aarch64/linux/release/nvx_demo_feature_tracker] Error 1
make[1]: Leaving directory ‘/home/ubuntu/VisionWorks-1.5-Samples/demos/feature_tracker’
Makefile:31: recipe for target ‘demos/feature_tracker/Makefile.pr_build’ failed
make: *** [demos/feature_tracker/Makefile.pr_build] Error 2
g++ -I/usr/include/eigen3 -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 -O3 -DNDEBUG -std=c++0x -o obj/release/homography_filter_node.o -c homography_filter_node.cpp
g++ -I/usr/include/eigen3 -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 -O3 -DNDEBUG -std=c++0x -o obj/release/truncate_transform_node.o -c truncate_transform_node.cpp
g++ -Wl,–allow-shlib-undefined -pthread -Wl,-rpath=/usr/local/cuda-8.0/lib64 -o …/…/bin/aarch64/linux/release/nvx_demo_stereo_matching obj/release/color_disparity_graph.o obj/release/stereo_matching.o obj/release/main_stereo_matching.o -L"/usr/lib" -lvisionworks -lnvxio
obj/release/main_stereo_matching.o: In function main': main_stereo_matching.cpp:(.text.startup+0x138): undefined reference to nvxio::OptionHandler::string(std::__cxx11::basic_string<char, std::char_traits, std::allocator >)’
main_stereo_matching.cpp:(.text.startup+0x1c0): undefined reference to nvxio::OptionHandler::string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)' main_stereo_matching.cpp:(.text.startup+0xa50): undefined reference to nvxio::createDefaultFrameSource(_vx_context
, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’
main_stereo_matching.cpp:(.text.startup+0xb3c): undefined reference to nvxio::createDefaultRender(_vx_context*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int, unsigned int, bool, bool)' collect2: error: ld returned 1 exit status Makefile:133: recipe for target '../../bin/aarch64/linux/release/nvx_demo_stereo_matching' failed make[1]: *** [../../bin/aarch64/linux/release/nvx_demo_stereo_matching] Error 1 make[1]: Leaving directory '/home/ubuntu/VisionWorks-1.5-Samples/demos/stereo_matching' Makefile:31: recipe for target 'demos/stereo_matching/Makefile.pr_build' failed make: *** [demos/stereo_matching/Makefile.pr_build] Error 2 g++ -Wl,--allow-shlib-undefined -pthread -Wl,-rpath=/usr/local/cuda-8.0/lib64 -o ../../bin/aarch64/linux/release/nvx_demo_video_stabilizer obj/release/main_video_stabilizer.o obj/release/smoother_node.o obj/release/stabilizer.o obj/release/homography_filter_node.o obj/release/truncate_transform_node.o -L"/usr/lib" -lvisionworks -lnvxio obj/release/main_video_stabilizer.o: In function main’:
main_video_stabilizer.cpp:(.text.startup+0x100): undefined reference to nvxio::OptionHandler::string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)' main_video_stabilizer.cpp:(.text.startup+0x2f4): undefined reference to nvxio::createDefaultFrameSource(_vx_context*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’
main_video_stabilizer.cpp:(.text.startup+0x390): 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)’
collect2: error: ld returned 1 exit status
Makefile:135: recipe for target ‘…/…/bin/aarch64/linux/release/nvx_demo_video_stabilizer’ failed
make[1]: *** […/…/bin/aarch64/linux/release/nvx_demo_video_stabilizer] Error 1
make[1]: Leaving directory ‘/home/ubuntu/VisionWorks-1.5-Samples/demos/video_stabilizer’
Makefile:31: recipe for target ‘demos/video_stabilizer/Makefile.pr_build’ failed
make: *** [demos/video_stabilizer/Makefile.pr_build] Error 2

Hi,

Just tried to compile VisionWorks-1.5 on TX1 and no error occurs.
Could your share more about your environemnt?
(Which JetPack version? VisionWorks version? … )

Please noted that we had split NVXIO into OVX and NVX in VisionWorks-1.6. So the NVXIO APIs changes from v1.6.

Thanks.

the error went away the next day, I am not sure what it was. But now when I am trying to compile a simple proeject with cmake I get the following error:

[ 50%] Building CXX object CMakeFiles/stich-ndt.dir/src/stich-ndt.o
[100%] Linking CXX executable stich-ndt
/usr/lib/libnvxio.so.1.5.3: undefined reference to vxGetValidRegionImage' /usr/lib/libnvxio.so.1.5.3: undefined reference to vxCreateImageFromHandle’
/usr/lib/libnvxio.so.1.5.3: undefined reference to vxQueryGraph' /usr/lib/libnvxio.so.1.5.3: undefined reference to vxReleaseImage’
/usr/lib/libnvxio.so.1.5.3: undefined reference to vxCreateImage' /usr/lib/libnvxio.so.1.5.3: undefined reference to vxGetStatus’
/usr/lib/libnvxio.so.1.5.3: undefined reference to vxReadMatrix' /usr/lib/libnvxio.so.1.5.3: undefined reference to vxuColorConvert’
/usr/lib/libnvxio.so.1.5.3: undefined reference to vxCreateContext' /usr/lib/libnvxio.so.1.5.3: undefined reference to vxMapImagePatch’
/usr/lib/libnvxio.so.1.5.3: undefined reference to vxQueryMatrix' /usr/lib/libnvxio.so.1.5.3: undefined reference to vxUnmapArrayRange’
/usr/lib/libnvxio.so.1.5.3: undefined reference to nvxGetVersionInfo' /usr/lib/libnvxio.so.1.5.3: undefined reference to vxReleaseContext’
/usr/lib/libnvxio.so.1.5.3: undefined reference to vxWriteMatrix' /usr/lib/libnvxio.so.1.5.3: undefined reference to vxMapArrayRange’
/usr/lib/libnvxio.so.1.5.3: undefined reference to vxQueryNode' /usr/lib/libnvxio.so.1.5.3: undefined reference to vxQueryArray’
/usr/lib/libnvxio.so.1.5.3: undefined reference to vxUnmapImagePatch' /usr/lib/libnvxio.so.1.5.3: undefined reference to vxQueryImage’
collect2: error: ld returned 1 exit status
CMakeFiles/stich-ndt.dir/build.make:411: recipe for target ‘stich-ndt’ failed
make[2]: *** [stich-ndt] Error 1
CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/stich-ndt.dir/all’ failed
make[1]: *** [CMakeFiles/stich-ndt.dir/all] Error 2
Makefile:83: recipe for target ‘all’ failed
make: *** [all] Error 2

It seems it doesnot like some vx functions?

Hi,

I have replied the cmake error to this topic:
https://devtalk.nvidia.com/default/topic/1017817/jetson-tx1/visionworks-compilation-error-cmake/post/5184246/#5184246

Thanks.