[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice
Subject:    Re: koffice 1.2.94 plugin issues on Mac OS X
From:       Benjamin Reed <ranger () befunk ! com>
Date:       2003-11-12 12:48:53
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


David Faure wrote:

> The word import filter (based on wv2) uses a different library, there can't be
> invokeHandler involved in that case... Do you have a backtrace of the
> word-import crash too?

OK, I take it back, not sure what's different but kword isn't crashing, 
it is complaining about not finding the xslt filter though, so it still 
fails to load anything:

---(snip!)---
QSettings::sync: filename is null/empty
kio (KSycoca): Trying to open ksycoca from 
/private/var/tmp/kdecache-ranger/ksycoca
kio (KTrader): KServiceTypeProfile::offers( KOfficePart, )
kio (KTrader): Returning 10 offers
koffice (lib kospell): KOSpellConfig::interpret []
QSettings::sync: filename is null/empty
QSettings::sync: filename is null/empty
QSettings::sync: filename is null/empty
koffice (lib kofficecore): KoDocument::openURL 
url=file:/Users/ranger/Documents/test.doc
koffice (lib kofficecore): KoDocument::openFile 
/Users/ranger/Documents/test.doc type:application/msword
kio (KTrader): KServiceTypeProfile::offers( KOfficePart, )
kio (KTrader): Returning 10 offers
koffice (filter manager): KoFilterEntry::query(  )
kio (KTrader): KServiceTypeProfile::offers( KOfficeFilter, )
kio (KTrader): Returning 62 offers
koffice (filter manager): Checking whether KOffice XSLT Export Filter is 
available.
koffice (filter manager): Not cached, checking...
koffice (filter manager): Filter: KOffice XSLT Export Filter not available.
koffice (filter manager): ERROR: Couldn't create the filter.
koffice (lib kofficecore): KoMainWindow::addRecentURL 
url=file:/Users/ranger/Documents/test.doc
koffice (lib kofficecore): [KoMainWindow pointer (0x119be30) to widget 
kword-mainwindow#1, geometry=800x600+473+217] Saving recent file
s list into config. instance()=0x116bc30
kparts: 0x11b5a70 emitting activePartChanged 0x0
kparts: Part::~Part 0x201a400
kdecore (KLibLoader): The KLibLoader contains the library libxsltexport 
(0x3313550)
kdecore (KLibLoader): The KLibLoader contains the library libkwordpart 
(0x116b840)
---(snip!)---

So for some reason it's having problems with the xslt filter, even 
though I have libxsltimport and export in my $KDEDIR/lib/kde3 and the 
xsl files are there in the apps/xsltfilter tree.

Looks like a different issue.  :(

> One thing I noted is that KOffice still hasn't solved the problem of the kdeinit
> modules (being linked to, from the binary). AFAIK solving this (with kdeinit_LTLIBRARIES
> like in the rest of KDE CVS) requires dropping support for KDE 3.1 (kdeinit
> won't look for the right symbol? Is this correct?). But this might lead to 
> problems on your platforms (bigger problems than only word/excel filter though).

Right, I'm pretty much assuming that my patches to make koffice work on 
Mac OS X will have to be local until such time as you drop kde 3.x < 3.2 
support.  I'm OK with that, as long as somewhere down the road I won't 
have to maintain them myself anymore.  =)

As far as I'm aware, the kdeinit stuff isn't what's causing the issue, 
unless import filters use main() to start up (I haven't had the 
opportunity to dig that deep yet, but I would be suprised if they do).

I just changed anywhere there was a bin_* in the Makefile.am's.  The 
bigger issue is that there are a number of places non-kdeinit-related 
where modules (usually kparts) are getting linked against as if they 
were shared libraries.

I don't know if stuff like this is causing other strange issues that I 
won't find immediately; it's ugly and hackish, and not really the 
correct solution, especially considering how picky darwin's linker is:

Index: filters/karbon/ai/Makefile.am
===================================================================
RCS file: /home/kde/koffice/filters/karbon/ai/Makefile.am,v
retrieving revision 1.16
diff -u -r1.16 Makefile.am
--- filters/karbon/ai/Makefile.am       18 Sep 2002 19:27:21 -0000      1.16
+++ filters/karbon/ai/Makefile.am       11 Nov 2003 04:27:54 -0000
@@ -2,7 +2,7 @@

  libkarbonaiimport_la_LIBADD = \
         $(LIB_KOFFICEUI) \
-       ../../../karbon/libkarbonpart.la
+       ../../../karbon/libkarboncommon.la

  libkarbonaiimport_la_LDFLAGS = \
         $(all_libraries) \
Index: karbon/Makefile.am
===================================================================
RCS file: /home/kde/koffice/karbon/Makefile.am,v
retrieving revision 1.63
diff -u -r1.63 Makefile.am
--- karbon/Makefile.am  16 Oct 2003 07:55:10 -0000      1.63
+++ karbon/Makefile.am  11 Nov 2003 04:27:59 -0000
@@ -12,22 +12,21 @@

  SUBDIRS = commands visitors core shapes widgets dialogs dockers render 
tools . plugins data pics

-bin_PROGRAMS = karbon
-
-lib_LTLIBRARIES = karbon.la
-kde_module_LTLIBRARIES = libkarbonbase.la libkarbonpart.la
-
-libkarbonpart_la_SOURCES = karbon_factory.cc   karbon_resourceserver.cc 
        karbon_part.cc  karbon_part_iface.cc    karbon_part_iface.skel 
karbon_view.cc  karbon_view_iface.c
c       karbon_view_iface.skel karbon_drag.cpp
+bin_PROGRAMS =
+lib_LTLIBRARIES = libkarboncommon.la libkarbonbase.la
+kdeinit_LTLIBRARIES = karbon.la
+kde_module_LTLIBRARIES = libkarbonpart.la

  libkarbonbase_la_SOURCES = \
         karbon_view_base.cc \
         karbon_part_base.cc

-libkarbonbase_la_LDFLAGS = $(KDE_PLUGIN)
+libkarbonbase_la_LDFLAGS = $(KDE_RPATH)
  libkarbonbase_la_LIBADD = $(LIB_KOFFICEUI)

-libkarbonpart_la_LDFLAGS = $(KDE_PLUGIN) $(LIBFREETYPE_RPATH)
-libkarbonpart_la_LIBADD = $(LIB_KOFFICEUI) $(LIB_KOPAINTER) \
+libkarboncommon_la_SOURCES = karbon_factory.cc 
karbon_resourceserver.cc        karbon_part.cc  karbon_part_iface.cc 
karbon_part_iface.skel  karbon_view.cc  karbon_view
_iface.cc       karbon_view_iface.skel karbon_drag.cpp
+libkarboncommon_la_LDFLAGS = $(KDE_RPATH) $(LIBFREETYPE_RPATH)
+libkarboncommon_la_LIBADD  = $(LIB_KOFFICEUI) $(LIB_KOPAINTER) \
         dockers/libkarbondockers.la \
         widgets/libkarbonwidgets.la \
         render/libvpainter.la \
@@ -43,18 +42,17 @@
         $(LIBFONTCONFIG_LIBS) \
         $(LIBFREETYPE_LIBS)

+libkarbonpart_la_SOURCES = dummy.cpp
+libkarbonpart_la_LDFLAGS = $(KDE_PLUGIN) $(LIBFREETYPE_RPATH)
+libkarbonpart_la_LIBADD = libkarboncommon.la
  libkarbonpart_la_METASOURCES = AUTO

  karbon_la_SOURCES = main.cc
  karbon_la_LDFLAGS = $(all_libraries) -module -avoid-version
-karbon_la_LIBADD = libkarbonpart.la
-
-karbon_SOURCES = dummy.cc
-karbon_LDFLAGS = $(all_libraries) $(KDE_RPATH)
-karbon_LDADD = karbon.la
+karbon_la_LIBADD = libkarboncommon.la

-dummy.cc:
-       echo > dummy.cc
+dummy.cpp:
+       echo > dummy.cpp

  noinst_HEADERS = \
         karbon_factory.h \
Index: karbon/main.cc
===================================================================
RCS file: /home/kde/koffice/karbon/main.cc,v
retrieving revision 1.13
diff -u -r1.13 main.cc
--- karbon/main.cc      15 May 2003 12:31:42 -0000      1.13
+++ karbon/main.cc      11 Nov 2003 04:27:59 -0000
@@ -34,7 +34,7 @@
                 KCmdLineLastOption
         };

-int main( int argc, char* argv[] )
+extern "C" int kdemain( int argc, char* argv[] )
  {
         KCmdLineArgs::init( argc, argv, KarbonFactory::aboutData() );
         KCmdLineArgs::addCmdLineOptions( options );


-- 
Benjamin Reed a.k.a. Ranger Rick -- http://ranger.befunk.com/
gpg: 6401 D02A A35F 55E9 D7DD  71C5 52EF A366 D3F6 65FE
* porthos grumbles ... stinking virus writers
<slackd> it's not so much the virus writers out there as it is the
   high-quality virus-reading software people have installed today


[Attachment #5 (application/pgp-signature)]

____________________________________
koffice mailing list
koffice@mail.kde.org
To unsubscribe please visit:
https://mail.kde.org/mailman/listinfo/koffice


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic