MacPorts | 18 Apr 09:14 2012

[MacPorts] #34106: opencv <at> 2.3.1 build error

#34106: opencv  <at> 2.3.1 build error
---------------------------------+------------------------------------------
 Reporter:  edoardo16 <at> …          |       Owner:  macports-tickets <at> …                   
     Type:  defect               |      Status:  new                                  
 Priority:  Normal               |   Milestone:                                       
Component:  ports                |     Version:  2.0.4                                
 Keywords:                       |        Port:                                       
---------------------------------+------------------------------------------
 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
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/34106>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
_______________________________________________
macports-tickets mailing list
macports-tickets <at> lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-tickets

Gmane