Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 18.04 make -j4 时,报错 #3685

Open
LiuYanZu01 opened this issue Mar 5, 2024 · 1 comment
Open

Ubuntu 18.04 make -j4 时,报错 #3685

LiuYanZu01 opened this issue Mar 5, 2024 · 1 comment
Labels
invalid question (invalid tracker) ask questions and other "no action" items here: https://forum.opencv.org/

Comments

@LiuYanZu01
Copy link

cmake -DOPENCV_EXTRA_MODULES_PATH=/home/ubuntu/opencv-4.5.4/opencv_contrib-4.x/modules ..

sudo make -j4

Scanning dependencies of target opencv_imgproc
[ 22%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/accum.cpp.o
/home/ubuntu/opencv-4.5.4/opencv_contrib-4.x/modules/signal/src/signal_resample.cpp:22:48: error: ‘VTraits’ was not declared in this scope
const uint32_t v_float32_max_width = (uint32_t)VTraits<v_float32>::max_nlanes;
^~~~~~~
/home/ubuntu/opencv-4.5.4/opencv_contrib-4.x/modules/signal/src/signal_resample.cpp:22:65: error: expected primary-expression before ‘>’ token
const uint32_t v_float32_max_width = (uint32_t)VTraits<v_float32>::max_nlanes;
^
/home/ubuntu/opencv-4.5.4/opencv_contrib-4.x/modules/signal/src/signal_resample.cpp:22:68: error: ‘::max_nlanes’ has not been declared
const uint32_t v_float32_max_width = (uint32_t)VTraits<v_float32>::max_nlanes;
^~~~~~~~~~
/home/ubuntu/opencv-4.5.4/opencv_contrib-4.x/modules/signal/src/signal_resample.cpp:22:68: note: suggested alternative: ‘max_align_t’
const uint32_t v_float32_max_width = (uint32_t)VTraits<v_float32>::max_nlanes;
^~~~~~~~~~
max_align_t
/home/ubuntu/opencv-4.5.4/opencv_contrib-4.x/modules/signal/src/signal_resample.cpp: In function ‘cv::hal_baseline::simd128_cpp::v_float32 cv::signal::simd_cubicHermite(const v_float32&, const v_float32&, const v_float32&, const v_float32&, const v_float32&)’:
/home/ubuntu/opencv-4.5.4/opencv_contrib-4.x/modules/signal/src/signal_resample.cpp:98:25: error: ‘v_sub’ was not declared in this scope
v_float32 v_inv_A = v_sub(v_zero, v_A);
^~~~~
/home/ubuntu/opencv-4.5.4/opencv_contrib-4.x/modules/signal/src/signal_resample.cpp:100:53: error: ‘v_add’ was not declared in this scope
v_float32 v_a = v_mul(v_sub(v_fma(v_three, v_B, v_add(v_inv_A, v_D)), v_mul(v_three, v_C)), v_half);
^~~~~
/home/ubuntu/opencv-4.5.4/opencv_contrib-4.x/modules/signal/src/signal_resample.cpp:100:53: note: suggested alternative: ‘v_a’
v_float32 v_a = v_mul(v_sub(v_fma(v_three, v_B, v_add(v_inv_A, v_D)), v_mul(v_three, v_C)), v_half);
^~~~~
v_a

...and so on
image

@opencv-alalek opencv-alalek added question (invalid tracker) ask questions and other "no action" items here: https://forum.opencv.org/ invalid labels Mar 5, 2024
@Kumataro
Copy link
Contributor

Kumataro commented Mar 6, 2024

Perhaps you use OpenCV 4.5.4 with OpenCV Contrib 4.x.
Version mismatch between OpenCV and OpenCV Contrib makes these errors.

Please could you update OpenCV to latest 4.x branch if you want to use latest OpenCV Contrib ?
If not, please switch to 4.5.4 tag which is same as OpenCV. ( e.g. cd opencv_contrib; git checkout 4.5.4 ; git reset --hard. )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid question (invalid tracker) ask questions and other "no action" items here: https://forum.opencv.org/
Projects
None yet
Development

No branches or pull requests

3 participants