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

List:       koffice
Subject:    Problems while compiling filters/kword/msword/
From:       Jonathan Brugge <jonathan () tweakers ! net>
Date:       2003-09-12 16:11:18
[Download RAW message or body]

During compilation of filters/kword/msword/ I get the following compilation 
error:
------ BEGIN -------
kde3@odysseus:/usr/src/cvs-kde/koffice/filters/kword/msword$ make
cd ../../.. && /bin/sh ./config.status filters/kword/msword/Makefile depfiles
fast creating filters/kword/msword/Makefile
config.status: executing depfiles commands
source='document.cpp' object='document.lo' libtool=yes \
depfile='.deps/document.Plo' tmpdepfile='.deps/document.TPlo' \
depmode=gcc3 /bin/sh ../../../admin/depcomp \
/bin/sh ../../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H 
-I. -I. -I../../.. -I. -I../../../lib/kofficeui -I../../../lib/kofficeui 
-I../../../lib/kofficecore -I../../../lib/kofficecore -I../../../lib/store 
-I../../../lib/store -I../../../lib/kwmf -I../../../lib/kwmf  -I/usr/src/
kde3/include -I/usr/src/qt-copy/include -I/usr/X11R6/include   
-DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef 
-Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 
-D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 
-Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new 
-fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL 
-DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o document.lo `test -f 'document.cpp' 
|| echo './'`document.cpp
In file included from document.cpp:23:
graphicshandler.h:30: error: `GraphicsHandler' is not a class or namespace
graphicshandler.h:30: error: invalid base-class specification
graphicshandler.h:38: error: no class template named `GraphicsHandler' in `
   wvWare'
graphicshandler.h:38: error: syntax error before `&' token
document.cpp: In constructor `Document::Document(const std::string&,
   QDomDocument&, QDomDocument&, QDomElement&, KoFilterChain*)':
document.cpp:62: error: `setGraphicsHandler' undeclared (first use this
   function)
document.cpp:62: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
make: *** [document.lo] Error 1
kde3@odysseus:/usr/src/cvs-kde/koffice/filters/kword/msword$
------ END -------
(CVS as of today, both wv2 and KOffice)

The steps I took before compiling:
- I installed wv2 - from CVS, 0.1.9 from tarball and 0.1.8 from Debian/
Unstable (installations from tarball and CVS went into /usr/local)
- I reran make -f Makefile.cvs and ./configure in the toplevel 
KOffice-directory

When I encountered the compilation error, I tried other versions of wv2. When 
that didn't work, I took a closer look at the config.log and found the 
following lines:

configure:29890: checking for wv2-config
configure:29944: result: /usr/local/bin/wv2-config
configure:30037: WARNING: You need at least version 0.2 of libwv2

Now I don't know how I can find 0.2 if even CVS doesn't even carry that 
version number. Next thing I tried was adding extra options to ./configure, 
so I was sure it looked in /usr/local for libwv2. When that didn't work, I 
manually added an include for /usr/local/include to the compilation command - 
shouldn't be needed and it indeed did not solve the problem. Various new 
checkouts of the relevant KOffice-directory and wv2 didn't help, so now I'm 
more or less stuck. I have some simple MSWord-documents that I have to read 
and I would like to use KWord for it - I don't really have enough space on my 
main partition for OpenOffice and running 'strings mydocument.doc | less' 
_does_ work, but it's not really user friendly to read documents like 
that :P.

Does any of you have any idea how to get this directory to compile? Running 
'strace make' shows that it does indeed find the wv2-directory, but grepping 
it for "GraphicsHandler" doesn't return anything. I guess graphicshandler.h 
tries to use some new function/class that is not yet in CVS - if that's true, 
where can I find an updated version of wv2?

Thanks in advance for any help,

Jonathan Brugge

P.S.: please CC replies to me, since I'm not on the list.
P.S.2: Somewhere, I read that sourceforge did have problems with their 
CVS-servers - could that be the reason that I don't get the newest sources 
and thus don't have the class GraphicsHandler?
____________________________________
koffice mailing list
koffice@mail.kde.org
To unsubscribe please visit:
http://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