Opened 12 years ago

Closed 12 years ago

#34106 closed defect (fixed)

opencv: error: ‘nppiAbsDiff_8u_C4R’ was not declared in this scope

Reported by: edoardo16@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: raphael-st (Raphael Straub)
Port: opencv

Description

Opencv-2.3.1 build error on MacOS X 10.7.3 with Xcode 4.3.2 and CUDA driver 4.2.7:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.3.1/modules/gpu/src/element_operations.cpp: In function ‘void cv::gpu::absdiff(const cv::gpu::GpuMat&, const cv::gpu::GpuMat&, cv::gpu::GpuMat&, cv::gpu::Stream&)’:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.3.1/modules/gpu/src/element_operations.cpp:298: error: ‘nppiAbsDiff_8u_C4R’ was not declared in this scope
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.3.1/modules/gpu/src/element_operations.cpp:302: error: ‘nppiAbsDiff_32s_C1R’ was not declared in this scope
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.3.1/modules/gpu/src/graphcuts.cpp: In function ‘void cv::gpu::graphcut(cv::gpu::GpuMat&, cv::gpu::GpuMat&, cv::gpu::GpuMat&, cv::gpu::GpuMat&, cv::gpu::GpuMat&, cv::gpu::GpuMat&, cv::gpu::GpuMat&, cv::gpu::Stream&)’:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.3.1/modules/gpu/src/graphcuts.cpp:80: error: cannot convert ‘unsigned char*’ to ‘NppiGraphcutState*’ for argument ‘11’ to ‘NppStatus nppiGraphcut_32s8u(Npp32s*, Npp32s*, Npp32s*, Npp32s*, Npp32s*, int, int, NppiSize, Npp8u*, int, NppiGraphcutState*)’
:info:build make[2]: *** [modules/gpu/CMakeFiles/opencv_gpu.dir/src/graphcuts.o] Error 1

Attachments (1)

main.log (306.9 KB) - added by edoardo16@… 12 years ago.
Log for opencv - build error

Download all attachments as: .zip

Change History (7)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Port: opencv added
Summary: opencv @2.3.1 build erroropencv: error: ‘nppiAbsDiff_8u_C4R’ was not declared in this scope

Please attach the main.log.

Changed 12 years ago by edoardo16@…

Attachment: main.log added

Log for opencv - build error

comment:2 Changed 12 years ago by edoardo16@…

I have attached the main log.

comment:3 Changed 12 years ago by raphael-st (Raphael Straub)

Version: 2.0.4

OpenCV has been updated to version 2.4.0 in r93038. Do you still have the same problem?

comment:4 Changed 12 years ago by raphael-st (Raphael Straub)

Cc: raphael@… added

Cc Me!

comment:5 in reply to:  3 Changed 12 years ago by paone@…

Now it works, thank you!

Replying to raphael@…:

OpenCV has been updated to version 2.4.0 in r93038. Do you still have the same problem?

comment:6 Changed 12 years ago by raphael-st (Raphael Straub)

Resolution: fixed
Status: newclosed

Fixed by updating to 2.4.0 in r93038.

Note: See TracTickets for help on using tickets.