You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow the code of conduct that this project uses.
I have searched the issue tracker for a bug that matches the one I want to file, without success.
Electron Forge version
6.2.1
Electron version
v25.2.0
Operating system
Windows 10 WSL with Ubuntu 22.04.2
Last known working Electron Forge version
None
Expected behavior
Successfully run ./out/<name>-linux-64 file from npm run package.
Actual behavior
Getting ./out/window-linux-x64/window: error while loading shared libraries: libffmpeg.so: cannot open shared object file: No such file or directory when running the following:
./out/window-linux-x64/window
Steps to reproduce
Running with Node 18.16.1, and NPM 9.5.1:
# Use electron-webpack-typescript template
npm install
# Install packages for X Server
apt update
apt install libgconf-2-4 libatk1.0-0 libatk-bridge2.0-0 \
libgdk-pixbuf2.0-0 libgtk-3-0 libgbm-dev libnss3-dev libxss-dev libasound2 \
x11-xserver-utils
# Setup busexport DISPLAY=$(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}'):0.0
xhost +
service dbus start
export XDG_RUNTIME_DIR=/run/user/$(id -u)if [ -d"$XDG_RUNTIME_DIR" ];thenecho"$XDG_RUNTIME_DIR already exists."else
mkdir $XDG_RUNTIME_DIRfi
chmod 700 $XDG_RUNTIME_DIR
chown $(id -un):$(id -gn) -R $XDG_RUNTIME_DIRexport DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus
dbus-daemon --session --address=$DBUS_SESSION_BUS_ADDRESS --nofork --nopidfile --syslog-only &# Have VcsXsrv, a WSL X Server, running
apt install rpm --yes
npm run package
# Switch to a non-root user to avoid getting Running as root without -no-sandbox is not supported error
chmod -R 777 ./out/
sudo adduser guest
su guest
./out/window-linux-x64/window
Additional information
I have tried to install the following:
apt install chromium-codecs-ffmpeg ffmpeg
But no luck. I get usr/bin/ffmpeg when I run which ffmpeg, and I am sure libffmpeg.so is under my bundled app folder. The following is what I get when I run ls -al ./out/window-linux-x64:
Pre-flight checklist
Electron Forge version
6.2.1
Electron version
v25.2.0
Operating system
Windows 10 WSL with Ubuntu 22.04.2
Last known working Electron Forge version
None
Expected behavior
Successfully run
./out/<name>-linux-64
file fromnpm run package
.Actual behavior
Getting
./out/window-linux-x64/window: error while loading shared libraries: libffmpeg.so: cannot open shared object file: No such file or directory
when running the following:Steps to reproduce
Running with Node
18.16.1
, and NPM9.5.1
:Additional information
I have tried to install the following:
But no luck. I get
usr/bin/ffmpeg
when I runwhich ffmpeg
, and I am surelibffmpeg.so
is under my bundled app folder. The following is what I get when I runls -al ./out/window-linux-x64
:window
is the executable. I define the name inforge.config.ts
:My
package.json
:The text was updated successfully, but these errors were encountered: