aki237 / chatterbox Goto Github PK
View Code? Open in Web Editor NEWchatPi client (cross platform)
chatPi client (cross platform)
# Chatterbox Cross Platform chatPi client in QT5
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.