[Libreoffice-commits] core.git: 2 commits - android/README libreofficekit/README

Siqi Liu me at siqi.fr
Tue Apr 14 12:15:30 PDT 2015


 android/README        |   20 +++++++++++++++++++-
 libreofficekit/README |   18 +++++++++++++++++-
 2 files changed, 36 insertions(+), 2 deletions(-)

New commits:
commit 6bea14a701d1b9d4442e442dd5fe1ddb8c4c4aba
Author: Siqi Liu <me at siqi.fr>
Date:   Tue Apr 14 21:14:46 2015 +0200

    add gdb debugging info on gtktiledviewer
    
    Change-Id: I1460131d25212266b910d76a7713d1e973f7c415

diff --git a/libreofficekit/README b/libreofficekit/README
index 8e32e62..669cb80 100644
--- a/libreofficekit/README
+++ b/libreofficekit/README
@@ -23,7 +23,7 @@ functionality as in LibreOfficeKit.h.)
 
 An example program (currently using the older shim.c/static library
 integration) can be seen on:
-https://github.com/ojwb/lloconv	
+https://github.com/ojwb/lloconv
 
 Tiled Rendering
 ---------------
@@ -86,6 +86,22 @@ once a feature works there, then implement the Android part, with its slower
 development iteration (slow uploading to the device, the need to link all
 object files into a single .so, etc).
 
+* Debugging with gdb and gtktiledviewer
+
+To run gtktiledviewer:
+
+    bin/run gtktiledviewer $PWD/instdir/program path/to/test.odt
+
+To receive all incoming evetns from core use G_MESSAGES_DEBUG=all
+
+    G_MESSAGES_DEBUG=all bin/run gtktiledviewer $PWD/instdir/program ../test.odt
+
+To debug with gdb:
+
+    export LO_TRACE='gdb --tui --args'
+
+before bin/run, this will run gtktiledviewer in the debugger instead.
+
 LibreOfficeKitGtk
 *****************
 
commit 2932bf06be3676af81c9433eb99372031080b636
Author: Siqi Liu <me at siqi.fr>
Date:   Tue Apr 14 21:09:16 2015 +0200

    add debugging missing services to README
    
    Change-Id: Ib30a0e3d56ca9ebd07ee55e0aee9b13c0474a060

diff --git a/android/README b/android/README
index 0989cf6..6b5e22b 100644
--- a/android/README
+++ b/android/README
@@ -145,7 +145,7 @@ Overlay
 Overlay elements like cursor and selections aren't drawn by the LO core, instead the core
 only provides data (cursor position, selection rectangles) and the app needs to draw them.
 DocumentOverlay (org.libreoffice.overlay.DocumentOverlay) and DocumentOverlayView
-(org.libreoffice.overlay.DocumentOverlayView) are the classes that provide the overlay over 
+(org.libreoffice.overlay.DocumentOverlayView) are the classes that provide the overlay over
 the document, where selections and the cursor is drawn.
 
 Emulator and debugging notes
@@ -239,6 +239,24 @@ started debuggable application.
 
 Assuming that you're already in the LOAndroid3 directory in your shell.
 
+* Debugging the missing services
+
+Android library only include essential services that are compiled for
+LibreOffice in order to reduce the size of the apk. When developing,
+some services might become useful and we should add those services
+to the combined library.
+
+In order to identify missing services, we need to be able to receive
+SAL_INFO from cppuhelper/source/shlib.cxx in logcat and therefore identify
+what services are missing. To do so, you may want add the following
+when configuring the build.
+
+    --enable-selective-debuginfo="cppuhelper/ sal/"
+
+Which services are combined in the android lib is determined by
+
+    solenv/bin/native-code.py
+
 * Common Errors / Gotchas
 
 lo_dlneeds: Could not read ELF header of /data/data/org.libreoffice...libfoo.so


More information about the Libreoffice-commits mailing list