Test repository to check push and ssh key
Find a file
Michael Weghorn 7084da45dd android: Explicitly load libc++_shared
While it works just fine without that in newer
Android versions, trying to open any doc in an
x86 AVD with API level 16 failed like this:

> E/AndroidRuntime( 2999): java.lang.ExceptionInInitializerError
> E/AndroidRuntime( 2999):        at org.libreoffice.TileProviderFactory.initialize(TileProviderFactory.java:23)
> E/AndroidRuntime( 2999):        at org.libreoffice.LOKitThread.<init>(LOKitThread.java:39)
> E/AndroidRuntime( 2999):        at org.libreoffice.LibreOfficeMainActivity.onCreate(LibreOfficeMainActivity.java:149)
> E/AndroidRuntime( 2999):        at android.app.Activity.performCreate(Activity.java:5008)
> E/AndroidRuntime( 2999):        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
> E/AndroidRuntime( 2999):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
> E/AndroidRuntime( 2999):        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
> E/AndroidRuntime( 2999):        at android.app.ActivityThread.access$600(ActivityThread.java:130)
> E/AndroidRuntime( 2999):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
> E/AndroidRuntime( 2999):        at android.os.Handler.dispatchMessage(Handler.java:99)
> E/AndroidRuntime( 2999):        at android.os.Looper.loop(Looper.java:137)
> E/AndroidRuntime( 2999):        at android.app.ActivityThread.main(ActivityThread.java:4745)
> E/AndroidRuntime( 2999):        at java.lang.reflect.Method.invokeNative(Native Method)
> E/AndroidRuntime( 2999):        at java.lang.reflect.Method.invoke(Method.java:511)
> E/AndroidRuntime( 2999):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
> E/AndroidRuntime( 2999):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
> E/AndroidRuntime( 2999):        at dalvik.system.NativeStart.main(Native Method)
> E/AndroidRuntime( 2999): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1891]:  1176 could not load needed library 'libc++_shared.so' for 'liblo-native-code.so' (load_library[1093]: Library 'libc++_shared.so' not found)
> E/AndroidRuntime( 2999):        at java.lang.Runtime.loadLibrary(Runtime.java:370)
> E/AndroidRuntime( 2999):        at java.lang.System.loadLibrary(System.java:535)
> E/AndroidRuntime( 2999):        at org.libreoffice.kit.NativeLibLoader.load(LibreOfficeKit.java:105)
> E/AndroidRuntime( 2999):        at org.libreoffice.kit.LibreOfficeKit.<clinit>(LibreOfficeKit.java:82)
> E/AndroidRuntime( 2999):        ... 17 more
> W/ActivityManager( 1421):   Force finishing activity org.libreoffice/.LibreOfficeMainActivity
> W/ActivityManager( 1421):   Force finishing activity org.libreoffice/.ui.LibreOfficeUIActivity

