Code Monkey home page Code Monkey logo

chatterbox's Introduction

# Chatterbox

Cross Platform chatPi client in QT5

chatterbox's People

Watchers

 avatar  avatar

chatterbox's Issues

Generate AppImage bundle using linuxdeployqt

Hi, since you asked in the AppImageKit gitter channel, I tried to bundle this app as an AppImage as follows.

sudo apt-get -y install git g++ libgl1-mesa-dev

# Use an old system to build on (e.g., debian oldstable, Ubuntu trusty or older
# for compatibility with less-than-most-recent target systems.
# Build your application, e.g., in Qt Creator. I used the Qt Creator AppImage.
# Close the application so that it is no longer running before you continue.

# This is where my Qt is, yours might be somewhere else. Set it accordingly
QT_LOCATION=/tmp/.mount_QtCreator-5.7.0-x86_64/5.7/gcc_64/

# Get the linuxdeployqt tool which can bundle Qt with the application and make an AppImage
wget -c https://github.com/probonopd/linuxdeployqt/releases/download/1/linuxdeployqt-1-x86_64.AppImage
chmod a+x linuxdeployqt-1-x86_64.AppImage

# Add the .desktop file and icon (use your own paths instead!)
cp '/home/me/Downloads/chatterbox-master/res/icon.png' '/home/me/Downloads/build-chatterbox-Desktop_Qt_5_7_0_GCC_64bit-Debug/chatterbox.png'
cat > /home/me/Downloads/build-chatterbox-Desktop_Qt_5_7_0_GCC_64bit-Debug/chatterbox.desktop <<\EOF 
[Desktop Entry]
Type=Application
Name=Chatterbox
Exec=AppRun %F
Icon=chatterbox
Comment=Chat application
Terminal=false
EOF

#  Bundle Qt with the application
QT_PLUGIN_PATH=$QT_LOCATION/plugins LD_LIBRARY_PATH=$QT_LOCATION/lib ./linuxdeployqt-1-x86_64.AppImage /home/me/Downloads/build-chatterbox-Desktop_Qt_5_7_0_GCC_64bit-Debug/chatterbox

# Check that all Qt libraries are now used from the bundled lib/ directory

I notice that your app also has some non-standard libraries like libgst*, libFLAC.so.8, libvorbisenc.so.2 and possibly others which cannot be expected to be present on every target system. So you might want to bundle (= copy them to the lib/ directory) these, too.

# Finally, generate the AppImage
./linuxdeployqt-1-x86_64.AppImage /home/me/Downloads/build-chatterbox-Desktop_Qt_5_7_0_GCC_64bit-Debug/chatterbox -appimage

Next to the build-chatterbox-Desktop_Qt_5_7_0_GCC_64bit-Debug directory you should now have build-chatterbox-Desktop_Qt_5_7_0_GCC_64bit-Debug.AppImage; test it on as many different distributions as you can!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.