Find the answer to your Linux question:
Results 1 to 4 of 4
here is a huge list of errors i receive while running make for a window decoration for KDE 3.2: how do i get it to install Code: crystalclient.h:102: error: expected ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2005
    Location
    Toronto
    Posts
    54

    installing a window decoration


    here is a huge list of errors i receive while running make for a window decoration for KDE 3.2:
    how do i get it to install

    Code:
    crystalclient.h:102: error: expected class-name before '{' token
    crystalclient.h:106: error: ISO C++ forbids declaration of `KDecoration' with no type
    crystalclient.h:106: error: `KDecoration' declared as a `virtual' field
    crystalclient.h:106: error: expected `;' before '*' token
    crystalclient.h:142: error: expected class-name before '{' token
    crystalclient.h:145: error: expected `)' before '*' token
    crystalclient.h:160: error: `Position' does not name a type
    crystalclient.h:160: error: extra semicolon
    crystalclient.cc:36: error: expected constructor, destructor, or type conversion before '*' token
    crystalclient.cc:36: error: expected `,' or `;' before '*' token
    crystalclient.cc:71: error: expected constructor, destructor, or type conversion before '*' token
    crystalclient.cc:71: error: expected `,' or `;' before '*' token
    crystalclient.cc:220: error: expected `)' before '*' token
    crystalclient.cc:220: error: expected `,' or `;' before '*' token
    crystalclient.cc: In member function `virtual void CrystalClient::init()':
    crystalclient.cc:241: error: `WResizeNoErase' undeclared (first use this function)
    crystalclient.cc:241: error: (Each undeclared identifier is reported only once for each function it appears in.)
    crystalclient.cc:241: error: `WRepaintNoErase' undeclared (first use this function)
    crystalclient.cc:241: error: `createMainWidget' undeclared (first use this function)
    crystalclient.cc:242: error: `widget' undeclared (first use this function)
    crystalclient.cc:246: error: `NoBackground' undeclared (first use this function)
    crystalclient.cc:263: error: `isPreview' undeclared (first use this function)
    crystalclient.cc:283: error: `options' undeclared (first use this function)
    crystalclient.cc:289: error: `connect' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::updateMask()':
    crystalclient.cc:299: error: `options' undeclared (first use this function)
    crystalclient.cc:299: error: `maximizeMode' undeclared (first use this function)
    crystalclient.cc:299: error: `MaximizeFull' undeclared (first use this function)
    crystalclient.cc:301: error: `widget' undeclared (first use this function)
    crystalclient.cc:301: error: `setMask' undeclared (first use this function)
    crystalclient.cc:306: error: `width' undeclared (first use this function)
    crystalclient.cc:307: error: `height' undeclared (first use this function)
    crystalclient.cc: In member function `CrystalButton* CrystalClient::addButtons(QBoxLayout*, const QString&)':
    crystalclient.cc:363: error: `connect' undeclared (first use this function)
    crystalclient.cc:370: error: `isOnAllDesktops' undeclared (first use this function)
    crystalclient.cc:384: error: `providesContextHelp' undeclared (first use this function)
    crystalclient.cc:394: error: `isMinimizable' undeclared (first use this function)
    crystalclient.cc:408: error: `keepAbove' undeclared (first use this function)
    crystalclient.cc:418: error: `keepBelow' undeclared (first use this function)
    crystalclient.cc:426: error: `isShadeable' undeclared (first use this function)
    crystalclient.cc:436: error: `isMaximizable' undeclared (first use this function)
    crystalclient.cc:437: error: `maximizeMode' undeclared (first use this function)
    crystalclient.cc:437: error: `MaximizeFull' undeclared (first use this function)
    crystalclient.cc:453: error: `isCloseable' undeclared (first use this function)
    crystalclient.cc: In member function `virtual void CrystalClient::captionChange()':
    crystalclient.cc:496: error: `widget' undeclared (first use this function)
    crystalclient.cc: In member function `virtual void CrystalClient::desktopChange()':
    crystalclient.cc:506: error: `isOnAllDesktops' undeclared (first use this function)
    crystalclient.cc: In member function `virtual void CrystalClient::maximizeChange()':
    crystalclient.cc:535: error: `maximizeMode' undeclared (first use this function)
    crystalclient.cc:535: error: `MaximizeFull' undeclared (first use this function)
    crystalclient.cc:542: error: `options' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::updateLayout()':
    crystalclient.cc:564: error: `widget' undeclared (first use this function)
    crystalclient.cc: In member function `virtual void CrystalClient::borders(int&, int&, int&, int&) const':
    crystalclient.cc:596: error: `isShade' undeclared (first use this function)
    crystalclient.cc:598: error: `options' undeclared (first use this function)
    crystalclient.cc:600: error: `maximizeMode' undeclared (first use this function)
    crystalclient.cc:600: error: `MaximizeHorizontal' undeclared (first use this function)
    crystalclient.cc:601: error: `MaximizeVertical' undeclared (first use this function)
    crystalclient.cc: In member function `virtual void CrystalClient::resize(const QSize&)':
    crystalclient.cc:616: error: `widget' undeclared (first use this function)
    crystalclient.cc: In member function `virtual QSize CrystalClient::minimumSize() const':
    crystalclient.cc:626: error: `widget' undeclared (first use this function)
    crystalclient.cc: At global scope:
    crystalclient.cc:634: error: `KDecoration' has not been declared
    crystalclient.cc:634: error: expected constructor, destructor, or type conversion before "CrystalClient"
    crystalclient.cc:634: error: expected `,' or `;' before "CrystalClient"
    crystalclient.cc: In member function `bool CrystalClient::eventFilter(QObject*, QEvent*)':
    crystalclient.cc:675: error: `widget' undeclared (first use this function)
    crystalclient.cc:686: error: `ControlButton' undeclared (first use this function)
    crystalclient.cc:689: error: `processMousePressEvent' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::ClientWindows(Window*, Window*, Window*)':
    crystalclient.cc:725: error: `widget' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::mouseDoubleClickEvent(QMouseEvent*)':
    crystalclient.cc:750: error: `LeftButton' undeclared (first use this function)
    crystalclient.cc:750: error: `titlebarDblClickOperation' undeclared (first use this function)
    crystalclient.cc:754: error: `processMousePressEvent' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::mouseWheelEvent(QWheelEvent*)':
    crystalclient.cc:765: error: 'class CrystalClient' has no member named 'isActive'
    crystalclient.cc:779: error: 'class CrystalClient' has no member named 'desktop'
    crystalclient.cc:779: error: `desktop' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::paintEvent(QPaintEvent*)':
    crystalclient.cc:803: error: `widget' undeclared (first use this function)
    crystalclient.cc:806: error: `options' undeclared (first use this function)
    crystalclient.cc:806: error: `KDecoration' has not been declared
    crystalclient.cc:806: error: `ColorTitleBar' undeclared (first use this function)
    crystalclient.cc:806: error: `isActive' undeclared (first use this function)
    crystalclient.cc:833: error: `KDecoration' has not been declared
    crystalclient.cc:833: error: `ColorFont' undeclared (first use this function)
    crystalclient.cc:841: error: `AlignVCenter' undeclared (first use this function)
    crystalclient.cc:841: error: `caption' undeclared (first use this function)
    crystalclient.cc:879: error: `KDecoration' has not been declared
    crystalclient.cc:879: error: `ColorFrame' undeclared (first use this function)
    crystalclient.cc:884: error: `maximizeMode' undeclared (first use this function)
    crystalclient.cc:884: error: `MaximizeFull' undeclared (first use this function)
    crystalclient.cc:887: error: `width' undeclared (first use this function)
    crystalclient.cc:888: error: `height' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::resizeEvent(QResizeEvent*)':
    crystalclient.cc:937: error: `widget' undeclared (first use this function)
    crystalclient.cc:944: error: `isActive' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::moveEvent(QMoveEvent*)':
    crystalclient.cc:954: error: `widget' undeclared (first use this function)
    crystalclient.cc:961: error: `isActive' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::showEvent(QShowEvent*)':
    crystalclient.cc:975: error: `widget' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::Repaint()':
    crystalclient.cc:981: error: `widget' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::maxButtonPressed()':
    crystalclient.cc:995: error: `MidButton' undeclared (first use this function)
    crystalclient.cc:996: error: `maximizeMode' undeclared (first use this function)
    crystalclient.cc:996: error: `MaximizeVertical' undeclared (first use this function)
    crystalclient.cc:996: error: `maximize' undeclared (first use this function)
    crystalclient.cc:998: error: `RightButton' undeclared (first use this function)
    crystalclient.cc:999: error: `MaximizeHorizontal' undeclared (first use this function)
    crystalclient.cc:1002: error: `MaximizeFull' undeclared (first use this function)
    crystalclient.cc:1002: error: `MaximizeRestore' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::minButtonPressed()':
    crystalclient.cc:1012: error: `MidButton' undeclared (first use this function)
    crystalclient.cc:1013: error: `LowerOp' undeclared (first use this function)
    crystalclient.cc:1013: error: `performWindowOperation' undeclared (first use this function)
    crystalclient.cc:1015: error: `RightButton' undeclared (first use this function)
    crystalclient.cc:1016: error: `isShadeable' undeclared (first use this function)
    crystalclient.cc:1016: error: `isShade' undeclared (first use this function)
    crystalclient.cc:1016: error: `setShade' undeclared (first use this function)
    crystalclient.cc:1019: error: `minimize' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::aboveButtonPressed()':
    crystalclient.cc:1026: error: `keepAbove' undeclared (first use this function)
    crystalclient.cc:1026: error: `setKeepAbove' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::belowButtonPressed()':
    crystalclient.cc:1031: error: `keepBelow' undeclared (first use this function)
    crystalclient.cc:1031: error: `setKeepBelow' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::keepAboveChange(bool)':
    crystalclient.cc:1038: error: `keepAbove' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::keepBelowChange(bool)':
    crystalclient.cc:1046: error: `keepBelow' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::shadeButtonPressed()':
    crystalclient.cc:1054: error: `MidButton' undeclared (first use this function)
    crystalclient.cc:1055: error: `RightButton' undeclared (first use this function)
    crystalclient.cc:1059: error: `isShadeable' undeclared (first use this function)
    crystalclient.cc:1059: error: `isShade' undeclared (first use this function)
    crystalclient.cc:1059: error: `setShade' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::menuButtonPressed()':
    crystalclient.cc:1083: error: `closeWindow' undeclared (first use this function)
    crystalclient.cc:1088: error: no matching function for call to `QTimer::singleShot(int, CrystalClient* const, const char[13])'
    /usr/lib/qt3//include/qtimer.h:59: note: candidates are: static void QTimer::singleShot(int, QObject*, const char*)
    crystalclient.cc: In member function `void CrystalClient::menuPopUp()':
    crystalclient.cc:1095: error: `KDecorationFactory' undeclared (first use this function)
    crystalclient.cc:1095: error: `f' undeclared (first use this function)
    crystalclient.cc:1095: error: `factory' cannot be used as a function
    crystalclient.cc:1096: error: `showWindowMenu' undeclared (first use this function)
    crystalclient.cc: In member function `void CrystalClient::ShowTabMenu(QMouseEvent*)':
    crystalclient.cc:1105: error: `widget' undeclared (first use this function)
    crystalclient.cc:1110: error: 'class CrystalClient' has no member named 'caption'
    crystalclient.cc:1114: error: 'class CrystalFactory' has no member named 'exists'
    crystalclient.cc:1135: error: `grabXServer' undeclared (first use this function)
    crystalclient.cc:1142: error: `ungrabXServer' undeclared (first use this function)
    In file included from crystalclient.cc:1156:
    crystalclient.moc: In static member function `static QMetaObject* CrystalClient::staticMetaObject()':
    crystalclient.moc:54: error: `KDecoration' has not been declared
    crystalclient.moc: In member function `virtual void* CrystalClient::qt_cast(const char*)':
    crystalclient.moc:100: error: `KDecoration' has not been declared
    crystalclient.moc: In member function `virtual bool CrystalClient::qt_invoke(int, QUObject*)':
    crystalclient.moc:117: error: `KDecoration' has not been declared
    crystalclient.moc: In member function `virtual bool CrystalClient::qt_emit(int, QUObject*)':
    crystalclient.moc:124: error: `KDecoration' has not been declared
    crystalclient.moc: In member function `virtual bool CrystalClient::qt_property(int, int, QVariant*)':
    crystalclient.moc:130: error: `KDecoration' has not been declared
    crystalclient.cc: At global scope:
    crystalclient.cc:1043: warning: unused parameter 'set'
    crystalclient.cc:1035: warning: unused parameter 'set'
    crystalclient.cc:83: warning: unused parameter 'changed'
    make[3]: *** [crystalclient.lo] Error 1
    make[3]: Leaving directory `/home/suhail/Installs/crystal-0.9.1/client'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/suhail/Installs/crystal-0.9.1/client'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/suhail/Installs/crystal-0.9.1'
    make: *** [all] Error 2

  2. #2
    Linux Engineer
    Join Date
    Nov 2004
    Location
    Montreal, Canada
    Posts
    1,267
    Why are you trying to compile this file when an rpm is already for this...

    This is the RPM for Crystal Version: 0.9.1
    Native Window Decoration KDE > 3.2 Download Mandrake RPM
    Original website

    Since you use mandrake, make sure you've set your URPM
    Here's an How-To (scroll to the Mandrake section)

    simply type in terminal
    Code:
    urpmi /path/to/rpmfile
    and it will manage all dependencies
    \"Meditative mind\'s is like a vast ocean... whatever strikes the surface, the bottom stays calm\" - Dalai Lama
    \"Competition ultimatly comes down to one thing... a loser and a winner.\" - Ugo Deschamps

  3. #3
    Just Joined!
    Join Date
    Feb 2005
    Posts
    1
    It's probably a bit late to help you now, but for future reference this is how I fixed the exact same problem. I went into System -> Config -> Packaging -> Install Software, did a "Find: in file names" for "kdecoration". It came up with libkdebase4-devel, I installed that, re-ran the make and it all worked!

  4. #4
    Linux Engineer
    Join Date
    Nov 2004
    Location
    Montreal, Canada
    Posts
    1,267
    I went into System -> Config -> Packaging -> Install Software, did a "Find: in file names" for "kdecoration".
    Simply for your information estel KDE control center AND urpmi work the same way, one is graphical the other is in terminal
    \"Meditative mind\'s is like a vast ocean... whatever strikes the surface, the bottom stays calm\" - Dalai Lama
    \"Competition ultimatly comes down to one thing... a loser and a winner.\" - Ugo Deschamps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •