ONLYOFFICE / DesktopEditors

An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
https://www.onlyoffice.com
Other
2.93k stars 332 forks source link

Add ARM builds for Linux #270

Open ghost opened 5 years ago

ghost commented 5 years ago
pi@raspberrypi:~/Desktop/DesktopEditors/core/Common/3dParty $ ./make.sh
boost/
boost already downloaded
boost already extracted
/home/pi/Desktop/DesktopEditors/core/Common/3dParty/boost/boost_1_58_0/build/linux_32
cef/

--2019-10-24 11:11:59--  http://d2ettrnqo7v976.cloudfront.net/cef/3202/linux_32/cef_binary.7z
Resolviendo d2ettrnqo7v976.cloudfront.net (d2ettrnqo7v976.cloudfront.net)... 13.227.92.118, 13.227.92.11, 13.227.92.215, ...
Conectando con d2ettrnqo7v976.cloudfront.net (d2ettrnqo7v976.cloudfront.net)[13.227.92.118]:80... conectado.
Petición HTTP enviada, esperando respuesta... 404 Not Found
2019-10-24 11:11:59 ERROR 404: Not Found.

7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=es_AR.UTF-8,Utf16=on,HugeFiles=on,32 bits,4 CPUs LE)

Scanning the drive for archives:

ERROR: No more files
cef_binary.7z

