[vlc-commits] [Git][videolan/vlc][master] build: fix --enable-shared vout linking error on iOS

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sat Sep 30 11:23:36 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
87b88369 by Martin Finkel at 2023-09-30T10:33:52+00:00
build: fix --enable-shared vout linking error on iOS

Fixes Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_NSNumber", referenced from:
      objc-class-ref in libsamplebufferdisplay_plugin_la-VLCSampleBufferDisplay.o

- - - - -


2 changed files:

- modules/video_output/Makefile.am
- modules/video_output/apple/meson.build


Changes:

=====================================
modules/video_output/Makefile.am
=====================================
@@ -82,7 +82,7 @@ libsamplebufferdisplay_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)' \
 	-Wl,-framework,AVFoundation,-framework,AVKit,-framework,Cocoa,-framework,CoreMedia,-framework,QuartzCore,-framework,CoreGraphics,-framework,CoreVideo
 else
 libsamplebufferdisplay_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)' \
-	-Wl,-framework,AVFoundation,-framework,AVKit,-framework,UIKit,-framework,CoreMedia,-framework,QuartzCore,-framework,CoreGraphics,-framework,CoreVideo
+	-Wl,-framework,AVFoundation,-framework,Foundation,-framework,AVKit,-framework,UIKit,-framework,CoreMedia,-framework,QuartzCore,-framework,CoreGraphics,-framework,CoreVideo
 endif
 vout_LTLIBRARIES += libsamplebufferdisplay_plugin.la
 endif


=====================================
modules/video_output/apple/meson.build
=====================================
@@ -34,7 +34,7 @@ vlc_modules += {
         '../../codec/vt_utils.h'
     ),
     'objc_args' : ['-fobjc-arc'],
-    'dependencies' : [avfoundation_dep, avkit_dep, uifwk_dep, coremedia_dep, quartz_dep, corevideo_dep, coregraphics_dep],
+    'dependencies' : [avfoundation_dep, foundation_dep, avkit_dep, uifwk_dep, coremedia_dep, quartz_dep, corevideo_dep, coregraphics_dep],
 }
 
 if have_ios or have_tvos



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/87b88369c3144a580c494c26c9be879bcb3d8153

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/87b88369c3144a580c494c26c9be879bcb3d8153
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list