This forum has been archived. All content is frozen. Please use KDE Discuss instead.

I can't compile kdebase-workspace 4.4.5 on Lucid

Tags: None
(comma "," separated)
gameower
Registered Member
Posts
3
Karma
0
Hello, I am trying to build kdebase-workspace 4.4.5 on Lucid but i'm stuck. When i try to build it i get the following error :

Code: Select all
[ 86%] Building CXX object kcontrol/randr/CMakeFiles/kcm_randr.dir/krandrmodule.o
In file included from /home/linux/kdebase-workspace-4.4.5/kcontrol/randr/outputconfig.h:28,
                 from /home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randrconfig.h:25,
                 from /home/linux/kdebase-workspace-4.4.5/kcontrol/randr/krandrmodule.cpp:25:
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:41: error: expected ‘)’ before ‘*’ token
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:48: error: ISO C++ forbids declaration of ‘RandRScreen’ with no type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:48: error: expected ‘;’ before ‘*’ token
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:67: error: ‘CrtcList’ does not name a type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:70: error: ISO C++ forbids declaration of ‘RandRCrtc’ with no type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:70: error: expected ‘;’ before ‘*’ token
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:75: error: ‘ModeList’ does not name a type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:145: error: ISO C++ forbids declaration of ‘RandRCrtc’ with no type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:145: error: expected ‘;’ before ‘*’ token
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:146: error: ‘RandRCrtc’ has not been declared
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:151: error: ‘RandRCrtc’ has not been declared
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:159: error: ‘CrtcList’ does not name a type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:161: error: ISO C++ forbids declaration of ‘RandRScreen’ with no type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:161: error: expected ‘;’ before ‘*’ token
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:162: error: ISO C++ forbids declaration of ‘RandRCrtc’ with no type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:162: error: expected ‘;’ before ‘*’ token
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:173: error: ‘ModeList’ does not name a type
make[2]: ** [kcontrol/randr/CMakeFiles/kcm_randr.dir/krandrmodule.o] Erro 1
make[1]: ** [kcontrol/randr/CMakeFiles/kcm_randr.dir/all] Erro 2
make: ** [all] Erro 2


I couldn't find anything about it. The code can be seen here :
(full source : http://kdebase-workspace.sourcearchive. ... ource.html )

Code: Select all
ifndef __RANDROUTPUT_H__
#define __RANDROUTPUT_H__

#include <QObject>
#include <QString>
#include <QRect>

#include "randr.h"
#include "randrmode.h"

class QAction;
class KConfig;
     
/** Class representing an RROutput identifier. This class is used
 * to control a particular output's configuration (i.e., the mode or
 * refresh rate of a DVI-I port, or the resolution of a VGA port). */
00036 class RandROutput : public QObject
{
      Q_OBJECT

public:
      RandROutput(RandRScreen *parent, RROutput id);
      ~RandROutput();
     
      /** Returns the internal RANDR identifier for a particular output. */
      RROutput id() const;
     
      /** Return the screen that this output belongs to. */
      RandRScreen *screen() const;
     
      void loadSettings(bool notify = false);
     
      /** Handle an event from RANDR signifying a change in this output's
       * configuration. */
      void handleEvent(XRROutputChangeNotifyEvent *event);
      void handlePropertyEvent(XRROutputPropertyNotifyEvent *event);


RandROutput(RandRScreen *parent, RROutput id);

I've also tried to include "randrscreen.h" but without luck!

Can anybody help me?

Thanks in advance.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Try adding an include for the header containing RandRCrtc just below the #define.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
gameower
Registered Member
Posts
3
Karma
0
Thanks but it didn't work :(.

I don't know if it's relevant, but i'm compiling in a VM using virtualbox 4.0 running on natty.

I've added #include "randrcrtc.h" right after the define, but now it just gives me more errors.

Also I tried to build right after installing Lucid again without success, the same error is shown.


The error:
Code: Select all
[ 86%] Building CXX object kcontrol/randr/CMakeFiles/kcm_randr.dir/krandrmodule.o
In file included from /home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:22,
                 from /home/linux/kdebase-workspace-4.4.5/kcontrol/randr/outputconfig.h:28,
                 from /home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randrconfig.h:25,
                 from /home/linux/kdebase-workspace-4.4.5/kcontrol/randr/krandrmodule.cpp:25:
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randrcrtc.h:37: error: expected ‘)’ before ‘*’ token
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randrcrtc.h:48: error: ‘RandRMode’ does not name a type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randrcrtc.h:65: error: ‘OutputList’ does not name a type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randrcrtc.h:67: error: ‘ModeList’ does not name a type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randrcrtc.h:89: error: ‘OutputList’ does not name a type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randrcrtc.h:90: error: ‘OutputList’ does not name a type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randrcrtc.h:93: error: ISO C++ forbids declaration of ‘RandRScreen’ with no type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randrcrtc.h:93: error: expected ‘;’ before ‘*’ token
In file included from /home/linux/kdebase-workspace-4.4.5/kcontrol/randr/outputconfig.h:28,
                 from /home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randrconfig.h:25,
                 from /home/linux/kdebase-workspace-4.4.5/kcontrol/randr/krandrmodule.cpp:25:
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:43: error: expected ‘)’ before ‘*’ token
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:50: error: ISO C++ forbids declaration of ‘RandRScreen’ with no type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:50: error: expected ‘;’ before ‘*’ token
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:69: error: ‘CrtcList’ does not name a type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:77: error: ‘ModeList’ does not name a type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:161: error: ‘CrtcList’ does not name a type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:163: error: ISO C++ forbids declaration of ‘RandRScreen’ with no type
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:163: error: expected ‘;’ before ‘*’ token
/home/linux/kdebase-workspace-4.4.5/kcontrol/randr/randroutput.h:175: error: ‘ModeList’ does not name a type
make[2]: ** [kcontrol/randr/CMakeFiles/kcm_randr.dir/krandrmodule.o] Erro 1
make[1]: ** [kcontrol/randr/CMakeFiles/kcm_randr.dir/all] Erro 2
make: ** [all] Erro 2


