Re[2]: Building LO from source
Thanks Eike and Christian, I managed to solve all my problems thanks to you. You all were of great help. I appreciate it. Kind Regards -- Original Message -- From: "Eike Rathke" To: "Christian Lohmaier" Cc: "Ismet Bahadir" ; "libreoffice-dev" Sent: 24-Jun-20 7:27:56 PM Subject: Re: Building LO from source Hi, On Wednesday, 2020-06-24 11:13:32 +0200, Christian Lohmaier wrote: On Mon, Jun 22, 2020 at 2:36 PM Ismet Bahadir wrote: > 2) The print option default is Letter. How can I make it A4 for all apps? Couldn't find the option under settings. That should depend on the locale of your OS/what the document is using as page format. On Linux it actually depends on what paperconf says, man papersize man paperconf Eike -- GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Re[2]: Building LO from source
Am 15. Juni 2020 07:35:58 MESZ schrieb Ismet Bahadir : >Hi Rene, > >Thanks for the reply. I deleted the Debian and CentOS virtual machine, >so I cannot re-check. My current system is: > >1) test@test-virtual-machine:~/libreoffice$ cat /etc/os-release >NAME="Ubuntu" >VERSION="18.04.4 LTS (Bionic Beaver)" >ID=ubuntu >ID_LIKE=debian >PRETTY_NAME="Ubuntu 18.04.4 LTS" >VERSION_ID="18.04" >HOME_URL="https://www.ubuntu.com/; >SUPPORT_URL="https://help.ubuntu.com/; >BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/; >PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy; >VERSION_CODENAME=bionic >UBUNTU_CODENAME=bionic > >I could install dependent packages: > >2) test@test-virtual-machine:~/libreoffice$ sudo apt-get build-dep >libreoffice >Reading package lists... Done >Reading package lists... Done >Building dependency tree >Reading state information... Done >The following packages were automatically installed and are no longer >required: > gir1.2-geocodeglib-1.0 libwayland-egl1-mesa ubuntu-web-launchers >Use 'sudo apt autoremove' to remove them. >0 upgraded, 0 newly installed, 0 to remove > >3) Then, I had to install fakeroot and qt5-default (autogen failed) > >4) But I'm facing this error now: > > configure: error: KF5 headers not found. Please specify the root of >your KF5 installation by exporting KF5DIR before running "configure". > >Any suggestions to fix this? > >Regards > >-- Original Message -- >From: "Rene Engelhard" >To: "Ismet Bahadir" ; "Muhammet Kara" > >Cc: "libreoffice-dev" >Sent: 14-Jun-20 5:28:47 PM >Subject: Re: Building LO from source > >>Hi, >> >>Am 14.06.20 um 10:06 schrieb Ismet Bahadir: >>> The "build-deb libreoffice" command also fails on my Debian-10 >>> virtual machine. It says "the system requires javahelper" but can't >>> find and install javahelper >>> >>If at all, "build-dep". >> >>And: >> >>javahelper | 0.72.9| stable | all >> >>so it's available, of course. Whatever you do, you do it wrong: >> >># apt build-dep libreoffice >>Reading package lists... Done >>Reading package lists... Done >>Building dependency tree... Done >>[...] >>0 upgraded, 1138 newly installed, 0 to remove and 0 not upgraded. >>Need to get 868 MB of archives. >>After this operation, 2987 MB of additional disk space will be used. >>Do you want to continue? [Y/n] >> >># >> >>> > Except from the (accidental?) double paste, I see repeating >params >>> like '*--disable-gstreamer*' at 2 different places. And I would >make >>> sure I really need all the '--without-*' and "--disable-*" params. >>> Some might impact certain functionalities/features or extensions. >>> >>> TBH, I don't know what those parameters are and do. >> >>Sigh. >> >>> Those double pastes were accidental, yes. Actually those >>> parameters were taken from a web site (don't remember now). It was >>> arguing to create an autogen.input file and put these lines in the >>> file but there were no explanations. >>> >>> Is it best to install with all those parameters? What I need to do >is >>> simple: >>[...] >>> 3) I want to be able to install an extension in Calc >> >>And if it's a Java extension, *of course* using --without-java (as you >>did) makes no sense. >> >>Regards, >> >> >>Rene >> >> Hi, Obviously you want to install the kde 5 stuff. If You base on a old Ubuntu only shipping kde4 and thus not having the appropriate build-deps... apt build-dep is not magic it takes the distro source package as a base and install *their* build-dependencies which in your case apparently did not include kde5. (Or disable it.) Sorry, that is simple basics. Regards Rene -- Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice
Re[2]: Building LO from source
Hi Rene, Thanks for the reply. I deleted the Debian and CentOS virtual machine, so I cannot re-check. My current system is: 1) test@test-virtual-machine:~/libreoffice$ cat /etc/os-release NAME="Ubuntu" VERSION="18.04.4 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.4 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/; SUPPORT_URL="https://help.ubuntu.com/; BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/; PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy; VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic I could install dependent packages: 2) test@test-virtual-machine:~/libreoffice$ sudo apt-get build-dep libreoffice Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: gir1.2-geocodeglib-1.0 libwayland-egl1-mesa ubuntu-web-launchers Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove 3) Then, I had to install fakeroot and qt5-default (autogen failed) 4) But I'm facing this error now: configure: error: KF5 headers not found. Please specify the root of your KF5 installation by exporting KF5DIR before running "configure". Any suggestions to fix this? Regards -- Original Message -- From: "Rene Engelhard" To: "Ismet Bahadir" ; "Muhammet Kara" Cc: "libreoffice-dev" Sent: 14-Jun-20 5:28:47 PM Subject: Re: Building LO from source Hi, Am 14.06.20 um 10:06 schrieb Ismet Bahadir: The "build-deb libreoffice" command also fails on my Debian-10 virtual machine. It says "the system requires javahelper" but can't find and install javahelper If at all, "build-dep". And: javahelper | 0.72.9| stable | all so it's available, of course. Whatever you do, you do it wrong: # apt build-dep libreoffice Reading package lists... Done Reading package lists... Done Building dependency tree... Done [...] 0 upgraded, 1138 newly installed, 0 to remove and 0 not upgraded. Need to get 868 MB of archives. After this operation, 2987 MB of additional disk space will be used. Do you want to continue? [Y/n] # > Except from the (accidental?) double paste, I see repeating params like '*--disable-gstreamer*' at 2 different places. And I would make sure I really need all the '--without-*' and "--disable-*" params. Some might impact certain functionalities/features or extensions. TBH, I don't know what those parameters are and do. Sigh. Those double pastes were accidental, yes. Actually those parameters were taken from a web site (don't remember now). It was arguing to create an autogen.input file and put these lines in the file but there were no explanations. Is it best to install with all those parameters? What I need to do is simple: [...] 3) I want to be able to install an extension in Calc And if it's a Java extension, *of course* using --without-java (as you did) makes no sense. Regards, Rene ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice
Re[2]: Building LO from source
Thank you everyone, Sorry for the spam e-mails. I'm trying to get a hold of this. As you suggested, I installed a new CentOS. This is the os-release result: NAME="CentOS Linux" VERSION="8 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="8" PLATFORM_ID="platform:el8" PRETTY_NAME="CentOS Linux 8 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:8" HOME_URL="https://www.centos.org/; BUG_REPORT_URL="https://bugs.centos.org/; CENTOS_MANTISBT_PROJECT="CentOS-8" CENTOS_MANTISBT_PROJECT_VERSION="8" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="8" However, this command fails: "dnf builddep libreoffice" Is it OK to use Ubuntu? I was able to install all dependencies under Ubuntu. BTW, this is the autogen.sh command I want to use. Is there any oddity? ./autogen.sh --with-distro=LibreOfficeLinux --with-package-format=deb --enable-epm --without-java --disable-postgresql-sdbc --disable-gstreamer --without-java --disable-postgresql-sdbc --disable-gstreamer --without-junit --without-help --without-doxygen --disable-odk --enable-debug --without-krb5 --without-gssapi./autogen.sh --with-distro=LibreOfficeLinux --with-package-format=deb --enable-epm --without-java --disable-postgresql-sdbc --disable-gstreamer --without-java --disable-postgresql-sdbc --disable-gstreamer --without-junit --without-help --without-doxygen --disable-odk --enable-debug --without-krb5 --without-gssapi Regards -- Original Message -- From: "Mike Kaganski" To: "Ismet Bahadir" ; "Stephan Bergmann" ; libreoffice@lists.freedesktop.org Sent: 12-Jun-20 2:53:42 PM Subject: Re: Building LO from source On 12.06.2020 8:40, Ismet Bahadir wrote: How can I exclude some of the apps such as "Draw"? Is it possible that each app has its own DEB installation file so that I won't be installing it if I skip its DEB file? Or, is there a parameter for excluding apps? We have a concept of "installed" apps - using SvtModuleOptions::IsModuleInstalled, which is initialized from factory configurations (SvtModuleOptions_Impl::impl_Read). Likely it only needs some configuration setting to have all components installed (making sure that required functionality is there), but disabled on UI level. -- Best regards, Mike Kaganski___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Re[2]: Building LO from source
> I think it's best to recompile the source from scratch with official DEB > packaging system. > IMHO, as an outsider, only Debian's own way to package LibreOffice can be said to be "official". It is *very* different from the way TDF packages LibreOffice in the .deb format. How can I exclude some of the apps such as "Draw"? Draw (and Writer, Calc, etc) are not "apps" as such IMHO but different kinds of documents that the one same app, LibreOffice, manages using the same soffice.bin process. But that is just terminology, we know what you mean. > Is it possible that > each app has its own DEB installation file so that I won't be installing > it if I skip its DEB file? That *is* exactly how the real Debian packages for LibreOffice are structured. See https://packages.debian.org/buster/libreoffice Also many (most?) other Linux distros, like Fedora for instance, split LibreOffice into multiple packages, like libreoffice-core, libreoffice-writer, libreoffice-calc, libreoffice-draw, etc. (As such, I don't think that it makes sense to split up LibreOffice like that, I find it fairly pointless, old-fashioned and needlessly complex, but then I am not a Linux zealot, I like macOS more. But just ignore me here.) --tml ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice
Re[2]: Building LO from source
Thanks Setphan, I think it's best to recompile the source from scratch with official DEB packaging system. How can I exclude some of the apps such as "Draw"? Is it possible that each app has its own DEB installation file so that I won't be installing it if I skip its DEB file? Or, is there a parameter for excluding apps? Regards -- Original Message -- From: "Stephan Bergmann" To: libreoffice@lists.freedesktop.org Cc: "Ismet Bahadir" Sent: 11-Jun-20 2:08:14 PM Subject: Re: Building LO from source On 11/06/2020 12:35, Ismet Bahadir wrote: I understand, thanks. I'll try that but compiling takes too much time. Can you guess why the extension installs successfully under Ubuntu but fails at Debian? The error message is: Binary URP bridge disposed during call. I'm afraid to face the same error after following your instructions, that's why I'm trying to understand the root cause of the problem. It likely means that the uno -> uno.bin process, spawned from soffice.bin when installing an extension, crashed (and in which case it should have generated a core file, if you have that enabled at the OS level). ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice
Re[2]: Building LO from source
I understand, thanks. I'll try that but compiling takes too much time. Can you guess why the extension installs successfully under Ubuntu but fails at Debian? The error message is: Binary URP bridge disposed during call. I'm afraid to face the same error after following your instructions, that's why I'm trying to understand the root cause of the problem. Regards -- Original Message -- From: "Michael Stahl" To: "Ismet Bahadir" ; libreoffice@lists.freedesktop.org Sent: 11-Jun-20 11:21:58 AM Subject: Re: Building LO from source On 11.06.20 10:13, Ismet Bahadir wrote: My problem is, the .deb file works fine on Ubuntu 18.04 and I can install the extension. However, the same .deb file is installed on Debian-10 but I can't install the extension. well that isn't guaranteed to work anyway and nobody ever tested it. if you want to deploy on different distros, then it's best to build on the same OS as TDF release builds, CentOS 7. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice
Re[2]: Building LO from source
Hi Michael, Thanks for writing back. I noticed that option after I compiled the source. I was looking a way to create a .deb file, and checkinstall was the option suggested. My problem is, the .deb file works fine on Ubuntu 18.04 and I can install the extension. However, the same .deb file is installed on Debian-10 but I can't install the extension. Regards -- Original Message -- From: "Michael Stahl" To: "Ismet Bahadir" ; libreoffice@lists.freedesktop.org Sent: 11-Jun-20 11:08:03 AM Subject: Re: Building LO from source On 11.06.20 07:34, Ismet Bahadir wrote: And, this is the link to create single DEB file: https://www.ostechnix.com/create-deb-file-source-ubuntu-16-04/ ... checkinstall? why not use --with-package-format=deb which is the supported way to create Debian packages. However, there are other requests. What I need to do is: 1) I want to exclude some software such as Draw. How can I exclude those? I'm using checkinstall to create a single DEB file to install LO on other laptops. use --with-package-format=deb 2) I want to be able to install some extensions. However I'm getting an error on Debian-10 where I can successfully install the extension on Ubuntu-18. Please see extension_error.jpg for the detail. How can I fix this error? just a guess, but try using --with-package-format=deb ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice