LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   Error building LibreOffice with AlienBob's libreoffice64.SlackBuild (https://www.linuxquestions.org/questions/slackware-arm-108/error-building-libreoffice-with-alienbobs-libreoffice64-slackbuild-4175693135/)

enine 04-04-2021 03:52 PM

Error building LibreOffice with AlienBob's libreoffice64.SlackBuild
 
I'm building on arm so I can't use his pre-built packages. I am running -current and slackpkg shows I'm up to date. I get the following error:

Code:

checking for ant... no
checking for ant.sh... no
checking for ant.bat... no
checking for ant.cmd... no
configure: error: Ant not found - Make sure it's in the path or use --with-ant-home
Error running configure at ./autogen.sh line 302.
sed: can't read Makefile: No such file or directory
./libreoffice64.SlackBuild FAILED at line 1405

Its odd because his script usually downloads everything needed. is ant something that should be part of the -current or is this https://slackbuilds.org/repository/1...s/ant-contrib/ from Slackbuilds?

Thanks

mralk3 04-04-2021 05:04 PM

So this is tricky to build. Alien's script won't work on arm/aarch64. I was successful on aarch64 using the SlackBuild from SBo, by Chris willing. I didn't build directly from SBo, but using ponce's git repository. I also used slackrepo to build it so I could minimally modify the build using what slackrepo calls a hint file. Basically I updated to a newer version, disabled java, postgresql and firebird support. I attached the hint file, I hope that helps. Let me know how it goes and I will help you out if needed.

LibreOffice.hint file:
Code:

OPTIONS="LOLANGS=en-US JAVA=no HAVE_SRCS_TARBALL=1 postgresql='--disable-postgresql-sdbc'"
VERSION="7.1.2.2"
DOWNLOAD="http://192.168.40.204/slackbuilds/source/libreoffice-7.1.2.2.tar.xz \
          http://192.168.40.204/slackbuilds/source/libreoffice-7.1.2.2-srcs.tar.xz"
MD5SUM="60af85a8960ef2bc0f70880e589dc12c \
        039a48e55a9b08cd6d6a37f7cab7ec8d"


Remove jdk11 from the .info file if you build using slackrepo or sbopkg.

Here is where I got the SlackBuild: http://cgit.ponce.cc/slackbuilds/tre...ce/LibreOffice

I also added --disable-firebird-sdbc to the ./autogen.sh configuration. If you just want to run the Slackbuild, also add --without-java and --disable-postgresql-sdbc.


I found the LFS guide useful for this build too, http://www.linuxfromscratch.org/blfs...breoffice.html

Hopefully this makes sense, I can clarify.

alekow 04-04-2021 05:29 PM

Quote:

Originally Posted by enine (Post 6237226)
I'm building on arm so I can't use his pre-built packages. I am running -current and slackpkg shows I'm up to date. I get the following error:

Code:

checking for ant... no
checking for ant.sh... no
checking for ant.bat... no
checking for ant.cmd... no
configure: error: Ant not found - Make sure it's in the path or use --with-ant-home
Error running configure at ./autogen.sh line 302.
sed: can't read Makefile: No such file or directory
./libreoffice64.SlackBuild FAILED at line 1405

Its odd because his script usually downloads everything needed. is ant something that should be part of the -current or is this https://slackbuilds.org/repository/1...s/ant-contrib/ from Slackbuilds?

Thanks

Hi,

Did you want the old libreoffice-6.4.6? If you want the newest use libreoffice.SlackBuild rather than libreoffice64.SlackBuild

I did make it build on Slackware ARM, but it wasn't straightforward. I made quite a few modifications to the script and I am not sure which ones were necessary in the end. I might have a look at the SBo slackbuild next time.

enine 04-04-2021 07:01 PM

Yes, this is complicated. I am, building 6.4.2. I'm trying to keep the same versions on my (86)laptop and (arm)Pi. & of LO I had some problems with on my laptop, it would run fine for a bit then start scrolling slow so I went back to 6.4 for now.

I suppose I should really switch the laptop to -current

mralk3 04-05-2021 01:01 PM

