telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
25.87k stars 5.13k forks source link

[Feature Request] Public release of TG desktop for Debian armhf (Raspbian) #1924

Closed ladycofb closed 2 years ago

ladycofb commented 8 years ago

Steps to reproduce

  1. Boot up a Raspberry Pi
  2. Go to https://desktop.telegram.org/
  3. Click "Show all platforms"

    Expected behaviour

There should be a link for 'Linux, raspberry pi' (or similar)

Actual behaviour

There isn't one!

Configuration

Operating system: Debian armhf and forks (e.g. Raspbian)

Version of Telegram Desktop: Any/All

Just a suggestion! I've not yet tried to compile Telegram desktop on my pi yet, I may go do that now!

jmaris commented 8 years ago

Agreed, it would be practical to have arm builds !

stek29 commented 8 years ago

Raspberry's arm (hard float) isn't even compatible with Debian HF arm... So, armhf-rpi, armhf-debian, armel? And so on?

ladycofb commented 8 years ago

So, my understanding is that the raspbian armhf packages are checked for contamination from armv7 features, as the Pi 1 series cores are ARMv6. But, a package compiled for ARMv6 with hf (raspbian) would live happily on an armhf (debian) system, because ARMv7 is fully compatible with v6 software. This is how a single build of Raspbian is running on ARMv6 (Pi), ARMv7 (Pi 2) and ARMv8 (Pi 3).

So an ARMv6 hf build would be sufficient for both raspbian and debian armhf. Correct?

