Opened 8 years ago

Closed 7 years ago

#52156 closed defect (invalid)

opencv: build fails with "use of undeclared identifier 'CODEC_ID_MPEG4'"

Reported by: gsalierno3@… Owned by: stromnov (Andrey 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.

Attachments (2)

main.log (161.9 KB) - added by gsalierno3@… 8 years ago.
Log file
main.2.log (421.3 KB) - added by gsalierno3@… 8 years ago.
Second log

Download all attachments as: .zip

Change History (6)

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

comment:2 Changed 8 years ago by gsalierno3@…

Thank you very much for your help. I'm not sure what to do with the :debug:build statement above. However, I performed the other 3 statements (clean, selfupdate, and the install) but I still get the same error. I also attached the new log file to this message. Thanks.

comment:3 in reply to:  2 Changed 8 years ago by larryv (Lawrence Velázquez)

Your build is still using 2.4.10.

:info:extract --->  Extracting opencv-2.4.10.zip

I don’t know what “nummist.com” is, but it suggests you’re using a third-party port source. Why can’t you use our official ports tree? We cannot provide support for third-party ports trees that provide outdated portfiles.

:debug:main Changing to port directory: /opt/local/var/macports/sources/nummist.com/opencv/ports/graphics/openni-sensorkinect

comment:4 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.