Opened 6 years ago

Closed 6 years ago

Last modified 3 days ago

#56408 closed defect (fixed)

gpac @0.7.1: 'VideoToolbox/VideoToolbox.h' file not found

Reported by: iefdev (Eric F) Owned by: ctreleaven (Craig Treleaven)
Priority: Normal Milestone:
Component: ports Version: 2.4.3
Keywords: Cc:
Port: gpac

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

as I posted here: comment:ticket:56259:8

It fails to build...

--->  Computing dependencies for gpac
--->  Fetching distfiles for gpac
--->  Attempting to fetch gpac-0.7.1.tar.gz from http://lil.fr.distfiles.macports.org/gpac
--->  Verifying checksums for gpac                                                   
--->  Extracting gpac
--->  Applying patches to gpac
--->  Configuring gpac
Error: gpac cannot be built while another version of gpac is active.
Error: Please forcibly deactivate the existing copy of gpac, e.g. by running:
Error: 
Error:     sudo port -f deactivate gpac
Error: 
Error: Then try again.
Error: Failed to configure gpac: gpac is active
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_gpac/gpac/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

Deactiavting:

$ sudo port -f deactivate gpac
--->  Unable to deactivate gpac @0.6.1_1, the following ports depend on it:
--->  	MP4Joiner @2.2_1
Warning: Deactivate forced.  Proceeding despite dependencies.
--->  Deactivating gpac @0.6.1_1
--->  Cleaning gpac

Upgrading:

--->  Computing dependencies for gpac
--->  Configuring gpac
--->  Building gpac
Error: Failed to build gpac: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_gpac/gpac/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

The log complains about a missing header.

:info:build vtb_decode.c:31:10: fatal error: 'VideoToolbox/VideoToolbox.h' file not found
:info:build #include <VideoToolbox/VideoToolbox.h>
:info:build          ^
:info:build 1 error generated.
:info:build make[2]: *** [vtb_decode.o] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_gpac/gpac/work/gpac-0.7.1/modules/vtb_decode'
:info:build make[1]: *** [plugs] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_gpac/gpac/work/gpac-0.7.1/modules'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_gpac/gpac/work/gpac-0.7.1'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_gpac/gpac/work/gpac-0.7.1" && /usr/bin/make -w all 
:info:build Exit code: 2
:error:build Failed to build gpac: command execution failed

Attaching my log…

Attachments (1)

gpac.tar.xz (16.7 KB) - added by iEFdev 6 years ago.

Download all attachments as: .zip

Change History (12)

Changed 6 years ago by iEFdev

Attachment: gpac.tar.xz added

comment:1 Changed 6 years ago by ctreleaven (Craig Treleaven)

gpac was updated to version 0.7.1 before the report was filed. Are you trying to install the prior version? Run 'sudo port selfupdate' if you wish to install the latest version.

https://github.com/macports/macports-ports/commits/master/multimedia/gpac/Portfile

Which version of OS X are you running? It appears that there are prebuilt binary packages for gpac 0.7.1 supporting 10.8 through 10.13.

http://packages.macports.org/gpac/

comment:2 in reply to:  1 Changed 6 years ago by iEFdev

Replying to ctreleaven:

gpac was updated to version 0.7.1 before the report was filed.

Yes, my bad... It's 0.7.1, like in the 1st codeblock of hte description. Sorry.

Which version of OS X are you running? It appears that there are prebuilt binary packages for gpac 0.7.1 supporting 10.8 through 10.13.

10.7.5. My prefs are set to build from source.

Thanks for looking at it. +1

comment:3 Changed 6 years ago by iEFdev

Summary: gpac @0.6.1_1: 'VideoToolbox/VideoToolbox.h' file not foundgpac @0.7.1: 'VideoToolbox/VideoToolbox.h' file not found

comment:4 Changed 6 years ago by kencu (Ken)

VideoToolBox is 10.8+

<https://developer.apple.com/documentation/videotoolbox>

maybe you can build gpac without it. Otherwise out of luck.

Last edited 6 years ago by kencu (Ken) (previous) (diff)

comment:5 Changed 6 years ago by ctreleaven (Craig Treleaven)

Ahh, the release notes show that VideoToolBox support was added in v 0.7.0:

"Apple VideoToolBox hardware decoding support for OSX and iOS for AVC|H264."

https://github.com/gpac/gpac/releases

I've looked through configure but there does not appear to be an option to disable it. If upstream will make it a configurable option or simply disable for OS X < 10.8, we can update the portfile.

comment:6 Changed 6 years ago by ctreleaven (Craig Treleaven)

Owner: set to ctreleaven
Resolution: fixed
Status: newclosed

In b414dfe8658325a8721885f2f6b5c878e06933b3/macports-ports (master):

gpac: 10.8 or later, no more self conflict

Closing current ticket, open a new ticket if upstream provides support

Closes: #56408

comment:7 in reply to:  5 Changed 6 years ago by iEFdev

Replying to ctreleaven:

Ahh, the release notes show that VideoToolBox support was added in v 0.7.0:

"Apple VideoToolBox hardware decoding support for OSX and iOS for AVC|H264."

https://github.com/gpac/gpac/releases

I've looked through configure but there does not appear to be an option to disable it. If upstream will make it a configurable option or simply disable for OS X < 10.8, we can update the portfile.

https://github.com/gpac/gpac/commit/c524e7ce0c9e4df6db20361403f53877d75aa780

Perhaps a patch to unpatch it?


If not, what's the best way to go on with my installed version? There's no mute function, except adding “and not ...” everytime I upgrade. I have MP4Joiner installed, with `gpac' as its dependency. Alternative software?

comment:8 Changed 6 years ago by kencu (Ken)

See <https://guide.macports.org/chunked/development.local-repositories.html>.

I have a collection of "pegged ports" for Lion (the last versions that worked on Lion) in a Local Repository that is set up for this. <https://github.com/kencu/LionPorts> You can use it as a starting point, or if you're willing, contribute to is as well, as everyone who uses Lion could use it.

IF there is sufficient interest, there can be two versions maintained in the Portfile -- this is possible, but it's a confusing PITA to maintain, and not many maintainers are willing to do this for long, in the end.

comment:9 in reply to:  8 Changed 6 years ago by iEFdev

Replying to kencu:

See <https://guide.macports.org/chunked/development.local-repositories.html>.

I have a collection of "pegged ports" for Lion (the last versions that worked on Lion) in a Local Repository that is set up for this.

Thanks! I'll have a look at it. I already have a couple of local Portfiles, but no pegged ones.

But that's really interesting - and poedit just cut off everyone "< 10.10" (see 1st comment). So, that's another pegged one.

comment:10 Changed 3 days ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:11 Changed 3 days ago by ctreleaven (Craig Treleaven)

Ryan, this ticket is still closed. Was that your intention?

Note: See TracTickets for help on using tickets.