Re: Porting KDE3 to IRIX / MipsPro

Marcus Camen <[email protected]>
Newsgroups gmane.comp.kde.non-linux
Message-ID <[email protected]>
On Friday 03 May 2002 14:47, Michael Matz wrote:
>
> On Thu, 2 May 2002, Marcus Camen wrote:
> > right now I am porting KDE3 to IRIX using the MipsPro 6.3 compiler on a 1
> > processor R3000 and using the MipsPro 7.3 compiler on a 32 processor
> > (R10k) machine.
>
> It once worked so it shouldn't be that difficult.  Just make sure you use
> the newest MIPSpro compiler.  6.3 is certainly too old.  I don't remember
> exactly which version of 7.3 I used, and don't have our IRIX machines
> anymore.

Yep. It seems to run stable with 7.3 but not with 6.3.

> > Well, I get a number of different compilation and runtime errors. Most of
> > the compile errors can be solved by adding something like
> >
> >   using namespace KParts;
>
> This shouldn't be necessary with a modern C++ compiler.  Please show an
> instance of that problem which fails with 7.3.
>
> Post patches.  We most probably don't want uglyfying patches in CVS for
> the 6.3 version of the compiler.

Yes. This is why I asked. ;-)   Let's take for example 
kdelibs/interfaces/ktexteditor:
The compile errors are always like

    cc-3168 CC: ERROR File = editor.moc, Line = 76
    A name followed by "::" must be a class or namespace name.
    return ReadWritePart::qt_invoke(_id,_o);

My fix / workaround / ugly hack is to modify editor.h

*** editor.h_ori        Fri May  3 18:14:46 2002
--- editor.h    Fri May  3 18:15:44 2002
***************
*** 21,26 ****
--- 21,28 ----

  #include <kparts/part.h>

+ using namespace KParts;
+
  namespace KTextEditor
  {

I know that this shouldn't by necessary with a modern compiler but so far I 
haven't found another solution (maybe moc has to be modified ?). MipsPro 7.3 
seems to be as broken as 6.3.

Well, maybe Carsten Kroll has some ideas? Carsten?

--
Marcus Camen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.