Date: prev next · Thread: first prev next last
2020 Archives by date, by thread · List index


Thanks again Rene,

I managed to solve the problem. The autogen command works now:

test@test-virtual-machine:~/libreoffice$ ./autogen.sh --with-distro=LibreOfficeLinux --with-package-format=deb --enable-epm
...
Language Configuration unchanged - avoiding scp2 stamp update
****************************************************************************

To build, run:
/usr/bin/make

To view some help, run:
/usr/bin/make help

After the build has finished successfully, you can immediately run what you built using the command:
instdir/program/soffice

If you want to run the smoketest, run:
/usr/bin/make check

*************************************
* WARNING : XCB ICCCM not found, which is needed for Qt versions (< 5.12) on some WMs to correctly group dialogs (like QTBUG-46626)

However, make fails this time:

[MOD] dictionaries
[PRL] CustomTarget/postprocess/images/images_breeze.zip
[PRL] CustomTarget/postprocess/images/images_breeze_dark.zip
[PRL] CustomTarget/postprocess/images/images_breeze_dark_svg.zip
[PRL] CustomTarget/postprocess/images/images_breeze_svg.zip
[PRL] CustomTarget/postprocess/images/images_colibre.zip
In file included from /usr/include/kio/kio_export.h:24:0,
                 from /usr/include/kio/global.h:22,
                 from /usr/include/kprotocolmanager.h:26,
from /home/test/libreoffice/shell/source/backends/kf5be/kf5access.cxx:31: /usr/include/kpluginfactory.h:263:5: error: âQ_DECL_CONSTRUCTOR_DEPRECATEDâ does not name a type; did you mean âKDE_CONSTRUCTOR_DEPRECATEDâ? KDE_CONSTRUCTOR_DEPRECATED explicit KPluginFactory(const KAboutData *aboutData, QObject *parent = 0);
     ^
/usr/include/kpluginfactory.h:270:14: error: âQ_DECL_CONSTRUCTOR_DEPRECATEDâ does not name a type; did you mean âKDE_CONSTRUCTOR_DEPRECATEDâ? explicit KDE_CONSTRUCTOR_DEPRECATED KPluginFactory(QObject *parent);
              ^
In file included from /usr/include/kservice.h:30:0,
                 from /usr/include/kprotocolinfo.h:27,
                 from /usr/include/kprotocolmanager.h:27,
from /home/test/libreoffice/shell/source/backends/kf5be/kf5access.cxx:31: /usr/include/KF5/KCoreAddons/kpluginfactory.h:330:26: error: redefinition of âclass KPluginFactoryâ
 class KCOREADDONS_EXPORT KPluginFactory : public QObject
                          ^~~~~~~~~~~~~~
In file included from /usr/include/klibloader.h:29:0,
                 from /usr/include/kservice.h:28,
                 from /usr/include/kprotocolinfo.h:27,
                 from /usr/include/kprotocolmanager.h:27,
from /home/test/libreoffice/shell/source/backends/kf5be/kf5access.cxx:31: /usr/include/kpluginfactory.h:232:22: note: previous definition of âclass KPluginFactoryâ
 class KDECORE_EXPORT KPluginFactory : public QObject
                      ^~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:98:0, from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtGui/qfont.h:43,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/QFont:1,
from /home/test/libreoffice/shell/source/backends/kf5be/kf5access.cxx:24: /usr/include/KF5/KCoreAddons/kpluginfactory.h:332:5: error: expected unqualified-id before end of line
     Q_OBJECT
     ^
/usr/include/KF5/KCoreAddons/kpluginfactory.h:332:5: error: expected declaration before end of line /home/test/libreoffice/solenv/gbuild/LinkTarget.mk:298: recipe for target '/home/test/libreoffice/workdir/CxxObject/shell/source/backends/kf5be/kf5access.o' failed make[1]: *** [/home/test/libreoffice/workdir/CxxObject/shell/source/backends/kf5be/kf5access.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/test/libreoffice/ridljar/com/sun/star/lib/util/WeakMap.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

I was able to compile and run LO on a different Ubuntu. Not sure why this one fails?

Regards

------ Original Message ------
From: rene.engelhard@mailbox.org
To: "Ismet Bahadir" <ismetbahadir@gmail.com>; "Muhammet Kara" <muhammet.kara@collabora.com>
Cc: "libreoffice-dev" <libreoffice@lists.freedesktop.org>
Sent: 15-Jun-20 10:49:10 AM
Subject: Re: Re[2]: Building LO from source

Am 15. Juni 2020 07:35:58 MESZ schrieb Ismet Bahadir <ismetbahadir@gmail.com>:
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" <rene.engelhard@mailbox.org>
To: "Ismet Bahadir" <ismetbahadir@gmail.com>; "Muhammet Kara"
<muhammet.kara@collabora.com>
Cc: "libreoffice-dev" <libreoffice@lists.freedesktop.org>
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.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.