As a reference to how much memory and processing power I needed: I had 18 combined processor cores, 10GB of RAM, and 12GB of Swap, between my distcc hosts. It took 5 hours or so to build LibreOffice from source and several more testing the script before that to get it to build.

If your system is very sluggish while building LO, you need to add more swap space and memory to your build machine(s). It most likely means that you have your swap space stored on your SD Card. Get an external hard drive, plug it into your ARM device, and add a swap file to the external disk. Make sure the swap is using a higher priority than your existing swap. Rule of thumb is: mount /tmp in memory, dont swap on SD, don't swap on the same disk where the LO source code is being built at, and if you have one, use a solid state drive.

Alien Bob 04-06-2021 04:52 AM

Quote:

Originally Posted by enine (Post 6237226)
I'm building on arm so I can't use his pre-built packages. I am running -current and slackpkg shows I'm up to date. I get the following error:

Code:

checking for ant... no
checking for ant.sh... no
checking for ant.bat... no
checking for ant.cmd... no
configure: error: Ant not found - Make sure it's in the path or use --with-ant-home
Error running configure at ./autogen.sh line 302.
sed: can't read Makefile: No such file or directory
./libreoffice64.SlackBuild FAILED at line 1405

Its odd because his script usually downloads everything needed. is ant something that should be part of the -current or is this https://slackbuilds.org/repository/1...s/ant-contrib/ from Slackbuilds?

Thanks

Using my scripts you should always read the header. The stuff that gets downloaded is the sources for the package that should be built. But there are also build-time requirements, i.e. stuff you should already have installed before starting the build script.
In the header section of https://slackware.nl/people/alien/sl...e64.SlackBuild you can find:
Code:

# Needs:     
# Build-time: apache-ant,jdk8,perl-archive-zip
#            Reinstall gpgme because its headers may have been overwritten
#            by kdepimlibs4...
#            (for Slackware 14.2 you need to upgrade gcc to the 9.2.0 version
#              in 'unsupported' and you can revert back to 5.5.0 after
#              compilation is completed. You also need to compile/upgrade to
#              the version of gperf as found in Slackware 15.0)
#            (for Slackware 13.37, you need to install mozilla-nss and
#              also upgrade to the seamonkey and seamonkey-solibs in /patches !)


enine 04-06-2021 06:38 AM

Thanks guys, I did go back to the Slackbuild at http://cgit.ponce.cc/slackbuilds/tre...ce/LibreOffice and was able to build 7.1 fine after a loooong compile :)

enine 04-06-2021 06:43 AM

Quote:

Originally Posted by Alien Bob (Post 6237681)
Using my scripts you should always read the header. The stuff that gets downloaded is the sources for the package that should be built. But there are also build-time requirements, i.e. stuff you should already have installed before starting the build script.
In the header section of https://slackware.nl/people/alien/sl...e64.SlackBuild you can find:
Code:

# Needs:     
# Build-time: apache-ant,jdk8,perl-archive-zip
#            Reinstall gpgme because its headers may have been overwritten
#            by kdepimlibs4...
#            (for Slackware 14.2 you need to upgrade gcc to the 9.2.0 version
#              in 'unsupported' and you can revert back to 5.5.0 after
#              compilation is completed. You also need to compile/upgrade to
#              the version of gperf as found in Slackware 15.0)
#            (for Slackware 13.37, you need to install mozilla-nss and
#              also upgrade to the seamonkey and seamonkey-solibs in /patches !)



Ok, I'm apparently really bad at reading lately, I guess I really need sleep :)

Exaga 04-06-2021 05:44 PM

Quote:

Originally Posted by enine (Post 6237703)
Ok, I'm apparently really bad at reading lately, I guess I really need sleep :)

Simone Giustetti published a How-to Build Libre Office for Slackware Linux guide recently. Perhaps that might be of some help to you.

glorsplitz 07-05-2021 12:06 PM

Using ponce link indicated in this thread post #2, downloading the files there, then doing
Code:

LOLANGS="en-US" JAVA=no USE_CCACHE=yes sh LibreOffice.SlackBuild
I was able to get LibreOffice to build in about 12-13 hours on my rpi4.

jowski 01-25-2022 07:25 PM

post deleted


All times are GMT -5. The time now is 06:58 PM.