Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#53637 closed defect (invalid)

opencv @2.4.10: error: use of undeclared identifier 'CODEC_ID_H264'; did you mean 'AV_CODEC_ID_H264'?

Reported by: akhand42 (Aditya Khandelwal) Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: opencv

Description

Hi, I am new to this community and to the general idea of installing Python packages using Macports. I have successfully installed many packages using Macports in the past 24 hours, but the one I am having a problem with is OpenCV. The build keeps failing even after I tried to clean up, selfupdated and tried to install the package again. I am attaching the main.log file with this ticket.

sudo port install opencv +python27
--->  Computing dependencies for opencv
--->  Fetching distfiles for opencv
--->  Verifying checksums for opencv
--->  Extracting opencv
--->  Applying patches to opencv
--->  Configuring opencv
--->  Building opencv
Error: Failed to build opencv: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_nummist.com_opencv_ports_graphics_opencv/opencv/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port opencv failed

Attachments (1)

main.log (398.8 KB) - added by akhand42 (Aditya Khandelwal) 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by akhand42 (Aditya Khandelwal)

Attachment: main.log added

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

Keywords: opencv new removed
Owner: set to stromnov
Port: opencv added
Priority: HighNormal
Status: newassigned
Summary: OpenCV build failsopencv @2.4.10: error: use of undeclared identifier 'CODEC_ID_H264'; did you mean 'AV_CODEC_ID_H264'?

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

Cc: ryandesign added
Resolution: invalid
Status: assignedclosed

You are trying to build an out-of-date version of opencv: 2.4.10. The version currently in MacPorts is 3.2.0.

According to the log, this old opencv is coming from a third-party ports repository from nummist.com. You'll have to contact them for assistance with their ports; we've never heard of them.

Any particular reason why you have enabled the use of this third-party ports repository instead of using our official ports?

comment:3 Changed 7 years ago by akhand42 (Aditya Khandelwal)

Hey, thanks for the fast response.

I figured the problem. You are right. I was following a tutorial from a book by author Joseph Howse who made me change the rsync properties to nummist.com. Removing that line from my sources.config file and trying to install OpenCV directly from the repos at Macports worked perfectly. I didn't know how to delete the ticket, but just putting this information out there for anyone else following the same book and running into similar issues.

Note: See TracTickets for help on using tickets.