New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34106 (closed defect: fixed)

Opened 13 months ago

Last modified 12 months ago

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@…
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

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

Change History

comment:1 Changed 13 months ago by ryandesign@…

  • Port set to opencv
  • Summary changed from opencv @2.3.1 build error to opencv: error: ‘nppiAbsDiff_8u_C4R’ was not declared in this scope

Please attach the main.log.

Changed 13 months ago by edoardo16@…

Log for opencv - build error

comment:2 Changed 13 months ago by edoardo16@…

I have attached the main log.

comment:3 follow-up: ↓ 5 Changed 13 months ago by raphael@…

  • Version 2.0.4 deleted

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

comment:4 Changed 13 months ago by raphael@…

  • Cc raphael@… added

Cc Me!

comment:5 in reply to: ↑ 3 Changed 12 months 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 months ago by raphael@…

  • Status changed from new to closed
  • Resolution set to fixed

Fixed by updating to 2.4.0 in r93038.

Note: See TracTickets for help on using tickets.