Anybody has any other suggestion? Can i provide any other relevant info?

Thanks in advance.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Can you please check to see if you have all the needed X development packages installed?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
gameower
Registered Member
Posts
3
Karma
0
About the packages, to install them I have run "apt-get build-dep kdebase-workspace", that's the only way i know to find out the needed packages!

These are the relevant ones that "dpkg -l" lists for me as currently installed! Is there any other way to find out if I need more of them?


Code: Select all
ii  kdebase-workspace-dev                 4:4.4.5-0ubuntu1                                development files for the KDE 4 base workspace module
ii  kdelibs5-dev                          4:4.4.5-0ubuntu1.1                              development files for the KDE 4 core libraries
ii  kdepimlibs5-dev                       4:4.4.5-0ubuntu1.1                              development files for the KDE 4 PIM libraries
ii  libice-dev                            2:1.0.6-1                                       X11 Inter-Client Exchange library (development headers)
ii  libx11-dev                            2:1.3.2-1ubuntu3                                X11 client-side library (development headers)
ii  libxau-dev                            1:1.0.5-1                                       X11 authorisation library (development headers)
ii  libxcb1-dev                           1.5-2                                           X C Binding, development files
ii  libxcomposite-dev                     1:0.4.1-1                                       X11 Composite extension library (development headers)
ii  libxcursor-dev                        1:1.1.10-1                                      X cursor management library (development files)
ii  libxdamage-dev                        1:1.1.2-1                                       X11 damaged region extension library (development header
ii  libxdmcp-dev                          1:1.0.3-1                                       X11 authorisation library (development headers)
ii  libxext-dev                           2:1.1.1-2                                       X11 miscellaneous extensions library (development header
ii  libxfixes-dev                         1:4.0.4-1                                       X11 miscellaneous 'fixes' extension library (development
ii  libxft-dev                            2.1.14-1ubuntu1                                 FreeType-based font drawing library for X (development f
ii  libxi-dev                             2:1.3-3                                         X11 Input extension library (development headers)
ii  libxine-dev                           1.1.17-1ubuntu3                                 the xine video player library, development packages
ii  libxinerama-dev                       2:1.1-2                                         X11 Xinerama extension library (development headers)
ii  libxkbfile-dev                        1:1.0.6-1                                       X11 keyboard file manipulation library (development head
ii  libxklavier-dev                       5.0-0ubuntu1                                    Development files for libxklavier
ii  libxml2-dev                           2.7.6.dfsg-1ubuntu1.2                           Development files for the GNOME XML library
ii  libxrandr-dev                         2:1.3.0-3                                       X11 RandR extension library (development headers)
ii  libxrender-dev                        1:0.9.5-1                                       X Rendering Extension client library (development files)
ii  libxss-dev                            1:1.2.0-2                                       X11 Screen Saver extension library (development headers)
ii  libxt-dev                             1:1.0.7-1                                       X11 toolkit intrinsics library (development headers)
ii  libxtst-dev                           2:1.1.0-2                                       X11 Record extension library (development headers)
ii  libxxf86misc-dev                      1:1.0.2-1                                       X11 XFree86 miscellaneous extension library (development
ii  x11proto-composite-dev                1:0.4.1-1                                       X11 Composite extension wire protocol
ii  x11proto-core-dev                     7.0.16-1                                        X11 core wire protocol and auxiliary headers
ii  x11proto-damage-dev                   1:1.2.0-1                                       X11 Damage extension wire protocol
ii  x11proto-fixes-dev                    1:4.1.1-2                                       X11 Fixes extension wire protocol
ii  x11proto-input-dev                    2.0-2                                           X11 Input extension wire protocol
ii  x11proto-kb-dev                       1.0.4-1                                         X11 XKB extension wire protocol
ii  x11proto-randr-dev                    1.3.1-1                                         X11 RandR extension wire protocol
ii  x11proto-record-dev                   1.14-2                                          X11 Record extension wire protocol
ii  x11proto-render-dev                   2:0.11-1                                        X11 Render extension wire protocol
ii  x11proto-scrnsaver-dev                1.2.0-2                                         X11 Screen Saver extension wire protocol
ii  x11proto-xext-dev                     7.1.1-2                                         X11 various extension wire protocol
ii  x11proto-xf86misc-dev                 0.9.3-1                                         X11 XFree86-Miscellaneous extension wire protocol
ii  x11proto-xinerama-dev                 1.2-2                                           X11 Xinerama extension wire protocol
ii  xserver-xorg-input-evdev              1:2.3.2-5ubuntu1                                X.Org X server -- evdev input driver
ii  xserver-xorg-video-fbdev              1:0.4.1-1ubuntu1                                X.Org X server -- fbdev display driver
ii  xtrans-dev                            1.2.5-1                                         X transport library (development files)
ii  xutils-dev                            1:7.5+2                                         X Window System utility programs for development


Thanks for your help!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I would suggest checking to see if your distribution has any custom patches applied which allow KDE 4.4.5 to be compiled.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]