-
Notifications
You must be signed in to change notification settings - Fork 2
Linux Installer.[CPP-325] #233
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add libxcb-xinerama0
as a dependency of the package, on fresh Ubuntu install the following error occurs:
$ /opt/swift-navigation-console/console
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
Aborted (core dumped)
Worked well for me on Ubuntu 20.04! (but I guess I probably already have all the dependencies installed). Very cool that it's available through the "activities" app launcher. The desktop icon worked well too, after I followed all these instructions: https://itsfoss.com/ubuntu-desktop-shortcut/ . Didn't realise it was so difficult to make a desktop icon show up in GNOME.. |
Makefile.toml
Outdated
mkdir -p $TMP_DIR/$USR_DIR/$ICONS_DIR | ||
cp -r installers/Linux/hicolor/* $TMP_DIR/$USR_DIR/$ICONS_DIR | ||
fpm -t deb -s dir -v $(cat console_backend/src/version.txt) --debug --verbose -C $TMP_DIR -f -n $APP_DIR_NAME $OPT_DIR $USR_DIR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW I think we can fix the problem with the missing libxcb-xinerama0
package by just adding as a dependency of our package with --depends
(see docs here https://fpm.readthedocs.io/en/latest/cli-reference.html) e.g.
fpm -t deb -s dir -v $(cat console_backend/src/version.txt) --debug --verbose -C $TMP_DIR -f -n $APP_DIR_NAME $OPT_DIR $USR_DIR | |
fpm --depends libxcb-xinerama0 -t deb -s dir -v $(cat console_backend/src/version.txt) --debug --verbose -C $TMP_DIR -f -n $APP_DIR_NAME $OPT_DIR $USR_DIR |
This will cause the package to get installed as a dependency of our package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works perfectly. I was trying to statically link but this seems much more reasonable.
./target/installer
which is later wrapped into the .deb./opt/swift-navigation-console/console
, not sure if we should keep it in /opt but this is what FBS was doing./usr/share/applications
/usr/share/icons/hicolor/<respective sizes>
The final installer is moved into
./installers/Linux/
to match the Windows installer final location.