We recently installed the master OpenCV branch on our TX2. When we try to compile the following “test.cu” file
#include <opencv2/core.hpp> const int m = 32;
with the command
nvcc --std=c++11 -c -o test.d test.cu
following errors occur:
/usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(38): error: identifier "__Int8x8_t" is undefined /usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(39): error: identifier "__Int16x4_t" is undefined /usr/lib/gcc/aarch64-linux-gnu/5/include/arm_neon.h(40): error: identifier "__Int32x2_t" is undefined ...
I encountered postings with the same errors for TX1, but they didn’t seem to have useful responses. We are not having this problem on TX1 platform. Another interesting thing is that same file compiles when it is renamed to “test.cpp” and compiled with the following command:
nvcc --std=c++11 -c -o test.o test.cpp
Any help is appreciated.