kdevelop on IRIX

Andreas Sturm a_sturm at naimasoft.com
Thu Aug 15 11:03:04 UTC 2002


Hi Falk!

As i prommissed here are the changes to kdevelop to get it running under IRIX. 
I used a cvs of around 8th august. I send it to you just to get comments 
about what i did to the sources (whether there are formal correct or a 
absolut mess). I am going to make patches with a newer cvs in the next 1 1/2 
week (after that i am going into holliday :-)). I did finish a build already 
but stupidly used no debug flags as compiler flags. It keeps on segfaulting 
right after the first short glance of the splashscreen. :-(
So i would suggest the following:
1. give comments about the changes i made; whether they are safe or not. Keep 
in mind that i do have to workaround a namespace bug in the current MIPSpro 
compiler
2. i re-integrate any things which have to be changed
3. do a full debug build to provide more info's (partly finished; did  arts, 
kdelibs and kdebase already)
Is that ok? I appreciate any help of you since i _really_ want kdevelop 
running on IRIX. Thanks a lot for your help!

Andy

Flags:

CFLAGS=-g2 -mips4 -OPT:Olimit=0 
-woff1021,1209,1233,1314,1355,1375,1506,1681,1682,3496 -n32 
-LANG:std:ansi-for-init-scope=ON
CXXFLAGS=-g2 -mips4 -OPT:Olimit=0 
-woff1021,1209,1233,1314,1355,1375,1506,1681,1682,3496 -n32 
-LANG:std:ansi-for-init-scope=ON
LDFLAGS=-n32

changes:

lib/interfaces/kdevpartcontroller.cpp: 13, added 'using namespace KParts'
lib/antlr/src/CharScanner.cpp: changed cctype, cstring to ctype.h, string.h
lib/antlr/src/String.cpp: changed cstdio to stdio.h
lib/antlr/src: added -lCio to the last linkline
parts/classview/digraphview.cpp: 291, changed line to double l = 
sqrt((double)(d.x()*d.x()+d.y()*d.y()));
parts/cppsupport/dbg.h: 17, removed 'using namespace std'

parts/cppsupport/cppccparser.cpp:
cc-1132 CC: ERROR File = cppccparser.cpp, Line = 32
  The class "ifstream" has no member "is_open".

      if( f.is_open ) {
I looked into the fstream.h; no is_open defined; i did look into fstream also 
and there is is_open defined.
I changed fstream.h to fstream and i had to prefix ifstream with std:: then i 
get the following:
cc-1274 CC: ERROR File = cppccparser.cpp, Line = 32
  A pointer to a bound function can only be used to call the function.

      if( f.is_open ) {
and
cc-1408 CC: ERROR File = cppccparser.cpp, Line = 35
  A reference of type "istream &" (not const-qualified) cannot be initialized
          with a value of type "std::ifstream".

          parseObject( f );
parts/cppsupport/cppccparser.cpp: 32,85, changed if ( f.is_open( ) ) to if ( f 
)

parts/cvs/logform.ui.h: removed using namespace std;
parts/astyle/ASBeautifier.cpp: 32, changed cctype to ctype.h
parts/astyle/ASFormatter.cpp, 33, changed cctype to ctype.h
parts/astyle/astyle_adaptor.cpp: 11, added  astyle:: to ASSourceIterator(), 
_content(text)
parts/qeditor/background_parser.cpp: 33, removed 'using namespace std'
parts/qeditor/cindent.cpp: 36, removed 'using namespace std'
parts/qeditor/cpp_colorizer.cpp: 54, removed 'using namespace std'
parts/qeditor/cpp_parser.cpp: 28, removed 'using namespace std'
parts/qeditor/cs_colorizer.cpp: removed 'using namespace std'
parts/qeditor/levelwidget.cpp: removed 'using namespace std'
parts/qeditor/markerwidget.cpp: removed 'using namespace std'
parts/qeditor/qeditor_arghint.cpp: removed 'using namespace std'
parts/qeditor/qeditor_part.cpp: removed 'using namespace std'
parts/qeditor/qeditor_part: 48, added 'using namespace KTextEditor'
parts/qeditor/qeditor_part: 50, added 'using namespace KParts'
parts/qeditor/qeditor_part:201, 221, added QEditorPart:: to 
ReadWritePart::setReadWrite(rw), ReadWritePart::setModified(modified)
parts/qeditor/qeditor.cpp: 473, moved return in void function to line 474
parts/qeditor/qeditor.cpp: removed 'using namespace std'
parts/qeditor/qeditor_part.cpp: removed many #warning (causes an error on 
MIPSpro)
parts/qeditor/qeditor_view.cpp: removed #warning
parts/qeditor/highlightingconfigpage.ui.h: removed 'using namespace std'
parts/qeditor/qeditor_view.moc.cpp: 148, 223, 238, 246, added KTextEditor::
parts/qeditor/qeditor_factory.moc.cpp: 71, 76, 81, 87, changed Factory:: to 
QEditorPartFactory::
src/toplevel_sdi.cpp: 276, added 'using namespace KParts'






More information about the KDevelop-devel mailing list