Gideon compile failure

Richard Dale Richard_Dale at tipitina.demon.co.uk
Thu May 16 12:50:06 UTC 2002


This isn't a gideon compilation error, it's a KDevelop one. I fixed it by 
adding the missing PartController::setServiceType() method, and an instance 
variable 'PartController::m_presetEncoding.

The editor in KDevelop is hardwired, so at the moment the new instance 
variable isn't used. This is the PartController::editDocument() method in 
KDevelop:

void PartController::editDocument(const KURL &url, int lineNum)
{
    CKDevelop::getInstance()->switchToFile( url.path(), lineNum );
}

In gideon, it does a lot more and uses the m_presetEncoding string. But I 
don't know who the expert on gideon kpart/kdevelop integration is, and what 
plans there are for being able to load editor parts.

-- Richard


On Thursday 16 May 2002 8:40 am, Ivan Hawkes wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wednesday 15 May 2002 7:25 pm, Ravikiran Rajagopal wrote:
> > Doesn't look like it would be difficult to fix:
>
> Got the same problem here...bit annoying as I don't have a lot of time to
> work on Gideon and I'm flat out getting a copy out of CVS that actually
> compiles. Could people kindly ensure that all source code compiles before
> they commit to CVS - that way we can all be at max productivity. I've spent
> the last week booking out copies of the code, waiting for 'make' to finish
> it's work, only to discover the code failed somewhere near (I hope) the
> end.
>
> Now, I know I could fix the bug, but risk trampling on code someone else is
> currently working on, and that's even more annoying (for them). I'll fix it
> on saturday if no-one else has got it by then.
>
> > source='/par/devel/src/kde3/kdevelop/kdevelop/partcontroller.cpp'
> > object='partco
> > ntroller.o' libtool=no \
> > depfile='.deps/partcontroller.Po' tmpdepfile='.deps/partcontroller.TPo' \
> > depmode=gcc3 /bin/sh /par/devel/src/kde3/kdevelop/admin/depcomp \
> > g++ -DHAVE_CONFIG_H -I. -I/par/devel/src/kde3/kdevelop/kdevelop -I..
> > -I/par/deve
> > l/src/kde3/kdevelop/lib/qextmdi/include -I../kdevelop/ctags
> > -I../kdevelop/kpp -I
> > /par/devel/src/kde3/kdevelop/kdevelop/kpp
> > -I/par/devel/src/kde3/kdevelop/lib/int
> > erfaces -I/par/devel/src/kde3/kdevelop/lib/sourceinfo
> > -I/par/devel/src/kde3/kdev
> > elop/lib/util -I/par/devel/src/kde3/kdevelop/lib/structure
> > -I/opt007/kde3/includ
> > e -I/opt007/kde3/qt/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT
> > -D_REENT
> > RANT  -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall
> > -pedan
> > tic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi
> > -D_XOPEN_SOURC
> > E=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions
> > -fno-check-new
> >   -c -o partcontroller.o `test -f
> > /par/devel/src/kde3/kdevelop/kdevelop/partcont
> > roller.cpp || echo
> > '/par/devel/src/kde3/kdevelop/kdevelop/'`/par/devel/src/kde3/
> > kdevelop/kdevelop/partcontroller.cpp
> > /par/devel/src/kde3/kdevelop/kdevelop/partcontroller.cpp: In function
> > `void PartController::createInstance (QWidget *)':
> > /par/devel/src/kde3/kdevelop/kdevelop/partcontroller.cpp:84: cannot
> > allocate an object of type
> > `PartController'
> > /par/devel/src/kde3/kdevelop/kdevelop/partcontroller.cpp:84:   since the
> > following virtual functions
> > are abstract:
> > /par/devel/src/kde3/kdevelop/lib/interfaces/kdevpartcontroller.h:17:
> > void KDevPartController::setServiceType (const QString &)
> > /par/devel/src/kde3/kdevelop/kdevelop/partcontroller.cpp: In method `void
> > PartCo
> > ntroller::showDocument
> > (const KURL &, int)':
> > /par/devel/src/kde3/kdevelop/kdevelop/partcontroller.cpp:101: warning:
> > unused pa
> > rameter `const KURL
> > &url'
> > /par/devel/src/kde3/kdevelop/kdevelop/partcontroller.cpp:101: warning:
> > unused pa
> > rameter `int lineNum'
> > make[3]: *** [partcontroller.o] Error 1
> >
> >
> > _______________________________________________
> > Kdevelop-devel mailing list
> > Kdevelop-devel at barney.cs.uni-potsdam.de
> > http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
>
> - --
> Ciao,
>      Ivan Hawkes <BlackHawk>
>
>     "Life, don't talk to me about life...", Marvin the Paranoid Android
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.5.8
>
> iQA/AwUBPONiX2KLnTKzOO4NEQLTFwCdEBD8/hFfdGsAPpU/dpGRRexa9OIAoNP0
> o7WiHTPNfAKPuiSXEnwvmZZi
> =zUZ8
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Kdevelop-devel mailing list
> Kdevelop-devel at barney.cs.uni-potsdam.de
> http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel




More information about the KDevelop-devel mailing list