link problem KDE_2_2_BRANCH

Etay Meiri cl1 at netvision.net.il
Sat Feb 16 21:04:02 UTC 2002


On Mon, Feb 11, 2002 at 12:43:34AM +0200, Etay Meiri wrote:
> Hi,
> 
> I've just updated to KDE_2_2_BRANCH. I did make distclean,configure and
> make and got tons of link errors. Because of a previous mail I upgraded to automake
> 1.5-8 (redhat rawhide) but it didn't help. Here's the errors I get:
> 
> ccompconf.o: In function `QValueListIterator<QString>::QValueListIterator(QValueListNode<QString> *)':
> /home/cl/kde/kdevelop/kdevelop/ccompconf.cpp(.text+0x18): undefined reference to `CCompConfDlg::CCompConfDlg(QWidget *, char const *, unsigned int)'
> /home/cl/kde/kdevelop/kdevelop/ccompconf.cpp(.text+0x22): undefined reference to `CCompConf virtual table'
> /home/cl/kde/kdevelop/kdevelop/ccompconf.cpp(.text+0x29): undefined reference to `CCompConf::QPaintDevice virtual table'
> ccompconf.o: In function `CCompConf::~CCompConf(void)':
> /home/cl/kde/kdevelop/kdevelop/ccompconf.cpp:88: undefined reference to `CCompConf virtual table'

Well, I didn't get any answer but here's what I did to make it compile:
Seems like several sources were missing from their *_SOURCES in Makefile.am,
several *.moc files were generated as *.moc.cpp and their respective cpp files
didn't include them at the end. A complete mess. I'm not an autoconf guru so
I went error by error and hacked the Makefile.ams and several sources until I
got it compiled. A diff is attached. I hope this help somehow.

-- 
Etay Meiri
cl1 at netvision.net.il
-------------- next part --------------
Index: kdevelop/ccompconf.cpp
===================================================================
RCS file: /usr/local/anoncvs/kde/kdevelop/kdevelop/Attic/ccompconf.cpp,v
retrieving revision 1.1.2.2
diff -u -3 -p -c -r1.1.2.2 ccompconf.cpp
*** kdevelop/ccompconf.cpp	2001/12/02 22:44:51	1.1.2.2
--- kdevelop/ccompconf.cpp	2002/02/12 20:41:10
*************** void CCompConf::slotCXXChanged(const QSt
*** 193,195 ****
--- 193,197 ----
  	config->setGroup("Compilearch "+ target_arch_cb->currentText()+"-"+target_platform_cb->currentText());
    config->writeEntry("CXX",cxx);
  }
+ 
+ #include "ccompconf.moc.cpp"
Index: kdevelop/ckonsolewidget.cpp
===================================================================
RCS file: /usr/local/anoncvs/kde/kdevelop/kdevelop/Attic/ckonsolewidget.cpp,v
retrieving revision 1.1.2.2
diff -u -3 -p -c -r1.1.2.2 ckonsolewidget.cpp
*** kdevelop/ckonsolewidget.cpp	2001/07/21 01:06:19	1.1.2.2
--- kdevelop/ckonsolewidget.cpp	2002/02/12 20:41:38
*************** void CKonsoleWidget::showEvent(QShowEven
*** 91,93 ****
--- 91,95 ----
    QWidget::showEvent(ev);
    d->activate(this);
  }
+ 
+ #include "ckonsolewidget.moc.cpp"
Index: kdevelop/clibpropdlgimpl.cpp
===================================================================
RCS file: /usr/local/anoncvs/kde/kdevelop/kdevelop/Attic/clibpropdlgimpl.cpp,v
retrieving revision 1.1.2.2
diff -u -3 -p -c -r1.1.2.2 clibpropdlgimpl.cpp
*** kdevelop/clibpropdlgimpl.cpp	2001/03/17 01:47:41	1.1.2.2
--- kdevelop/clibpropdlgimpl.cpp	2002/02/12 20:41:38
*************** void CLibPropDlgImpl::slotLibChanged(int
*** 65,67 ****
--- 65,69 ----
  {
    GroupBox1->setEnabled(rbId == SHARED_LIB_ID);
  }
+ 
+ #include "clibpropdlgimpl.moc.cpp"
Index: kdevelop/codecompletion_arghint.cpp
===================================================================
RCS file: /usr/local/anoncvs/kde/kdevelop/kdevelop/Attic/codecompletion_arghint.cpp,v
retrieving revision 1.1.2.1
diff -u -3 -p -c -r1.1.2.1 codecompletion_arghint.cpp
*** kdevelop/codecompletion_arghint.cpp	2002/02/09 23:48:40	1.1.2.1
--- kdevelop/codecompletion_arghint.cpp	2002/02/12 20:41:39
*************** QString KDevArgHint::markCurArg()
*** 346,349 ****
  	return strFuncText;
  }
  
! //#include "codecompletion_arghint.moc"
--- 346,349 ----
  	return strFuncText;
  }
  
! #include "codecompletion_arghint.moc.cpp"
Index: kdevelop/cprjcompopts.cpp
===================================================================
RCS file: /usr/local/anoncvs/kde/kdevelop/kdevelop/Attic/cprjcompopts.cpp,v
retrieving revision 1.1.2.6
diff -u -3 -p -c -r1.1.2.6 cprjcompopts.cpp
*** kdevelop/cprjcompopts.cpp	2002/01/03 21:22:21	1.1.2.6
--- kdevelop/cprjcompopts.cpp	2002/02/12 20:41:42
*************** void CPrjCompOpts::connectGUI(){
*** 681,683 ****
--- 681,686 ----
  //        "and prototypes. Otherwise, it will just be a nuisance; "
  //        "this is why we did not make <i>-Wall</i> request these "
  //        "warnings."));
+ //
+ 
+ #include "cprjcompopts.moc.cpp"
Index: kdevelop/ctags/Makefile.am
===================================================================
RCS file: /usr/local/anoncvs/kde/kdevelop/kdevelop/ctags/Attic/Makefile.am,v
retrieving revision 1.1.2.2
diff -u -3 -p -c -r1.1.2.2 Makefile.am
*** kdevelop/ctags/Makefile.am	2001/04/26 19:10:35	1.1.2.2
--- kdevelop/ctags/Makefile.am	2002/02/12 20:42:03
*************** libctags_a_METASOURCES = AUTO
*** 6,12 ****
  
  noinst_LIBRARIES = libctags.a
  
! libctags_a_SOURCES = ctagsdialog_impl.cpp ctagsdialog.ui cctags_interf.cpp cctags.cpp 
  
  
  EXTRA_DIST = cctags.cpp cctags.h cctags_interf.h cctags_interf.cpp ctagsdialog.ui ctagsdialog_impl.cpp ctagsdialog_impl.h 
--- 6,12 ----
  
  noinst_LIBRARIES = libctags.a
  
! libctags_a_SOURCES = ctagsdialog_impl.cpp ctagsdialog.ui cctags_interf.cpp cctags.cpp ctagsdialog.cpp
  
  
  EXTRA_DIST = cctags.cpp cctags.h cctags_interf.h cctags_interf.cpp ctagsdialog.ui ctagsdialog_impl.cpp ctagsdialog_impl.h 
Index: kdevelop/ctags/ctagsdialog_impl.cpp
===================================================================
RCS file: /usr/local/anoncvs/kde/kdevelop/kdevelop/ctags/Attic/ctagsdialog_impl.cpp,v
retrieving revision 1.1.2.9
diff -u -3 -p -c -r1.1.2.9 ctagsdialog_impl.cpp
*** kdevelop/ctags/ctagsdialog_impl.cpp	2001/07/25 21:54:25	1.1.2.9
--- kdevelop/ctags/ctagsdialog_impl.cpp	2002/02/12 20:42:04
*************** void searchTagsDialogImpl::slotGotoTagTy
*** 214,216 ****
--- 214,218 ----
      raise();
    }
  }
+ 
+ #include "ctagsdialog_impl.moc.cpp"
Index: kdevelop/dbg/Makefile.am
===================================================================
RCS file: /usr/local/anoncvs/kde/kdevelop/kdevelop/dbg/Attic/Makefile.am,v
retrieving revision 1.1.2.3.2.13.2.1
diff -u -3 -p -c -r1.1.2.3.2.13.2.1 Makefile.am
*** kdevelop/dbg/Makefile.am	2001/09/11 00:26:59	1.1.2.3.2.13.2.1
--- kdevelop/dbg/Makefile.am	2002/02/12 20:42:04
*************** libkdevelopdbg_la_LDFLAGS = -version-inf
*** 12,18 ****
  
  libkdevelopdbg_la_METASOURCES = AUTO
  
