#37314: opencv @2.3.1: error: ‘av_open_input_file’ was not declared in this scope -------------------------+------------------------ Reporter: luminans@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: opencv | -------------------------+------------------------ Changes (by ryandesign@…): * priority: High => Normal * keywords: Install OpenCV 2.3.1 => * owner: macports-tickets@… => stromnov@… * port: => opencv Old description:
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.
New description: 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. -- Comment: The log you attached was not from a [http://guide.macports.org/chunked/project.html#project.tickets.prerequisites 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. -- Ticket URL: <https://trac.macports.org/ticket/37314#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS