[MacPorts] #23806: opencv @2.0.0 build failure

MacPorts noreply at macports.org
Sun Feb 21 18:28:33 PST 2010


#23806: opencv @2.0.0 build failure
----------------------------------------+-----------------------------------
 Reporter:  matteo.soccorsi@…           |       Owner:  macports-tickets@…                   
     Type:  defect                      |      Status:  new                                  
 Priority:  Normal                      |   Milestone:                                       
Component:  ports                       |     Version:  1.8.2                                
 Keywords:  opencv 2.0.0 build failure  |        Port:  opencv                               
----------------------------------------+-----------------------------------

Comment(by ryanlei750328@…):

 Intel C2D, Mac OS X 10.6.2, Xcode 3.2.1 (64-bit):

 {{{
 Error: Target org.macports.build returned: shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_opencv/work/OpenCV-2.0.0"
 && /usr/bin/make -j2 all " returned error 2
 Command output: /usr/bin/make  all-recursive
 Making all in 3rdparty
 make[2]: Nothing to be done for `all'.
 Making all in src
 /bin/sh ../libtool  --tag=CXX   --mode=compile /usr/bin/g++-4.2
 -DHAVE_CONFIG_H -I. -I..  -DNDEBUG  -I../include/opencv
 -I/opt/local/include -D_REENTRANT -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include
 -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
 -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
 -I/opt/local/include/pango-1.0 -I/opt/local/include
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
 -I/opt/local/include/libpng12 -fast -g  -O2 -arch x86_64 -MT
 lib_highgui_la-cvcap_ffmpeg.lo -MD -MP -MF .deps/lib_highgui_la-
 cvcap_ffmpeg.Tpo -c -o lib_highgui_la-cvcap_ffmpeg.lo `test -f
 'highgui/cvcap_ffmpeg.cpp' || echo './'`highgui/cvcap_ffmpeg.cpp
 libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -DNDEBUG
 -I../include/opencv -I/opt/local/include -D_REENTRANT
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include -I/opt/local/include/gtk-2.0
 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0
 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0
 -I/opt/local/include -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1
 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -fast -g -O2
 -arch x86_64 -MT lib_highgui_la-cvcap_ffmpeg.lo -MD -MP -MF .deps
 /lib_highgui_la-cvcap_ffmpeg.Tpo -c highgui/cvcap_ffmpeg.cpp  -fno-common
 -DPIC -o .libs/lib_highgui_la-cvcap_ffmpeg.o
 highgui/cvcap_ffmpeg.cpp:87:30: error: ffmpeg/avcodec.h: No such file or
 directory
 highgui/cvcap_ffmpeg.cpp:93:30: error: ffmpeg/swscale.h: No such file or
 directory
 highgui/cvcap_ffmpeg.cpp: In member function 'virtual bool
 CvVideoWriter_FFMPEG::open(const char*, int, double, CvSize, bool)':
 highgui/cvcap_ffmpeg.cpp:1213: warning: 'av_alloc_format_context' is
 deprecated (declared at /opt/local/include/libavformat/avformat.h:873)
 highgui/cvcap_ffmpeg.cpp:1213: warning: 'av_alloc_format_context' is
 deprecated (declared at /opt/local/include/libavformat/avformat.h:873)
 make[2]: *** [lib_highgui_la-cvcap_ffmpeg.lo] Error 1
 make[1]: *** [all-recursive] Error 1
 make: *** [all] Error 2

 Error: Status 1 encountered during processing.
 }}}

 As I checked, there's no folder '''ffmpeg''' in /opt/local/include.
 Instead, there're '''libavcodec, libavdevice, libavfilter, libavformat,
 libavutil, libpostproc, libswscale''', possibly containing those missing
 headers. These directories are also found in ffmpeg source code.

-- 
Ticket URL: <http://trac.macports.org/ticket/23806#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list