After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 722590 - applemedia: Fails to build on iOS: 'VideoToolbox/VideoToolbox.h' file not found
applemedia: Fails to build on iOS: 'VideoToolbox/VideoToolbox.h' file not found
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Mac OS
: Normal normal
: 1.3.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-01-20 09:18 UTC by Arjen Veenhuizen
Modified: 2014-01-20 12:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Arjen Veenhuizen 2014-01-20 09:18:22 UTC
gst-plugins-bad-1.0 fails when compiling from git master for iOs (using xcode 5, target = iOs7 armv7).

Relevant log:
I/Users/arjenveenhuizen/cerbero/dist/ios_armv7/lib/glib-2.0/include -fobjc-abi-version=2 -fobjc-legacy-dispatch -arch armv7 -mcpu=cortex-a8 -pipe -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -miphoneos-version-min=5.1 -Wall -g -Os -Wno-error=format-nonliteral -MT libgstapplemedia_la-plugin.lo -MD -MP -MF .deps/libgstapplemedia_la-plugin.Tpo -c plugin.m  -fno-common -DPIC -o .libs/libgstapplemedia_la-plugin.o
In file included from plugin.m:35:
./vtdec.h:27:10: fatal error: 'VideoToolbox/VideoToolbox.h' file not found
#include <VideoToolbox/VideoToolbox.h>
         ^
1 error generated.
make[3]: *** [libgstapplemedia_la-plugin.lo] Error 1
make[2]: *** [applemedia] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Running command 'make'

Full log: http://pastebin.com/6EZ7Tw8j

Steps to reproduce:
$ cerbero wipe
$ git clone  http://cgit.freedesktop.org/gstreamer/cerbero/
$ cerbero -c config/cross-ios-arm7.cbc bootstrap
$ cerbero -c config/cross-ios-arm7.cbc package gstreamer-1.0

Compiler log: http://pastebin.com/6EZ7Tw8j

Refer to this thread as well: http://gstreamer-devel.966125.n4.nabble.com/1-2-iOs-avfvideosrc-available-tt4664725.html
Comment 1 Sebastian Dröge (slomo) 2014-01-20 09:37:11 UTC
Are you building the master or 1.2 branch of cerbero?

This probably fixes it on master, please confirm. You need to

cerbero -c config/cross-ios-arm7.cbc buildone gst-plugins-bad-1.0


commit 1107e158f78741f03a98feff14ea1e20a0ddbdde
Author: Sebastian Dröge <sebastian@centricular.com>
Date:   Mon Jan 20 10:34:57 2014 +0100

    applemedia: Fix build on iOS and probably also on OSX
    
    The video toolbox is not available on iOS, and also on OSX
    we should probably build all source files that are used for
    it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722590
Comment 2 Arjen Veenhuizen 2014-01-20 12:18:05 UTC
Used the latest master of Cerbero.

$ cerbero -c config/cross-ios-arm7.cbc buildone gst-plugins-bad-1.0

This indeed did the trick! Compiling went ok. Thanks for the fix. Appreciated.