Ask Your Question
0

[ 35%] fatal error: too many errors emitted, stopping now [-ferror-limit=]

asked 2014-04-24 10:12:12 -0600

lobsterman gravatar image

updated 2014-04-25 03:41:51 -0600

Hi all, I am attempting a compile of opencv-2.4.9 unix on mac osx 10.9.2. downloaded from sourceforge, it stops when it hits the maximum of these booboos

/Users/rhuber/Documents/C-Java/opencv/opencv-2.4.9/modules/highgui/src/ffmpeg_codecs.hpp:126:7: error: 
      use of undeclared identifier 'CODEC_ID_MPEG4'; did you mean
      'AV_CODEC_ID_MPEG4'?
    { CODEC_ID_MPEG4, MKTAG(0x04, 0, 0, 0) }, /* some broken avi use this */
      ^~~~~~~~~~~~~~
      AV_CODEC_ID_MPEG4
/usr/local/include/libavcodec/avcodec.h:123:5: note: 'AV_CODEC_ID_MPEG4'
      declared here
    AV_CODEC_ID_MPEG4,
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]

the same problem occurs when i go back to the earlier versions OpenCV-2.4.3 and opencv-2.4.6.1. i am thinking it is somehow related to having a version of ffmpeg installed somewhere that is either too new or too old for opencv. any suggestions on how i can fix it?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2014-11-09 13:34:07 -0600

lobsterman gravatar image

updated 2014-11-09 13:39:11 -0600

i am answering my own question in case someone else gets here with a similar problem. i had tried to install opencv first with homebrew, then ran into issues and switched to macports. had to go back into homebrew and first uninstall ffmpeg, then start over and install opencv in macports ... voila, and all worked like a charm

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-04-24 10:12:12 -0600

Seen: 4,001 times

Last updated: Nov 09 '14