Opened 11 years ago

Last modified 3 years ago

#37314 closed defect

opencv @2.3.1: error: ‘av_open_input_file’ was not declared in this scope — at Version 1

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

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I wanted to install an old version of opencv (2.3.1a) so that I did the following.

svn co -r 86729 http://svn.macports.org/repository/macports/trunk/dports/graphics/opencv
cd opencv/
sudo port -v install +apache2+postgresql83

Then I got errors in the middle:

...
Command failed:  cd "/opt/local/var/macports/build/_Users_tkim2_Packages_opencv/opencv/work/OpenCV-2.3.1" && /usr/bin/make -j2 -w all 
Exit code: 2
Error: org.macports.build for port opencv returned: command execution failed
...

The more details in the attachment.

Change History (2)

Changed 11 years ago by luminans@…

Attachment: main.log added

log file for port opencv

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: Install OpenCV 2.3.1 removed
Owner: changed from macports-tickets@… to stromnov@…
Port: opencv added
Priority: HighNormal
Summary: Command Execution Failed during Installation of OpenCV 2.3.1opencv @2.3.1: error: ‘av_open_input_file’ was not declared in this scope

The log you attached was not from a clean build, but errors I see in it appear to relate to ffmpeg:

error: ‘av_open_input_file’ was not declared in this scope

This old version of opencv is probably not compatible with the new version of ffmpeg we have in MacPorts. You could try installing a correspondingly older version of ffmpeg too.

Note: See TracTickets for help on using tickets.