Opened 8 years ago

Last modified 8 years ago

#52156 closed defect

opencv: build fails with "use of undeclared identifier 'CODEC_ID_MPEG4'" — at Version 1

Reported by: gsalierno3@… Owned by: stromnov@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: opencv

Description (last modified by larryv (Lawrence Velázquez))

This is the error message when trying to install opencv:

$ sudo port install opencv +python27 +openni_sensorkinect
--->  Computing dependencies for opencv
--->  Building opencv
Error: org.macports.build for port opencv returned: command execution failed
Please see the log file for port opencv for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_nummist.com_opencv_ports_graphics_opencv/opencv/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port opencv failed

I have a log file as well.

Change History (3)

Changed 8 years ago by gsalierno3@…

Attachment: main.log added

Log file

comment:1 Changed 8 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Owner: changed from macports-tickets@… to stromnov@…
Port: opencv added
Summary: error: use of undeclared identifier 'CODEC_ID_MPEG4'opencv: build fails with "use of undeclared identifier 'CODEC_ID_MPEG4'"

There are several issues here, but firstly, you’re building an old version of OpenCV:

:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nummist.com_opencv_ports_graphics_opencv/opencv/work/opencv-2.4.10" && /usr/bin/make -j8 -w all VERBOSE=ON 

The opencv port is currently at 3.1.0. Please clean, update, and try again.

$ sudo port clean opencv
$ sudo port selfupdate
$ sudo port install opencv +python27 +openni_sensorkinect

Changed 8 years ago by gsalierno3@…

Attachment: main.2.log added

Second log

Note: See TracTickets for help on using tickets.