Problems building MDI files

Johnas @ Work jic at atl.meitca.com
Mon Apr 17 14:01:05 UTC 2000


I recently installed the KDK 1.1 rpm onto my system and had trouble building an MDI application.  I posted this message on the KDevelop Phorum:

I am trying to build the KScribble example. When I create an KDE2 MDI project under KDevelop 1.1, I get a warning under automake: 

Shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
Shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
Warning: Found old .po.gmo rules in po/Makefile.in new po rules not added.
Cannot find .//index.SGML 

The autoconf/automake complete successfully though. However, when I subsequently try to build the project (skeleton source should compile and run shouldn't it?) I get several error messages from the kscribble.cpp file. It wants to reference a qapplication method that it says is not there. 

I installed rpm's from kdk 1.1, glimpse 4.12, agrep 2.04, kdelibs2 and its develop rpm, qt2.1.0 and its develop rpm, and htdig 3.1.5. I followed all directions in the KDE Applications Tutorials. Simpler non-MDI project build fine. What's wrong? Can anyone help me? Thanks 

Ralf Nolden responded with:

You can ignore the warning you described. It would be better to give me the *exact* error on the kscribble.cpp file you have. It should run however, but I haven´t tested it the last weeks.

In response I wrote:

Dear Ralf: 

Below is the output in the message window after trying to build KScribble (skeleton code).

Making clean in . 
gmake[1]: Entering directory `/home/jic/c/kscribble/kscribble' 
rm -f kscribble.moc.cpp kscribbleview.moc.cpp kscribbledoc.moc.cpp 
rm -f kscribble.all_cpp.cpp 
test -z "kscribble " || rm -f kscribble 
rm -rf .libs _libs 
rm -f *.o core *.core 
rm -f *.lo 
gmake[1]: Leaving directory `/home/jic/c/kscribble/kscribble' 
Making clean in docs 
gmake[1]: Entering directory `/home/jic/c/kscribble/kscribble/docs' 
Making clean in . 
gmake[2]: Entering directory `/home/jic/c/kscribble/kscribble/docs' 
gmake[2]: Nothing to be done for `clean-am'. 
gmake[2]: Leaving directory `/home/jic/c/kscribble/kscribble/docs' 
Making clean in en 
gmake[2]: Entering directory `/home/jic/c/kscribble/kscribble/docs/en' 
gmake[2]: Nothing to be done for `clean'. 
gmake[2]: Leaving directory `/home/jic/c/kscribble/kscribble/docs/en' 
gmake[1]: Leaving directory `/home/jic/c/kscribble/kscribble/docs' 
*** success *** 
Making all in docs 
gmake[1]: Entering directory `/home/jic/c/kscribble/kscribble/docs' 
Making all in en 
gmake[2]: Entering directory `/home/jic/c/kscribble/kscribble/docs/en' 
gmake[2]: Nothing to be done for `all'. 
gmake[2]: Leaving directory `/home/jic/c/kscribble/kscribble/docs/en' 
gmake[2]: Entering directory `/home/jic/c/kscribble/kscribble/docs' 
gmake[2]: Nothing to be done for `all-am'. 
gmake[2]: Leaving directory `/home/jic/c/kscribble/kscribble/docs' 
gmake[1]: Leaving directory `/home/jic/c/kscribble/kscribble/docs' 
gmake[1]: Entering directory `/home/jic/c/kscribble/kscribble' 
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde2/include -I/usr/lib/qt-2.1.0/include -I/usr/X11R6/include -O0 -g3 -Wall -c kscribbleview.cpp 
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde2/include -I/usr/lib/qt-2.1.0/include -I/usr/X11R6/include -O0 -g3 -Wall -c kscribbledoc.cpp 
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde2/include -I/usr/lib/qt-2.1.0/include -I/usr/X11R6/include -O0 -g3 -Wall -c kscribble.cpp 
kscribble.cpp: In method `void KScribbleApp::setWndTitle(QWidget *)': 
kscribble.cpp:239: no matching function for call to `QWorkspace::activeClient ()' 
kscribble.cpp: In method `void KScribbleApp::createClient(KScribbleDoc *)': 
kscribble.cpp:284: no matching function for call to `QWorkspace::clientList ()' 
kscribble.cpp: In method `bool KScribbleApp::eventFilter(QObject *, QEvent *)': 
kscribble.cpp:447: no matching function for call to `QWorkspace::clientList ()' 
kscribble.cpp:450: no matching function for call to `QWorkspace::activeClient ()' 
kscribble.cpp: In method `void KScribbleApp::slotFileSave()': 
kscribble.cpp:499: no matching function for call to `QWorkspace::activeClient ()' 
kscribble.cpp: In method `void KScribbleApp::slotFileSaveAs()': 
kscribble.cpp:522: no matching function for call to `QWorkspace::activeClient ()' 
kscribble.cpp: In method `void KScribbleApp::slotFileClose()': 
kscribble.cpp:544: no matching function for call to `QWorkspace::activeClient ()' 
kscribble.cpp: In method `void KScribbleApp::slotFilePrint()': 
kscribble.cpp:559: no matching function for call to `QWorkspace::activeClient ()' 
kscribble.cpp: In method `void KScribbleApp::slotEditUndo()': 
kscribble.cpp:590: no matching function for call to `QWorkspace::activeClient ()' 
kscribble.cpp: In method `void KScribbleApp::slotEditCut()': 
kscribble.cpp:601: no matching function for call to `QWorkspace::activeClient ()' 
kscribble.cpp: In method `void KScribbleApp::slotEditCopy()': 
kscribble.cpp:612: no matching function for call to `QWorkspace::activeClient ()' 
kscribble.cpp: In method `void KScribbleApp::slotEditPaste()': 
kscribble.cpp:623: no matching function for call to `QWorkspace::activeClient ()' 
kscribble.cpp: In method `void KScribbleApp::slotWindowNewWindow()': 
kscribble.cpp:672: no matching function for call to `QWorkspace::activeClient ()' 
kscribble.cpp: In method `void KScribbleApp::windowMenuAboutToShow()': 
kscribble.cpp:705: no matching function for call to `QWorkspace::clientList ()' 
kscribble.cpp:713: no matching function for call to `QWorkspace::clientList ()' 
kscribble.cpp:717: no matching function for call to `QWorkspace::activeClient ()' 
kscribble.cpp: In method `void KScribbleApp::windowMenuActivated(int)': 
kscribble.cpp:723: no matching function for call to `QWorkspace::clientList ()' 
gmake[1]: *** [kscribble.o] Error 1 
gmake[1]: Leaving directory `/home/jic/c/kscribble/kscribble' 
gmake: *** [all-recursive] Error 1 
*** failed *** 

Since that posting, I have not heard any response.  In the meantime, I tried to look up the activeClient and clientList methods in the documentation on the Qt and KDE libraries.  These methods don't seem to exist.  I also tried to find QWorkspace.h on my system.  That file does not seem to exist.  Could anyone please help me?

Thanks,

Johnas  Cukier
Principal Technical Staff
Mitsubishi Electric ITA
571 Central Avenue, Suite 115
New Providence, NJ 07974
Phone:  (908)665-1200 ext. 20
FAX:    (908)665-2414
email:  jic at atl.meitca.com
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20000417/a8815368/attachment.html>


More information about the KDevelop mailing list