Code: Select all
import UIKit/UIKit.h
Code: Select all
lipo -create Debug-appletvos/libTVVLCKit.a Debug-appletvsimulator/libTVVLCKit.a -o libTVVLCKit.a
Code: Select all
#import "VLCMedia.h"
#import "VLCMediaDiscoverer.h"
#import "VLCMediaList.h"
#import "VLCMediaPlayer.h"
#import "VLCMediaListPlayer.h"
#import "VLCMediaThumbnailer.h"
#import "VLCTime.h"
Code: Select all
ld: library not found for -lTVVLCKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
at 2nd and 3rd step have generated lots of warnings, but at the end it has been compiled.I did the following
1. downloaded zip file
2.3.Code: Select all
./buildMobileVLCKit.sh -t
4. Opened MobileVLCKit.xcodeproj in Xcode, switched to TVVLCKit and built successfully for device.Code: Select all
./buildMobileVLCKit.sh -t -s
5. built successfully for device simulator
6. Open terminal, go to the folder where Xcode produced libTVVLCKit.a file (for me /Users/xxxxx/Library/Developer/Xcode/DerivedData/MobileVLCKit-cajvscpvucjubqcjljaxxzklzcas/Build/Products/)
7. Run the following to have a static lib for tv and simu8. Add the new libTVVLCKit.a to your projectCode: Select all
lipo -create Debug-appletvos/libTVVLCKit.a Debug-appletvsimulator/libTVVLCKit.a -o libTVVLCKit.a
Code: Select all
#import "ViewController.h"
#import <TVVLCKit/TVVLCKit.h>
@interface ViewController () <VLCMediaPlayerDelegate> {
VLCMediaPlayer *_mediaplayer;
}
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
_mediaplayer = [[VLCMediaPlayer alloc] init];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
Code: Select all
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_VLCMedia", referenced from:
type metadata accessor for __ObjC.VLCMedia in ChannelViewController.o
"_OBJC_CLASS_$_VLCMediaPlayer", referenced from:
type metadata accessor for __ObjC.VLCMediaPlayer in ChannelViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have tried both. Same error.@lks... are you compiling for simulator?
@lks can you describe all the steps you did?
@vtec63
I have this, and you?
Code: Select all
[info] Preparing build dirs
First, rewinding head to replay your work on top of it...
Applying: arm_neon: added function macro to handle the underscore prefix for the iOS ARM ABI
Applying: deinterlace/merge: use a macro to fix compilation for iOS
Applying: libass: fix text rendering on iOS by providing a font lookup mechanism for the font shipped with Aspen
Applying: lib/media player: inherit deinterlace variable to achieve correct value on first use
Applying: arm_neon: work-around libtool issue
Applying: libvlc/media: re-parse if flags changed
Applying: arm_neon: fix iOS linking
Applying: disable neon volume plugin
Applying: contrib/gcrypt: work-around a libtool limitation
Applying: src/misc: fix compilation for OS without fork()
Applying: libvlc: hack to disable daemon mode
Applying: contrib/gcrypt: fix tvOS compilation
Applying: freetype: added a fake font lookup mechanism for iOS to use the packaged demo fonts
Applying: libvlc: add preliminary code path to modify quartztext variables on-the-fly
HEAD is now at 949032d tls: make vlc_tls_ClientSessionCreate() cancellation-safe
Applying: arm_neon: added function macro to handle the underscore prefix for the iOS ARM ABI
/Volumes/USB SSD/VLC/VLCKit/MobileVLCKit/ImportedSources/vlc/.git/rebase-apply/patch:60: new blank line at EOF.
+
warning: 1 line adds whitespace errors.
Applying: deinterlace/merge: use a macro to fix compilation for iOS
Applying: libass: fix text rendering on iOS by providing a font lookup mechanism for the font shipped with Aspen
Applying: lib/media player: inherit deinterlace variable to achieve correct value on first use
Applying: arm_neon: work-around libtool issue
Applying: libvlc/media: re-parse if flags changed
Applying: arm_neon: fix iOS linking
Applying: disable neon volume plugin
Applying: contrib/gcrypt: work-around a libtool limitation
/Volumes/USB SSD/VLC/VLCKit/MobileVLCKit/ImportedSources/vlc/.git/rebase-apply/patch:29: trailing whitespace.
/Volumes/USB SSD/VLC/VLCKit/MobileVLCKit/ImportedSources/vlc/.git/rebase-apply/patch:31: trailing whitespace.
/Volumes/USB SSD/VLC/VLCKit/MobileVLCKit/ImportedSources/vlc/.git/rebase-apply/patch:35: trailing whitespace.
/Volumes/USB SSD/VLC/VLCKit/MobileVLCKit/ImportedSources/vlc/.git/rebase-apply/patch:41: trailing whitespace.
/Volumes/USB SSD/VLC/VLCKit/MobileVLCKit/ImportedSources/vlc/.git/rebase-apply/patch:49: trailing whitespace.
warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.
Applying: src/misc: fix compilation for OS without fork()
Applying: libvlc: hack to disable daemon mode
Applying: contrib/gcrypt: fix tvOS compilation
Applying: freetype: added a fake font lookup mechanism for iOS to use the packaged demo fonts
/Volumes/USB SSD/VLC/VLCKit/MobileVLCKit/ImportedSources/vlc/.git/rebase-apply/patch:37: trailing whitespace.
fileURL = CFBundleCopyResourceURL(CFBundleGetMainBundle(),
warning: 1 line adds whitespace errors.
Applying: libvlc: add preliminary code path to modify quartztext variables on-the-fly
[info] Building vlc
[info] Building libvlc for Apple embedded OS style 'AppleTV'
[info] Using aarch64 with SDK version 9.0
usage: dirname path
SDKROOT not specified, assuming /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS9.0.sdk
[info] Building tools
./build.sh: line 38: pushd: //extras/tools: No such file or directory
they should come from building script
Code: Select all
[info] ...vlc_entry__adpcm
[info] ...vlc_entry__adjust
[info] ...vlc_entry__adaptative
[info] ...vlc_entry__file
[info] ...vlc_entry__access_mms
[info] ...vlc_entry__concat
[info] ...vlc_entry__a52
[info] all done
Code: Select all
https://mega.nz/#!7MgAWb6Y!fzjEUMKe6NQfBhGHJaJt4wh6Acw-OSnVQ-aIfCExEXg
Code: Select all
#import "UIKit/UIKit.h"
Return to “VLC for iOS, iPadOS and Apple TV”
Users browsing this forum: No registered users and 15 guests