Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

is there anyway I can build libreoffice without X11?

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
fpemud
Guru
Guru
Posts: 368
Joined: Wed Feb 15, 2012 7:00 am

is there anyway I can build libreoffice without X11?

  • Quote

Post by fpemud » Thu Jul 10, 2025 2:18 am

libreoffice supports wayland since the 2010s.

But there's still the following dependencies in libreoffice ebuild:
x11-libs/cairo[X]
x11-libs/libXinerama
x11-libs/libXrandr
x11-libs/libXrender
...

Is there anyway I can build libreoffice without X11?
I'd like to use it in a wayland only environment (without Xwayland), even if certain advanced features become unavailable.

I have walked through this post, but it doesn't contain much detail:
https://ask.libreoffice.org/t/building- ... k/122016/5
Top
!!!
n00b
n00b
Posts: 13
Joined: Tue Dec 17, 2024 7:55 pm

  • Quote

Post by !!! » Fri Jul 18, 2025 10:20 am

app-office/libreoffice can be compiled without gtk AND without qt.

Maybe that helps? The thing is huge so good luck ;)
Top
Goverp
Advocate
Advocate
User avatar
Posts: 2402
Joined: Wed Mar 07, 2007 6:41 pm

  • Quote

Post by Goverp » Fri Jul 18, 2025 4:24 pm

In a word, no.
There's an open libreoffice bug for this.
Greybeard
Top
wildhorse
Apprentice
Apprentice
User avatar
Posts: 185
Joined: Thu Mar 16, 2006 3:59 am
Location: Estados Unidos De América

  • Quote

Post by wildhorse » Fri Jul 18, 2025 8:19 pm

Libreoffice can be turned into a wayland application. In 15 years it is going to revolutionise the Linux desktop user experience. But first it needs to be rewritten in Rust.

Seriously, for the sake of completeness, I like to add to the comment made by "!!!" that adding

Code: Select all

app-office/libreoffice -gtk3 -gtk4 -kde -qt6
to /etc/portage/package.use turns libreoffice from an awful user experience into a snappy application.
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Fri Jul 18, 2025 10:37 pm

!!! wrote:app-office/libreoffice can be compiled without gtk AND without qt.
Using one of those toolkits is actually going to be the only way to build LO without X11 libraries, once that will be possible.

It should be obvious that the thread starter had already looked at the ebuild and is asking for something that is currently not possible with it.
Top
Banana
Moderator
Moderator
User avatar
Posts: 2374
Joined: Fri May 21, 2004 12:02 pm
Location: Germany
Contact:
Contact Banana
Website

  • Quote

Post by Banana » Sat Jul 19, 2025 7:23 am

Moderation note.

I do need to clarify two things:
1. The topic is indeed a support request, albeit not really solvable. So moved back to the DE forum. My bad.
2. A response and a reminder to wildhorse and this response about how we discuss things here:
Try to help in a respectful way and try to stay on topic.
Don't project your view about things on others and don't change the course of a topic into a problem of your own liking.
And please follow our Forum Guidelines.

Thank you.
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Top
fpemud
Guru
Guru
Posts: 368
Joined: Wed Feb 15, 2012 7:00 am

  • Quote

Post by fpemud » Mon Sep 22, 2025 3:36 am

I have successfully built a modified version of libreoffice-25.2.5.2.ebuild:

1. eliminate gui-libs/gtk[X], x11-libs/gtk+[X], x11-libs/cairo[X] dependencies.
(this action makes many other packages free from X11)

2. add the patch in this bug into ebuild file.
(I believe this patch removes "window embed" function, which uses X11)

3. add "--disable-gen" to myeconfargs variable in src_configure() function.
(--disable-gen removes the fallback libreoffice VCL plugin that uses X11)

4. add "--disable-skia" to myeconfargs variable in src_configure() function.
(don't know what Skia is and why Skia needs X11)

5. USE="-pdfimport" must be used when emerging.
(it seems libreoffice uses app-text/poppler to import pdf, which needs xpdf, then xpdf pulls in X11)
Top
fictitiousexistence
n00b
n00b
Posts: 8
Joined: Tue Oct 04, 2022 12:56 am

  • Quote

Post by fictitiousexistence » Mon Jan 12, 2026 11:44 pm

fpemud: Were you able to just get libreoffice to compile or, was it also launching and functioning?

If it was functioning, would you mind sharing if you have the latest version 'libreoffice-25.2.7.2-r1' working and if there were any other changes?

Thanks.
Top
fpemud
Guru
Guru
Posts: 368
Joined: Wed Feb 15, 2012 7:00 am

  • Quote

Post by fpemud » Wed Jan 14, 2026 1:23 pm

My libreoffice-25.2.5.2 launches and functions well, I'm using it daily.

But unfortunately libreoffice-25.2.7.2-r1 fails to compile. I'll leave a note here if I can fix it.
Top
Post Reply

9 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic