Problems building MDI files

Johnas @ Work jic at atl.meitca.com
Mon Apr 17 16:31:39 UTC 2000


Dear David:

I have the following installed:

qt-qgl:  OpenGL extension for Qt version 1.44-15mdk
qt21-devel:  Header files and libraries for developing apps which use Qt2 version:  2.1.0-0.3.1mdk
qt2-devel:  Header files and libraries for developing apps which use Qt2 version:  2.0.1-8mdk
qt-qimgio:  ImageIO extension for Qt version:  1.44-15mdk
qt21:  Shared library for the Qt2 GUI toolkit version 2.1.0-0.3.1mdk
qt:  Shared library for the Qt GUI toolkit version 1.44-15mdk
qt-devel:  Development files and documentation for the Qt GUI toolkit version:  1.44-15mdk
qt2:  Shared library for the Qt2 GUI toolkit version:  2.0.1-8mdk

Perhaps there are too many qt libraries installed.  I originally installed Mandrake Linux 7.0 which came with KDevelop 1.0 and the accompanying libraries.  I subsequently uninstalled KDevelop 1.0 and installed KDK 1.1.  I then installed the Qt 2.1 and KDE 2 libraries and associated software as instructed in the documentation for the KScribble example.  Now, you see the result.  Any suggestions?

Thanks,

Johnas

  ----- Original Message ----- 
  From: David BOURIAUD 
  To: kdevelop at barney.cs.uni-potsdam.de 
  Sent: Monday, April 17, 2000 9:32 AM
  Subject: Re: Problems building MDI files


  "Johnas @ Work" wrote: 
    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 directoryShell-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? ThanksRalf 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

  Hi to you and to all ! 
  I had time to try a simple KDE2 MDI app (just by adding a new project, that's all) in order to help you, but unfortunately, it doesn't work on my computer. Anyway, that's 'normal' since I haven't installed qt2.0 yet ! I just have qt1.44 which works fine (I haven't been successful so far to install qt2.0 !). 
  This makes me think the following : have you installed the qt2.1.0 runtime, or devel (or both ?) ? Cause, if you just have the runtime (eg. the libs, as far as I know), you don't have the package required to develop ! As far as I remember, I had to install qt-devel1.44 and qt-libs1.44 in order to have kdevelop to work ! 
  Maybe that's your problem ? I hope this would be of any help. 
  I've seen that you installed ht://dig as well... Does it work ? I've installed the same version of ht://dig, but kdevelop refuses to see neither it, nor htsearch installed. Does it work on your system ? If yes, how did you do ? Thanks by advance ... 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20000417/2dd14454/attachment.html>


More information about the KDevelop mailing list