! libkdevelopdbg_la_SOURCES = gdbcontroller.cpp vartree.cpp stty.cpp memview.cpp gdbparser.cpp disassemble.cpp gdbcommand.cpp framestack.cpp dbgcontroller.cpp dbgcommand.cpp brkptmanager.cpp breakpointdialog.cpp breakpoint.cpp 
  
  
  EXTRA_DIST = breakpoint.cpp breakpoint.h breakpointdialog.cpp breakpointdialog.h brkptmanager.cpp brkptmanager.h dbgcommand.cpp dbgcommand.h dbgcontroller.cpp dbgcontroller.h disassemble.h framestack.cpp framestack.h gdbcommand.cpp gdbcommand.h disassemble.cpp gdbcontroller.h gdbparser.cpp gdbparser.h memview.cpp memview.h stty.cpp stty.h vartree.cpp vartree.h gdbcontroller.cpp 
--- 12,18 ----
  
  libkdevelopdbg_la_METASOURCES = AUTO
  
! libkdevelopdbg_la_SOURCES = gdbcontroller.cpp vartree.cpp stty.cpp gdbparser.cpp disassemble.cpp gdbcommand.cpp framestack.cpp dbgcontroller.cpp dbgcommand.cpp brkptmanager.cpp breakpointdialog.cpp breakpoint.cpp dumpmemory.cpp
  
  
  EXTRA_DIST = breakpoint.cpp breakpoint.h breakpointdialog.cpp breakpointdialog.h brkptmanager.cpp brkptmanager.h dbgcommand.cpp dbgcommand.h dbgcontroller.cpp dbgcontroller.h disassemble.h framestack.cpp framestack.h gdbcommand.cpp gdbcommand.h disassemble.cpp gdbcontroller.h gdbparser.cpp gdbparser.h memview.cpp memview.h stty.cpp stty.h vartree.cpp vartree.h gdbcontroller.cpp 
Index: kdevelop/kpp/Makefile.am
===================================================================
RCS file: /usr/local/anoncvs/kde/kdevelop/kdevelop/kpp/Attic/Makefile.am,v
retrieving revision 1.1.2.21
diff -u -3 -p -c -r1.1.2.21 Makefile.am
*** kdevelop/kpp/Makefile.am	2001/05/05 22:29:41	1.1.2.21
--- kdevelop/kpp/Makefile.am	2002/02/12 20:42:10
*************** libkdevelopkpp_la_LDFLAGS = -version-inf
*** 12,18 ****
  
  libkdevelopkpp_la_METASOURCES = AUTO
  
! libkdevelopkpp_la_SOURCES = cdevproject.cpp projectView.ui prefView.ui kpp.cpp cspec.cpp 
  
  
  EXTRA_DIST = README buildrpm.sh cspec.cpp cspec.h kpp.cpp kpp.h prefView.ui projectView.ui template.spec cdevproject.cpp cdevproject.h template-kde.spec template-make.spec 
--- 12,18 ----
  
  libkdevelopkpp_la_METASOURCES = AUTO
  
! libkdevelopkpp_la_SOURCES = cdevproject.cpp projectView.ui prefView.ui kpp.cpp cspec.cpp projectView.cpp
  
  
  EXTRA_DIST = README buildrpm.sh cspec.cpp cspec.h kpp.cpp kpp.h prefView.ui projectView.ui template.spec cdevproject.cpp cdevproject.h template-kde.spec template-make.spec 
Index: kdevelop/kpp/kpp.cpp
===================================================================
RCS file: /usr/local/anoncvs/kde/kdevelop/kdevelop/kpp/Attic/kpp.cpp,v
retrieving revision 1.1.2.14.4.4
diff -u -3 -p -c -r1.1.2.14.4.4 kpp.cpp
*** kdevelop/kpp/kpp.cpp	2002/01/31 00:25:56	1.1.2.14.4.4
--- kdevelop/kpp/kpp.cpp	2002/02/12 20:42:12
*************** QString Kpp::getSummary(){
*** 354,356 ****
--- 354,358 ----
  QString Kpp::getURL(){
    return QLineEdit_8->text();
  }
+ 
+ #include "kpp.moc.cpp"


More information about the KDevelop-devel mailing list