Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library not loaded: @rpath/libffmpeg.dylib #464

Open
andrewhertog opened this issue Feb 17, 2025 · 1 comment
Open

Library not loaded: @rpath/libffmpeg.dylib #464

andrewhertog opened this issue Feb 17, 2025 · 1 comment
Labels
os: macOS issues related to the macOS operating system

Comments

@andrewhertog
Copy link

Bug Description:

Unable to run electron app on Mac M1

dyld[4251]: Library not loaded: @rpath/libffmpeg.dylib
  Referenced from: <4C4C44E1-5555-3144-A119-A11710D5D872> /Users/andrew.denhertog/Documents/Project
s/andrewhertog/codex-theia/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Fra
mework.framework/Versions/A/Electron Framework
  Reason: tried: '/Users/andrew.denhertog/Documents/Projects/andrewhertog/codex-theia/node_modules/
electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/li
bffmpeg.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or '
arm64')), '/Users/andrew.denhertog/Documents/Projects/andrewhertog/codex-theia/node_modules/electro
n/dist/Electron.app/Contents/Frameworks/libffmpeg.dylib' (no such file), '/Users/andrew.denhertog/D
ocuments/Projects/andrewhertog/codex-theia/node_modules/electron/dist/Electron.app/Contents/Framewo
rks/libffmpeg.dylib' (no such file)
/Users/andrew.denhertog/Documents/Projects/andrewhertog/codex-theia/node_modules/electron/dist/Elec
tron.app/Contents/MacOS/Electron exited with signal SIGABRT

Steps to Reproduce:

Any electron build i try to run from theia-ide throws the above issue on my mac book.
It seems like its an issue with the arch type not being picked up correctly.

Additional Information

  • Operating System: Darwin Andrews-MacBook-Pro.local 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:39:07 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6000 arm64
  • Theia Version: 1.57.104

I've also tried the yo theia-extension and ran into the same issues.
Also removed my yarn cache and theia cli cache several times from ${TMPDIR} in order to force a recompile of ffmpeg with no luck.

@rschnekenbu rschnekenbu added the os: macOS issues related to the macOS operating system label Feb 18, 2025
@JonasHelming
Copy link
Contributor

Thank you for the report. Just to be sure for the first error: What exactly do you you start and how? The packaged product or do you launch the electron app from the sources? if the second, could you paste all commands used?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: macOS issues related to the macOS operating system
Projects
None yet
Development

No branches or pull requests

3 participants