System ERROR:
Error desconocido -2147024872
cp: no se puede efectuar `stat' sobre './cef_binary/Release/*': No existe el fichero o el directorio
cp: no se puede efectuar `stat' sobre './cef_binary/Resources/*': No existe el fichero o el directorio
chmod: no se puede acceder a 'build/locales': No existe el fichero o el directorio
build: OK!
cryptopp/
icu/

svn: E170011: Repository moved temporarily to 'http://site.icu-project.org/repository'
sed: no se puede leer ./icu/source/i18n/digitlst.cpp: No existe el fichero o el directorio
fetch.sh: línea 74: cd: ./icu/source/: No existe el fichero o el directorio
fetch.sh: línea 78: ./runConfigureICU: No existe el fichero o el directorio
make: *** No se especificó ningún objetivo y no se encontró ningún makefile.  Alto.
make: *** No hay ninguna regla para construir el objetivo 'install'.  Alto.
cp: no se puede efectuar `stat' sobre './icu/source/lib/libicudata.so.58.2': No existe el fichero o el directorio
cp: no se puede efectuar `stat' sobre './icu/source/lib/libicuuc.so.58.2': No existe el fichero o el directorio
ShockwaveNN commented 5 years ago

Related issue for DocumentServer https://github.com/ONLYOFFICE/DocumentServer/issues/152

jkumeboshi commented 4 years ago

There is some ARM CEF builds there, don't know it it can be used as is:

http://opensource.spotify.com/cefbuilds/index.html

Kabouik commented 2 years ago

Just posting to show support for this request. Is there any plan to provide ARM packages? M1 CPU are supported officially but they are far from being the only ARM CPUs, and many other ARM CPUs are powerful enough for full desktop WMs and Office needs.

The mobile applications surely support ARM already but desktop applications would be better and more OS-agnostic.

I have tried extracting the AppImage and running the binary with box64 but unfortunately this failed. First, it failed because it couldn't find libgdk-3.so.0 (it was on my system but box64 probably needs the amd64 version):

user@debian-sid ~/P/box64onlyoffice  $ box64 squashfs-root/usr/bin/./DesktopEditors
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL PageSize:4096
Box64 with Dynarec v0.1.7 fc3b931 built on Feb 24 2022 01:44:43
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 64 Env var
Looking for squashfs-root/usr/bin/./DesktopEditors
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/converter/libPdfReader.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/converter/libDjVuFile.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libhunspell.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libooxmlsignature.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/converter/libkernel.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/converter/libkernel_network.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libvideoplayer.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libascdocumentscore.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libqtascdocumentscore.so
Using native(wrapped) libX11.so.6
Error loading needed lib libgdk-3.so.0
Error loading one of needed lib
Error: loading needed libs in elf /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/DesktopEditors

I downloaded libgtk-3-0.deb for Debian Sid and amd64 architecture from https://packages.debian.org, extracted it with dpkg-deb -xv packagename.deb ., and moved the said lib to the AppImage-extracted squashfs/usr/bin/ folder. Then running box64 squashfs/usr/bin/./DesktopEditors went much further than previously, which gave me hope, but still no luck in the end:

user@debian-sid ~/P/box64onlyoffice  $ box64 squashfs-root/usr/bin/./DesktopEditors
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL PageSize:4096
Box64 with Dynarec v0.1.7 fc3b931 built on Feb 24 2022 01:44:43
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 64 Env var
Looking for squashfs-root/usr/bin/./DesktopEditors
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/converter/libPdfReader.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/converter/libDjVuFile.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libhunspell.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libooxmlsignature.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/converter/libkernel.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/converter/libkernel_network.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libvideoplayer.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libascdocumentscore.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libqtascdocumentscore.so
Using native(wrapped) libX11.so.6
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libgdk-3.so.0
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libQt5PrintSupport.so.5
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libQt5Svg.so.5
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libQt5Widgets.so.5
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libQt5X11Extras.so.5
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libQt5Gui.so.5
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libQt5Network.so.5
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libQt5Core.so.5
Using native(wrapped) libpthread.so.0
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) librt.so.1
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/converter/libgraphics.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/converter/libUnicodeConverter.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/converter/libHtmlRenderer.so
Using native(wrapped) libm.so.6
Using emulated /usr/lib/x86_64-linux-gnu/libstdc++.so.6
Using emulated /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/converter/libicuuc.so.58
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/converter/libicudata.so.58
Using native(wrapped) libdl.so.2
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/converter/libPdfWriter.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libQt5MultimediaWidgets.so.5
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libQt5Multimedia.so.5
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libQt5OpenGL.so.5
Using native(wrapped) libGL.so.1
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libicui18n.so.52
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libicuuc.so.52
Using native(wrapped) libglib-2.0.so.0
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libicudata.so.52
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/converter/libXpsFile.so
Using emulated /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/libcef.so
Error loading needed lib libgtk-3.so.0
Error loading one of needed lib
Error initializing needed lib libascdocumentscore.so
Error loading one of needed lib
Error: loading needed libs in elf /home/user/Projects/box64onlyoffice/squashfs-root/usr/bin/DesktopEditors

ARM devices are so widespread it would really be a great progress to have installers for this architecture, especially as Onlyoffice seems to have put some significant work into providing installers or packages for many OS (Windows, Linux, MacOS), distributions (several packages), and even distro-agnostic versions (Flatpak, Snap, AppImage), so it's a shame that those efforts to make Onlyoffice work on virtually any system (thanks for that) fall short when it comes to ARM devices.

ShockwaveNN commented 2 years ago

Is there any plan to provide ARM packages?

Yes there is a plan, but currently it's not a production ready

We'll notify as soon as it ready at https://github.com/ONLYOFFICE/DocumentServer/issues/152

And yes we understand that ARM is very popular right now, but we have not enough resources to support several architectures with our usually quality, so we need some time

Kabouik commented 2 years ago

Thanks, looking forward to it!

ShockwaveNN commented 2 years ago

So, we already release arm build of DocumentServer and they are working fine, but right now we have not build of DesktopEditors for Linux arm

I've created issue 58793 for our dev team to provide such builds

And I think we can make this a main issue to track user request for such builds

alfredonodo commented 1 year ago

Hi, do you have any news? Thank you

kde-yyds commented 1 year ago

is there any updates? i want to run onlyoffice in android chroot

Botspot commented 10 months ago

Interested in adding OnlyOffice to our Linux ARM app store. Any updates on building from source, or official ARM builkds?