Opened 11 years ago

Closed 3 years ago

#37314 closed defect (fixed)

opencv @2.3.1: error: ‘av_open_input_file’ was not declared in this scope

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

Attachments (1)

main.log (192.7 KB) - added by luminans@… 11 years ago.
log file for port opencv

Download all attachments as: .zip

Change History (4)

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.

comment:2 Changed 11 years ago by luminans@…

I tried several older versions of ffmpeg (http://ffmpeg.org/download.html) before opencv 2.3.1a (r 86729). I think port install the new version of ffmpeg.

Is there any way to specify the particular version in portfile?

Or, did I install ffmpeg in a wrong way?

comment:3 Changed 3 years ago by kencu (Ken)

Resolution: fixed
Status: newclosed

opencv builds on 10.6.8 as of 2020.12.21 at least

Note: See TracTickets for help on using tickets.