Comments (3)
libsharpyuv is not packaged properly, but its links are set properly as if it is. moving it into place gets past the issue.
librubberband and libleptonica have dependencies links that start with @loader_path/../../../../opt
these need to be changed to $(homebrew --prefix)
well test this evening and see if there are any other isues.
from jellyfin-media-player.
modifying fix-install-names.py like this fixes it, but I'm not sure if its reasonable to pull this in or not. perhaps this is just a temporary packaging bug upstream. will just wait and see
from pathlib import Path
import sys
import argparse
from collections import deque
import subprocess
import shutil
def main(argv=tuple(sys.argv[1:])):
arg_parser = argparse.ArgumentParser(description='Fix third party library paths in .app bundles.')
arg_parser.add_argument('bundle', metavar='BUNDLE', type=str, nargs=1)
arguments = arg_parser.parse_args(argv)
bundle_path = Path(arguments.bundle[0])
framework_path = bundle_path / 'Contents' / 'Frameworks'
framework_libs = set(file.name for file in framework_path.glob('*.dylib')).union(set(file.name for file in framework_path.glob('*.so')))
libs_to_fix = deque()
libs_to_fix.extend(file for file in bundle_path.glob('**/*.dylib'))
libs_to_fix.extend(file for file in bundle_path.glob('**/*.so'))
while libs_to_fix:
lib = libs_to_fix.popleft()
print(lib)
# find the dependencies of the library
result = subprocess.check_output(['otool', '-L', str(lib.resolve())], stderr=subprocess.STDOUT).decode('utf-8')
print(f"\t{result}")
for dependency in result.splitlines():
dependency = dependency.strip().lstrip()
if dependency.startswith('/usr/local'):
# cut off trailing compatibility string
dependency = Path(dependency.split(' (compatibility')[0])
# if somehow macdeployqt didn't copy the lib for us, we do a manual copy
if dependency.name not in framework_libs:
shutil.copy(str(dependency.resolve()), str(framework_path.resolve()))
framework_libs.add(dependency.name)
# add the newly added library in to the to fix queue
libs_to_fix.append(framework_path / dependency.name)
print((framework_path / dependency.name).resolve())
print(f'Copied {dependency} to {framework_path / dependency.name}')
# now we fix the path using install_name_tool
target = f'@executable_path/../Frameworks/{dependency.name}'
print(f'Fixing dependency {dependency} of {lib} to {target}')
subprocess.run(['install_name_tool', '-id', target, lib])
subprocess.run(['install_name_tool', '-change', str(dependency), target, lib])
# Issue 536
token = '@loader_path/../../../../'
if dependency.startswith(token):
dependency = Path(dependency.split(' (compatibility')[0])
subPath = str(dependency).replace('@loader_path/../../../../', '')
actual_path = Path('/opt/homebrew')/subPath
shutil.copy(actual_path, framework_path.resolve())
framework_libs.add(dependency.name)
# add the newly added library in to the to fix queue
libs_to_fix.append(framework_path / dependency.name)
print((framework_path / dependency.name).resolve())
print(f'Copied {dependency} to {framework_path / dependency.name}')
target = f'@executable_path/../Frameworks/{dependency.name}'
print(f'Fixing dependency {dependency} of {lib} to {target}')
subprocess.run(['install_name_tool', '-id', target, lib])
subprocess.run(['install_name_tool', '-change', str(dependency), target, lib])
# /Issue 536
if __name__ == '__main__':
main()
from jellyfin-media-player.
this is not limited to qt6, the above script needs to be modified to account for both 5 and 6.
from jellyfin-media-player.
Related Issues (20)
- [Bug] Subtitles format bugged when loaded automatically HOT 18
- Fullscreen icon shows at the wrong location on certain sizes
- Content is not loading after Updating to version 1.10.0 HOT 3
- Resuming play end up opening some other episode
- When switching to a second server, the content of the switched to server is only shown after a refresh HOT 2
- App launcher on Linux opens a new icon HOT 1
- Playback failed with error "loading failed" Retry with transcode? HOT 1
- WebVTT subtitles display is broken HOT 1
- JMP 1.10.1 issues
- JMP trying to acess server at localhost instead of actual domain
- Windows 10 - Fullscreen mode still shows taskbar
- Disregard
- Icons and movies don't show up on mac HOT 3
- Fresh install of Jellyfin media player 1.10.1 creates multiple appdata folders HOT 1
- Chapter markers flickering during play. HOT 2
- A certain image, when you try to upload as a poster, blacks the client out and makes it unresponsive
- Playback freeze on some mkv formats leading to logout after freeze,
- [Audio] Sound/volume are lower since update 10.10.0 HOT 2
- Windows: Moving window out of displayable boundary results in freezing
- Can't install JFMP 1.10.1 on Windows HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jellyfin-media-player.