(I'm not aware of any desktop-class arm boards that rely on an armel build - e.g. Soft float. So this could be skipped. Also, my point was to specifically target the Pi, as the 'popular' arm board.)

ladycofb commented 8 years ago

Sorry, touchscreen error! Didn't mean to close it.

samzanemesis commented 8 years ago

I would love to have a default static build for ARM (el or hf) available for download for my N9, Nvidia Shield & etc, compiling Telegram Desktop is an absolute hell

cringeops commented 7 years ago

My attempts to bring Telegram Desktop to ARM world took me a week at the moment. Without any success, of course. At first I tried to build Telegram directly on RPi3 running Raspbian Jessie and met undefined reference problem. After that I tried all these with Ubuntu 16.04 distro and ran out of memory. And after that I debootstraped Ubuntu 16.04 armhf on my 8 GB laptop running Debian Stretch... and ran out of goddamn memory again. I guess arm toolchain can't address more than 4 GB of RAM and it seems like there's no 64-bit version of the toolchain, so I can conclude that it's not possible to compile Telegram for ARM target machines. It is possible to cross-compile though, but it's gonna be a pain.

louwers commented 7 years ago

Any updates on this? Isn't cross-compiling quite straightforward?

cringeops commented 7 years ago

Well, I managed to compile it for RPi. Works fine.

Monery commented 7 years ago

Well, I managed to compile it for RPi. Works fine.

care to post a tutorial on how you have done this? Following the guide for compiling on the Pi itself always results in out of memory. I am sadly not smart enough to build a cross compilier...

cringeops commented 7 years ago

Erm, try to debootstrap armhf Ubuntu on your pc and chroot in it with qemu.

On 7 Feb 2017, at 10:49, Monery notifications@github.com wrote:

Well, I managed to compile it for RPi. Works fine.

care to post a tutorial on how you have done this? Following the guide for compiling on the Pi itself always results in out of memory. I am sadly not smart enough to build a cross compilier...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Monery commented 7 years ago

never tried to do this. I got some reading... thanks

louwers commented 7 years ago

After several hours of compiling for ARM v7, everything seemed fine until:

../../Telegram/SourceFiles/core/build_config.h:64:2:
error: #error Please add support for your architecture in core/build_config.h

Hmm...

@hemee: If what you say is true I suppose you had to edit build_config.h. What did you change it to?

cringeops commented 7 years ago

Yea, you gotta edit this build header to proceed further. Or just comment the hell out CPU selection section. Btw, you have to remove some -ftlo flags from telegram_linux.gypi, otherwise you will got out of memory problem. While make use -j4, and prepare yourself for 4 days of waiting.

On 13 Feb 2017, at 03:49, Bart notifications@github.com wrote:

After several hours of compiling for ARM v7, everything seemed fine until:

../../Telegram/SourceFiles/core/build_config.h:64:2: error: #error Please add support for your architecture in core/build_config.h Hmm...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

sergioad commented 7 years ago

How is the Raspberry Pi build going?

daom89 commented 7 years ago

Hello, is there any documentation to compile ??? Or is there any compiled that works ... ???

stek29 commented 7 years ago

@daom89 what prevents you from using normal linux docs? (after patching config.h ofc)

hosiet commented 7 years ago

FYI: https://packages.debian.org/sid/armhf/telegram-desktop/download

Unfortunately bunches of patches are needed to get it built correctly. Also note that this binary on Debian Sid is not suitable for Raspbian 8 (Jessie) (Yet source code patches might apply).

duckdodger commented 6 years ago

Any progress on this? I'm using an ARM Chromebook and would love to have Telegram Desktop on my Linux environment.

hosiet commented 6 years ago

Not sure about status of Raspbian, but at least on stock Debian there are already telegram-desktop builds for armel, armhf and arm64.

https://buildd.debian.org/status/package.php?p=telegram-desktop&suite=stretch-backports

duckdodger commented 6 years ago

Oh I see, yeah! I'm using Debian and it does work. I kinda assumed there was no ARM build anywhere after going through this issue. Thanks! :)

xor256 commented 6 years ago

I use orange pi nad vocore is possible to compile it for this machines?

ghost commented 5 years ago

Hey there!

We're automatically closing this issue since there was no activity in this issue since 362 days ago. We therefore assume that the user has lost interest or resolved the problem on their own. Closed issues that remain inactive for a long period may get automatically locked.

Don't worry though; if this is in error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

(Please note that this is an automated comment.)

sergioad commented 5 years ago

We are still interested and it is not fixed, thing is we were waiting for a response from the devs

stek29 commented 5 years ago

I thought there was build provided by distros.

sidneys commented 5 years ago

The following Bash script installs telegram-desktop 1.5.11 on the new Raspbian Buster.

Looking forward to your feedback.

# Install Dependencies
sudo apt install -y \
    'libasyncns0' \
    'libavcodec-dev' \
    'libavcodec-extra' \
    'libavcodec-extra58' \
    'libavcodec-extra58-dbgsym' \
    'libavformat-dev' \
    'libavformat58' \
    'libavformat58-dbgsym' \
    'libavutil-dev' \
    'libavutil56' \
    'libavutil56-dbgsym' \
    'libdouble-conversion1' \
    'libflac8' \
    'libgle3' \
    'libgle3-dev' \
    'libglee0d1' \
    'libglee0d1-dbg' \
    'libgles1' \
    'libgles2' \
    'libgles2-mesa' \
    'libgles2-mesa-dev' \
    'libglew-dev' \
    'libglew2.1' \
    'libglewmx1.13' \
    'libglu1-mesa' \
    'libjpeg8' \
    'libminizip1' \
    'libmng1' \
    'libopenal-data' \
    'libopenal1' \
    'libpcre16-3' \
    'libpulse0' \
    'libqt5core5a' \
    'libqt5dbus5' \
    'libqt5gui5' \
    'libqt5network5' \
    'libqt5svg5' \
    'libqt5widgets5' \
    'libsndfile1' \
    'libsndio-dev' \
    'libsndio7.0' \
    'libswscale-dev' \
    'libswscale5' \
    'libswscale5-dbgsym' \
    'libwebpdemux2' \
    'libxcb-icccm4' \
    'libxcb-keysyms1' \
    'libxcb-randr0' \
    'libxcb-render-util0' \
    'libxcb-xinerama0' \
    'libxcb-xkb1' \
    'libxkbcommon-x11-0' \
    'libxkbcommon0' \
    'libxxhash-dev' \
    'libxxhash0' \
    'mesa-utils' \
    'qt5-gtk-platformtheme' \
    'qt5-image-formats-plugins' \
    'qttranslations5-l10n'

# Download Telegram Components
wget \
    'http://ftp.us.debian.org/debian/pool/main/libt/libtgvoip/libtgvoip1.0_1.0~git20170704.445433f-4~bpo9+1_armhf.deb' \
    'http://ftp.us.debian.org/debian/pool/main/libt/libtgvoip/libtgvoip-dev_2.4.2-1_armhf.deb' \
    'http://ftp.us.debian.org/debian/pool/main/t/telegram-desktop/telegram-desktop_1.5.11-1_armhf.deb'

# Install Telegram Components
sudo dpkg -i \
    'libtgvoip1.0_1.0~git20170704.445433f-4~bpo9+1_armhf.deb' \
    'libtgvoip-dev_2.4.2-1_armhf.deb' \
    'telegram-desktop_1.5.11-1_armhf.deb'
BenPetersen12 commented 5 years ago

The following Bash script installs telegram-desktop 1.5.11 on the new Raspbian Buster.

Looking forward to your feedback.

Thanks! Works fine!

ghost commented 4 years ago

The following Bash script installs telegram-desktop 1.5.11 on the new Raspbian Buster.

Looking forward to your feedback.

It works great, thanks! Up to now my solution was installing it through snap, but the TG version was far too old. And the command line version will not compile for me under Raspbian Buster.

Will the client self-update as it does in other OS? Or is there a way to update your script to get the last version? There is now version 1.8.15. Would be enough to manually update the last two sections of your code?

john-preston commented 4 years ago

Now https://snapcraft.io/telegram-desktop has armhf and arm64 builds. Please check if they're OK.

schoentoon commented 4 years ago

Working fine for me on the pinebook pro running Ubuntu. But as snap is a rather Ubuntu technology it probably doesn't work as well on other distributions. Consider offering the plain (static) binary as well.

schoentoon commented 4 years ago

Scratch that, it still seems rather unstable for now. Instantly crashes when I open a chat with animated stickers for example, should I open a separate ticket for this?

Johnnynator commented 4 years ago

The sticker thingie is already reported. #6647

ilya-fedin commented 4 years ago

Consider offering the plain (static) binary as well.

Cross-compiling for ARMs is like a hell, i believe that this problem should be solved by having arm packages in distro repos (major distros already have tdesktop in their repos), just like with all other linux apps

black-puppydog commented 3 years ago

I know that mobian comes with the webapp pre-bundled (at least on my pinephone) but having a native build for mobile linux would be killer

image :point_up: this is what the desktop app looks like if I resize it to minimum allowed width. I think it would do perfectly fine on a phone screen. And I know from my touch-enabled laptop screen that it supports scrolling with the fingers already and such. Once it compiles it should really be quite good.

stale[bot] commented 3 years ago

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

schoentoon commented 3 years ago

I wouldn't say this issue is fixed yet. Commenting purely so it doesn't get closed by the stale bot..

ilya-fedin commented 3 years ago

I wouldn't say this issue is fixed yet.

Just use flatpak/snap/distro package, like you're doing with other applications

ilya-fedin commented 2 years ago

Flatpak/snap builds were there for quite a long time and snap has armhf build like requested in the title, so I think it's the time to close the issue. @Aokromes can you do that?