Change-Id: I6e383e624b9e66c0daa9ecfda4a3b176c8fa0d94
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133263
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-04-21 20:57:55 +02:00
.git-hooks
.github
.vscode
accessibility loplugin:passstuffbyref 2022-04-20 15:24:34 +02:00
android android: Explicitly load libc++_shared 2022-04-21 20:57:55 +02:00
animations
apple_remote
avmedia Fix typo 2022-04-13 15:07:01 +02:00
basctl new loplugin:stringviewvar looks for OUString vars that can be 2022-04-19 18:31:10 +02:00
basegfx use more string_view 2022-04-10 20:15:16 +02:00
basic tdf#148651: basic_macros: Add unittest 2022-04-21 19:52:16 +02:00
bean
bin ofz#46162 and ofz#46287 Integer overflow 2022-04-08 15:36:48 +02:00
binaryurp Pick better variable types 2022-04-14 09:58:00 +02:00
bridges
canvas loplugin:stringview check for getToken and trim 2022-04-10 12:59:38 +02:00
chart2 no need to make copies of the vector here 2022-04-20 15:41:02 +02:00
cli_ure
codemaker use more string_view in unoidl,codemaker 2022-04-21 13:53:26 +02:00
comphelper loplugin:passstuffbyref 2022-04-20 15:24:34 +02:00
compilerplugins Fix typo 2022-04-21 20:55:53 +02:00
config_host
configmgr use more string_view in configmgr 2022-04-13 20:35:21 +02:00
connectivity Clean up odd function definitions 2022-04-21 09:02:24 +02:00
cppcanvas
cppu use more string_view in cppu 2022-04-21 15:29:33 +02:00
cppuhelper use more string_view in unoidl,codemaker 2022-04-21 13:53:26 +02:00
cpputools cpputools : use std::mutex instead of osl::Mutex 2022-04-01 10:07:55 +02:00
cui loplugin:passstuffbyref 2022-04-20 15:24:34 +02:00
dbaccess loplugin:passstuffbyref 2022-04-20 15:24:34 +02:00
desktop Drop special-casing for Chart's sidebar property deck 2022-04-21 18:03:43 +02:00
dictionaries@e0a820ca5c Update git submodules 2022-04-18 07:06:31 +02:00
distro-configs Reduce variance in what Jenkins Gerrit builders pick up from their environment 2022-03-28 20:33:18 +02:00
drawinglayer tdf#55058 tdf#143875 EMF+ Fix display of dashed lines and line joints 2022-04-21 10:30:26 +02:00
editeng tdf#148630 fix text layout and cursor position for IVS+spacing 2022-04-20 13:07:31 +02:00
embeddedobj
embedserv
emfio tdf#55058 tdf#143875 EMF+ Fix display of dashed lines and line joints 2022-04-21 10:30:26 +02:00
eventattacher Update remaining DevGuide wiki links. 2022-04-13 08:16:52 +02:00
extensions loplugin:stringviewparam 2022-04-19 11:32:56 +02:00
external android: Use property instead of ANDROID_NDK_HOME env var 2022-04-20 05:19:03 +02:00
extras tdf#87605 Added a few technical words. 2022-04-18 17:37:44 +02:00
filter new loplugin:stringviewvar looks for OUString vars that can be 2022-04-19 18:31:10 +02:00
forms loplugin:passstuffbyref 2022-04-20 15:24:34 +02:00
formula
fpicker use more string_view in fpicker 2022-04-15 20:11:29 +02:00
framework loplugin:stringviewparam convert methods using copy() 2022-04-17 10:27:33 +02:00
helpcompiler
helpcontent2@000df5aded Update git submodules 2022-04-19 18:21:34 +02:00
hwpfilter Pick a better variable type 2022-04-14 11:41:21 +02:00
i18nlangtag loplugin:stringviewparam whitelist some more functions 2022-04-13 08:38:53 +02:00
i18npool loplugin:stringviewparam convert methods using copy() 2022-04-17 10:27:33 +02:00
i18nutil use more string_view 2022-04-11 17:44:46 +02:00
icon-themes Colibre: Update dark Send as Fax & Explorer On/Off icons 2022-04-03 06:40:45 +02:00
idl loplugin:stringviewparam convert methods using copy() 2022-04-17 10:27:33 +02:00
idlc tdf#143148 use pragma once in idlc 2022-04-17 16:57:02 +02:00
include Drop special-casing for Chart's sidebar property deck 2022-04-21 18:03:43 +02:00
instsetoo_native
io loplugin:stringview more o3tl conversion 2022-04-12 12:42:15 +02:00
ios
javaunohelper
jurt
jvmaccess loplugin:stringviewparam whitelist some more functions 2022-04-13 08:38:53 +02:00
jvmfwk use more string_view in jvmfwk 2022-04-15 21:33:17 +02:00
l10ntools address potential find/rfind failures 2022-04-15 14:06:06 +02:00
librelogo
libreofficekit
lingucomponent -Werror,-Wunused-but-set-variable 2022-03-28 16:34:38 +02:00
linguistic use more string_view 2022-04-11 17:44:46 +02:00
lotuswordpro loplugin:stringviewparam convert methods using compareTo 2022-04-02 16:55:36 +02:00
m4
nlpsolver
o3tl Avoid unhelpful loplugin:stringviewvar 2022-04-20 13:39:09 +02:00
odk tdf#143122 - Port Java examples to C++ 2022-04-20 14:51:40 +02:00
offapi Extend insertDocumentFromURL documentation 2022-04-19 11:17:46 +02:00
officecfg Drop special-casing for Chart's sidebar property deck 2022-04-21 18:03:43 +02:00
onlineupdate
oovbaapi
oox tdf#109169 export Type encoded shading to OOXML 2022-04-21 12:53:41 +02:00
opencl loplugin:stringviewparam whitelist some more functions 2022-04-13 08:38:53 +02:00
osx
package loplugin:passstuffbyref 2022-04-20 15:24:34 +02:00
pch
postprocess
pyuno loplugin:stringviewparam convert methods using copy() 2022-04-17 10:27:33 +02:00
qadevOOo
readlicense_oo
registry loplugin:stringviewparam convert methods using indexOf 2022-04-02 13:31:19 +02:00
remotebridges
reportbuilder
reportdesign loplugin:passstuffbyref 2022-04-20 15:24:34 +02:00
ridljar
sal loplugin:stringviewparam convert methods using copy() 2022-04-17 10:27:33 +02:00
salhelper
sax use more FastAttributeIter::toView 2022-04-20 10:38:02 +02:00
sc tdf#148669: sc_uicalc: Add unittest 2022-04-21 16:01:24 +02:00
scaddins
sccomp
schema sw content controls: add ODT export 2022-04-08 12:51:09 +02:00
scp2
scripting loplugin:stringviewparam convert methods using copy() 2022-04-17 10:27:33 +02:00
sd sd_export_tests-ooxml3: Add simple test for import/export of underline 2022-04-21 13:00:46 +02:00
sdext loplugin:stringviewparam whitelist some more functions 2022-04-13 08:38:53 +02:00
setup_native loplugin:empty 2022-04-10 11:12:48 +02:00
sfx2 Drop special-casing for Chart's sidebar property deck 2022-04-21 18:03:43 +02:00
shell loplugin:stringviewparam 2022-04-15 13:42:34 +02:00
slideshow Resolves: tdf#143615 clamp relative times to 1.0 2022-04-14 19:29:03 +02:00
smoketest
solenv new loplugin:stringviewvar looks for OUString vars that can be 2022-04-19 18:31:10 +02:00
soltools
sot
starmath loplugin:stringviewparam whitelist some more functions 2022-04-13 08:38:53 +02:00
static Fix typo 2022-03-30 20:47:23 +02:00
stoc loplugin:stringview more o3tl conversion 2022-04-12 12:42:15 +02:00
store
svgio new loplugin:stringviewvar looks for OUString vars that can be 2022-04-19 18:31:10 +02:00
svl Prepare SvNumberFormatter::GetEditFormat() to obtain for another locale 2022-04-15 01:40:05 +02:00
svtools loplugin:passstuffbyref 2022-04-20 15:24:34 +02:00
svx tdf#55058 tdf#143875 EMF+ Fix display of dashed lines and line joints 2022-04-21 10:30:26 +02:00
sw tdf#147723: sw_uiwriter5: Add unittest 2022-04-21 17:03:09 +02:00
swext
sysui
test loplugin:stringview check for getToken and trim 2022-04-10 12:59:38 +02:00
testtools Recheck modules t* with IWYU 2022-04-02 23:32:08 +02:00
toolkit loplugin:passstuffbyref 2022-04-20 15:24:34 +02:00
tools include OutputDevice MapMode in SalLayoutGlyphsCache key (tdf#148400) 2022-04-12 13:31:09 +02:00
translations@4d46412589 Update git submodules 2022-04-11 16:21:31 +02:00
ucb tdf#146460 tdf#148429 ucb: webdav-curl: censor "curl" in UserAgent 2022-04-20 15:48:05 +02:00
ucbhelper Recheck modules [uU]* with IWYU 2022-04-12 15:20:47 +02:00
udkapi
uitest
UnoControls Recheck modules [uU]* with IWYU 2022-04-12 15:20:47 +02:00
unodevtools loplugin:stringviewparam convert methods using copy() 2022-04-17 10:27:33 +02:00
unoidl use more string_view in unoidl,codemaker 2022-04-21 13:53:26 +02:00
unoil
unotest
unotools use more string_view in unotools 2022-04-14 19:26:04 +02:00
unoxml Recheck modules [uU]* with IWYU 2022-04-12 15:20:47 +02:00
ure
uui loplugin:stringviewparam convert methods using copy() 2022-04-17 10:27:33 +02:00
vbahelper loplugin:stringviewparam whitelist some more functions 2022-04-13 08:38:53 +02:00
vcl tdf#141000 replacing underscores with spaces of multi words icon pack name 2022-04-21 18:52:37 +02:00
winaccessibility
wizards ScriptForge - (SF_Calc) new CreatePivotTable() method 2022-04-18 18:53:53 +02:00
writerfilter sw content controls: add initial DOCX import 2022-04-20 11:47:40 +02:00
writerperfect loplugin:stringview check for getToken and trim 2022-04-10 12:59:38 +02:00
xmerge
xmlhelp use more string_view in xml* 2022-04-15 20:11:48 +02:00
xmloff use more FastAttributeIter::toView 2022-04-20 10:38:02 +02:00
xmlreader
xmlscript
xmlsecurity loplugin:passstuffbyref 2022-04-20 15:24:34 +02:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore .gitignore: Add Qt Creator's '.qtc_clangd' 2022-03-30 10:46:37 +02:00
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in android: Stop using ANDROID_SDK_HOME env variable 2022-04-20 05:19:20 +02:00
config_host_lang.mk.in
configure.ac android: Drop obsolete build tools version check from configure.ac 2022-04-21 11:15:43 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst upgrade to libwebp-1.2.2 2022-04-13 15:46:44 +02:00
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in
README.cross
README.help.md
README.md Update README.md files 2022-04-16 20:43:11 +02:00
README.Solaris
Repository.mk Add unoidl-read to the SDK 2022-04-11 15:10:12 +02:00
RepositoryExternal.mk
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk serialize linking of large libraries only if USE_LD is not set 2022-04-21 14:17:58 +02:00
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER
tsan-suppress.txt

LibreOffice

Coverity Scan Build Status CII Best Practices Translation status

LibreOffice is an integrated office suite based on copyleft licenses and compatible with most document formats and standards. Libreoffice is backed by The Document Foundation, which represents a large independent community of enterprises, developers and other volunteers moved by the common goal of bringing to the market the best software for personal productivity. LibreOffice is open source, and free to download, use and distribute.

A quick overview of the LibreOffice code structure.

Overview

You can develop for LibreOffice in one of two ways, one recommended and one much less so. First the somewhat less recommended way: it is possible to use the SDK to develop an extension, for which you can read the API docs and Developers Guide. This re-uses the (extremely generic) UNO APIs that are also used by macro scripting in StarBasic.

The best way to add a generally useful feature to LibreOffice is to work on the code base however. Overall this way makes it easier to compile and build your code, it avoids any arbitrary limitations of our scripting APIs, and in general is far more simple and intuitive - if you are a reasonably able C++ programmer.

The Build Chain and Runtime Baselines

These are the current minimal operating system and compiler versions to run and compile LibreOffice, also used by the TDF builds:

  • Windows:
    • Runtime: Windows 7
    • Build: Cygwin + Visual Studio 2019 version 16.5
  • macOS:
    • Runtime: 10.13
    • Build: 11.0 + Xcode 12.5
  • Linux:
    • Runtime: RHEL 7 or CentOS 7
    • Build: either GCC 7.0.0; or Clang 8.0.1 with libstdc++ 7.3.0
  • iOS (only for LibreOfficeKit):
    • Runtime: 11.4 (only support for newer i devices == 64 bit)
    • Build: Xcode 9.3 and iPhone SDK 11.4
  • Android:
    • Build: NDK r19c and SDK 22.6.2
  • Emscripten / WASM:
    • Runtime: a browser with SharedMemory support (threads + atomics)
    • Build: Qt 5.15 with Qt supported Emscripten 1.39.8
    • See README.wasm

If you want to use Clang with the LibreOffice compiler plugins, the minimal version of Clang is 12.0.1. Since Xcode doesn't provide the compiler plugin headers, you have to compile your own Clang to use them on macOS.

You can find the TDF configure switches in the distro-configs/ directory.

To setup your initial build environment on Windows and macOS, we provide the LibreOffice Development Environment (LODE) scripts.

For more information see the build instructions for your platform in the TDF wiki.

The Important Bits of Code

Each module should have a README.md file inside it which has some degree of documentation for that module; patches are most welcome to improve those. We have those turned into a web page here:

https://docs.libreoffice.org/

However, there are two hundred modules, many of them of only peripheral interest for a specialist audience. So - where is the good stuff, the code that is most useful. Here is a quick overview of the most important ones:

Module Description
sal/ this provides a simple System Abstraction Layer
tools/ this provides basic internal types: Rectangle, Color etc.
vcl/ this is the widget toolkit library and one rendering abstraction
framework/ UNO framework, responsible for building toolbars, menus, status bars, and the chrome around the document using widgets from VCL, and XML descriptions from /uiconfig/ files
sfx2/ legacy core framework used by Writer/Calc/Draw: document model / load/save / signals for actions etc.
svx/ drawing model related helper code, including much of Draw/Impress

Then applications

Module Description
desktop/ this is where the main() for the application lives, init / bootstrap. the name dates back to an ancient StarOffice that also drew a desktop
sw/ Writer
sc/ Calc
sd/ Draw / Impress

There are several other libraries that are helpful from a graphical perspective:

Module Description
basegfx/ algorithms and data-types for graphics as used in the canvas
canvas/ new (UNO) canvas rendering model with various backends
cppcanvas/ C++ helper classes for using the UNO canvas
drawinglayer/ View code to render drawable objects and break them down into primitives we can render more easily.

Rules for #include Directives (C/C++)

Use the "..." form if and only if the included file is found next to the including file. Otherwise, use the <...> form. (For further details, see the mail Re: C[++]: Normalizing include syntax ("" vs <>).)

The UNO API include files should consistently use double quotes, for the benefit of external users of this API.

loplugin:includeform (compilerplugins/clang/includeform.cxx) enforces these rules.

Finding Out More

Beyond this, you can read the README.md files, send us patches, ask on the mailing list libreoffice@lists.freedesktop.org (no subscription required) or poke people on IRC #libreoffice-dev on irc.libera.chat - we're a friendly and generally helpful mob. We know the code can be hard to get into at first, and so there are no silly questions.