[vlc-devel] [PATCH 1/2] video_output: Makefile.am: fix link for interop_cvpx on ios
Jean-Baptiste Kempf
jb at videolan.org
Mon May 4 11:49:18 CEST 2020
On Mon, May 4, 2020, at 11:44, Alexandre Janniaux wrote:
> There were no LDFLAGS for iOS/tvOS and vt_utils were not compiled but
> linking worked because videotoolbox was linked in the final static
> library archive.
> ---
> modules/video_output/Makefile.am | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/modules/video_output/Makefile.am b/modules/video_output/Makefile.am
> index c82e9a0ed71..4fd34f2737d 100644
> --- a/modules/video_output/Makefile.am
> +++ b/modules/video_output/Makefile.am
> @@ -41,7 +41,9 @@ endif
>
> libglinterop_cvpx_plugin_la_SOURCES = video_output/opengl/interop_cvpx.c \
> video_output/opengl/interop.h
> -libglinterop_cvpx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
> +libglinterop_cvpx_plugin_la_SOURCES += codec/vt_utils.c codec/vt_utils.h
> +libglinterop_cvpx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)' \
> + -Wl,-framework,Foundation,-framework,CoreVideo
>
> if HAVE_OSX
> libvout_macosx_plugin_la_SOURCES = video_output/macosx.m
> $(OPENGL_COMMONSOURCES)
> @@ -56,9 +58,7 @@ libcaopengllayer_plugin_la_LIBADD =
> $(OPENGL_COMMONLIBS)
> libcaopengllayer_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
> \
> -Wl,-framework,OpenGL,-framework,Cocoa,-framework,QuartzCore
>
> -libglinterop_cvpx_plugin_la_SOURCES += codec/vt_utils.c
> codec/vt_utils.h
> -libglinterop_cvpx_plugin_la_LDFLAGS += -Wl,-framework,IOSurface \
> - -Wl,-framework,Foundation,-framework,CoreVideo,-framework,OpenGL
> +libglinterop_cvpx_plugin_la_LDFLAGS +=
> -Wl,-framework,IOSurface,-framework,OpenGL
> vout_LTLIBRARIES += libvout_macosx_plugin.la
I am surprised that you can remove IOSurface and Foundation on macOS
--
Jean-Baptiste Kempf - President
+33 672 704 734
More information about the vlc-devel
mailing list