On Mon, Aug 25, 2014 at 11:28:28AM +0200, Michal Hriň wrote: > As I'm playing with building of program, and I want to refresh my > programming, can someone point me to some reading about desktop-integration > and to the source where is the code of it ?
The code is in sysui/desktop http://svn.apache.org/viewvc/openoffice/trunk/main/sysui/desktop/ Note that the build system uses directly rpmbuild/dpkg-deb instead of epm, which is used in instsetoo_native to generate the packages (this means, in sysui the source includes RPM spec and Debian control files, while in instsetoo_native these are generated at build time). See for example http://svn.apache.org/viewvc/openoffice/trunk/main/sysui/desktop/debian/ http://svn.apache.org/viewvc/openoffice/trunk/main/sysui/desktop/redhat/ > Why builds are provided without KDE integration ? Because the code is unmaintained (and completely broken). > When I tried to build program --with-kde this one is for KDE 3, use --enable-kde4 > I didn't know which libraries > build script expected. Can someone point me which libraries and of > what version are expected for successful build with kde-integration? Almost three years ago, configure could detect the needed libraries (http://svn.apache.org/viewvc?view=revision&revision=1179069), it seems it is still working, I've just tested and got: The variable ENABLE_KDE4 is set to: TRUE The variable KDE4_CFLAGS is set to: -DQT_SHARED -I/usr/include/QtCore -DQT_SHARED -I/usr/include/QtGui -I/usr/include/QtCore -I/usr/include/kde4 -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT The variable KDE4_LIBS is set to: -L/usr/lib64/kde4/devel -L/usr/lib64 -lkdeui -lkdecore -lQtCore -lQtGui You need the development packages for those libraries; use your package manager to see what provides those libraries; in Fedora, for example yum whatprovides */libQtCore.so */libQtGui.so */libkdeui.so */libkdecore.so shows that the packages are kdelibs-devel and qt-devel (in Debian, they may be libqt4-dev and kdelibs4-dev). Note that some distros come with Qt5 and KDE Frameworks, I guess that configure cannot detect them. Also note that in order to build successfully, you'll need to apply kde4_fpicker.patch, and in order to start the application you need to apply kde4_dbus_appname.patch. If you succeed in building and running OpenOffice with KDE4 enabled, you'll understand what "completely broken" means ;) Regards -- Ariel Constenla-Haile La Plata, Argentina
diff --git a/main/fpicker/source/unx/kde4/KDE4FilePicker.cxx b/main/fpicker/source/unx/kde4/KDE4FilePicker.cxx index 52701fa..ef2e411 100644 --- a/main/fpicker/source/unx/kde4/KDE4FilePicker.cxx +++ b/main/fpicker/source/unx/kde4/KDE4FilePicker.cxx @@ -52,6 +52,8 @@ //kde has an enum that uses this...OO does too #undef SETTINGS_MOUSE +#undef SETTINGS_LOCALE +#undef SETTINGS_STYLE #include <kfiledialog.h> #include <kwindowsystem.h>
diff --git a/main/vcl/unx/kde4/KDEXLib.cxx b/main/vcl/unx/kde4/KDEXLib.cxx index b1cc67c..7493539 100644 --- a/main/vcl/unx/kde4/KDEXLib.cxx +++ b/main/vcl/unx/kde4/KDEXLib.cxx @@ -74,9 +74,9 @@ void KDEXLib::Init() pInputMethod->SetLocale(); XrmInitialize(); - KAboutData *kAboutData = new KAboutData("Apache OpenOffice", + KAboutData *kAboutData = new KAboutData("ApacheOpenOffice", "kdelibs4", - ki18n( "Apache OpenOffice" ), + ki18n( "ApacheOpenOffice" ), "3.4.0", ki18n( "Apache OpenOffice with KDE Native Widget Support." ), KAboutData::License_File,
signature.asc
Description: Digital signature