<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Build docviewer with libreoffice support for xenial]]></title><description><![CDATA[<p dir="auto">while pdf files should already work, it was not yet possible to build a docviewer packages with libreoffice support.<br />
I wanted to post the steps I already did and the results</p>
]]></description><link>https://forums.ubports.com/topic/1510/build-docviewer-with-libreoffice-support-for-xenial</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 14:00:55 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/1510.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 30 Jul 2018 06:37:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Build docviewer with libreoffice support for xenial on Wed, 08 Aug 2018 22:36:03 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /> Excellent work <a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: flohack">@<bdi>flohack</bdi></a>!</p>
]]></description><link>https://forums.ubports.com/post/11288</link><guid isPermaLink="true">https://forums.ubports.com/post/11288</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 08 Aug 2018 22:36:03 GMT</pubDate></item><item><title><![CDATA[Reply to Build docviewer with libreoffice support for xenial on Wed, 08 Aug 2018 21:52:28 GMT]]></title><description><![CDATA[<p dir="auto">We got a working build now which will appear in Openstore until Friday or so. Thanks for your efforts! <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>https://forums.ubports.com/post/11287</link><guid isPermaLink="true">https://forums.ubports.com/post/11287</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Wed, 08 Aug 2018 21:52:28 GMT</pubDate></item><item><title><![CDATA[Reply to Build docviewer with libreoffice support for xenial on Mon, 30 Jul 2018 06:57:44 GMT]]></title><description><![CDATA[<p dir="auto">Yesterday I tried the same for the amd64 clickable container (adding the dependendies manually and run in desktop mode), and got:<br />
[FILE] Extracting information from the file...<br />
[FILE] Requested file mime type: QVariant(QString, "application/vnd.oasis.opendocument.text")<br />
[FILE] Path parsed as: "/tmp/Documents/hello.odt"<br />
Loading document...<br />
LibreOffice binaries found at: "/home/chris/git/docviewer-app/build/tmp/lib/x86_64-linux-gnu/libreoffice/program"<br />
LibreOffice profile path: "file:///tmp/.config/com.ubuntu.docviewer/libreoffice/4"<br />
Bootstrapping exception 'component context fails to supply singleton com.sun.star.configuration.theDefaultProvider of type com.sun.star.lang.XMultiServiceFactory'<br />
/home/chris/git/docviewer-app/build/tmp/lib/x86_64-linux-gnu/bin/ubuntu-docviewer-app: line 5:    10 Segmentation fault      (core dumped) ubuntu-docviewer-app</p>
]]></description><link>https://forums.ubports.com/post/11011</link><guid isPermaLink="true">https://forums.ubports.com/post/11011</guid><dc:creator><![CDATA[chris]]></dc:creator><pubDate>Mon, 30 Jul 2018 06:57:44 GMT</pubDate></item><item><title><![CDATA[Reply to Build docviewer with libreoffice support for xenial on Mon, 30 Jul 2018 06:54:35 GMT]]></title><description><![CDATA[<p dir="auto">Here some screenshots to the steps described in <a href="https://github.com/ubports/docviewer-app/pull/25" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/ubports/docviewer-app/pull/25</a></p>
<p dir="auto">If you uncomment the line "#INSTALL( DIRECTORY ${UPSTREAM_LIBS_DIR}/opt/libreoffice/lib/libreoffice/ DESTINATION ${DATA_DIR}lib/${ARCH_TRIPLET}/libreoffice )" in Click.cmake, you get a click package without libreoffice support (e.g. text and pdf files work).</p>
<p dir="auto">If you try to open an odt file, you get the message:<br />
<img src="/assets/uploads/files/1532933087519-817d8460-f142-4954-8189-316b7e3de512-image-resized.png" alt="0_1532933086926_817d8460-f142-4954-8189-316b7e3de512-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">If you add (e.g. in a chroot environment with clickable --container-mode) libreoffice to the dependencies, and put the line "  #INSTALL(DIRECTORY /usr/lib/libreoffice/ DESTINATION ${DATA_DIR}lib/${ARCH_TRIPLET}/libreoffice )" to the Click.cmake, you get an about 80MB click package.</p>
<p dir="auto">Again opening an example odt file, you now get:<br />
<img src="/assets/uploads/files/1532933299837-8fb63d12-50df-420a-a1eb-1f9e827182fd-image-resized.png" alt="0_1532933299206_8fb63d12-50df-420a-a1eb-1f9e827182fd-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">In the logviewer you see, for example:<br />
<img src="/assets/uploads/files/1532933421737-278dec83-9e5e-4966-a94e-bb0c58546ec9-image-resized.png" alt="0_1532933418726_278dec83-9e5e-4966-a94e-bb0c58546ec9-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">After adding the missing dependencies, at some point it was no longer complaining, the screen looked like:<br />
<img src="/assets/uploads/files/1532933513217-3b1ef51b-2db6-440a-a525-bd1897193ea8-image-resized.png" alt="0_1532933511056_3b1ef51b-2db6-440a-a525-bd1897193ea8-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">and the corresponding log:<br />
qml: Path of the document: /media/phablet/7873-B162/Documents/example.odt<br />
[FILE] Extracting information from the file...<br />
[FILE] Requested file mime type: QVariant(QString, "application/vnd.oasis.opendocument.text")<br />
[FILE] Path parsed as: "/media/phablet/7873-B162/Documents/example.odt"<br />
Loading document...<br />
LibreOffice binaries found at: "/opt/click.ubuntu.com/.click/users/phablet/com.ubuntu.docviewer/lib/arm-linux-gnueabihf/libreoffice/program"<br />
LibreOffice profile path: "file:///home/phablet/.config/com.ubuntu.docviewer/libreoffice/4"<br />
Document loaded successfully !</p>
<p dir="auto">But at that point docviewer crashed. I will not have much time currently to look into that in more detail, but at least that is where I got on Saturday...</p>
]]></description><link>https://forums.ubports.com/post/11010</link><guid isPermaLink="true">https://forums.ubports.com/post/11010</guid><dc:creator><![CDATA[chris]]></dc:creator><pubDate>Mon, 30 Jul 2018 06:54:35 GMT</pubDate></item></channel></rss>