Martin Gräßlin wrote:
But honestly I doubt that Ubuntu would include any
Trinity specific version of
KWin given that there are no other packages for Trinity available.
Yes, that's true. But wouldn't you agree that this package would be
suitable for more than just Trinity? :) There are more window-managers
packaged that are not related to a specific DE. I would treat this
version of kwin4 as such as well.
With which
options exactly would you compile this version? Would
disabling *all* build options give a representable build of kwin4? There
are some options that are not fully obvious to me. What happens when
kwin4 wouldn't have decorations?
well the options do what they name. If you
disable decorations there won't be
decorations, quite simple :-) It's a build option used for KDE's tablet user
interface.
So no turning all build options off doesn't make any sense.
Alright, that makes sense :)
If there would
be a short set of complete commands to fetch the source,
configure it with limited dependencies, etc. it could also be put on the
Trinity wiki to encourage testing.
Excerpt from my Jenkins build job to test the
compile options used for Plasma
Active:
mkdir $WORKSPACE/../build
cd $WORKSPACE/../build
cmake -
DCMAKE_PREFIX_PATH=/usr/share/tomcat7/.jenkins/jobs/kdelibs-4.8/install/ \
-DNepomuk_FOUND=FALSE \
-DWITH_OpenGL=OFF \
-DKWIN_PLASMA_ACTIVE=ON \
-DCMAKE_INSTALL_PREFIX=$WORKSPACE/../install \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
$WORKSPACE/../../kde-workspace/workspace
cd kwin
make -j3
make install
I used these commands now:
git clone
git://anongit.kde.org/kde-workspace
mkdir build
cmake -DNepomuk_FOUND=FALSE -DWITH_OpenGL=OFF -DKWIN_PLASMA_ACTIVE=OFF \
-DKWIN_BUILD_XRENDER_COMPOSITING=OFF -DKWIN_BUILD_ACTIVITIES=OFF \
../kde-workspace
cd kwin
make -j3
But it fails with this compilation error:
[ 44%] Built target oxygen-shadow-demo
/home/julius/src/kwin4/kde-workspace/kwin/kcmkwin/kwincompositing/main.cpp:97:0:
warning: "XRENDER_INDEX" redefined [enabled by default]
/home/julius/src/kwin4/kde-workspace/kwin/kcmkwin/kwincompositing/main.cpp:93:0:
note: this is the location of the previous definition
[ 44%] Building CXX object
kwin/effects/CMakeFiles/kwin4_effect_builtins.dir/magnifier/magnifier.o
[ 44%] Building CXX object
kwin/effects/CMakeFiles/kwin4_effect_gles_builtins.dir/magnifier/magnifier.o
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:
In member function 'virtual void KWin::MagnifierEffect::paintScreen(int,
QRegion, KWin::ScreenPaintData&)':
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:173:20:
error: 'XTransform' does not name a type
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:179:20:
error: 'XTransform' does not name a type
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:185:42:
error: 'PictOpSrc' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:186:105:
error: 'XRenderComposite' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:188:13:
error: 'xform' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:188:57:
error: 'XDoubleToFixed' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:190:87:
error: 'XRenderSetPictureTransform' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:191:112:
error: 'XRenderSetPictureFilter' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:195:82:
error: 'identity' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:200:13:
error: 'XRenderColor' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:200:26:
error: expected ';' before 'c'
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:201:91:
error: 'c' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:201:102:
error: 'XRenderFillRectangles' was not declared in this scope
make[2]: ***
[kwin/effects/CMakeFiles/kwin4_effect_builtins.dir/magnifier/magnifier.o] Error
1
make[1]: *** [kwin/effects/CMakeFiles/kwin4_effect_builtins.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 44%] Building CXX object
kwin/effects/CMakeFiles/kwin4_effect_gles_builtins.dir/snaphelper/snaphelper.o
/home/julius/src/kwin4/kde-workspace/kwin/effects/snaphelper/snaphelper.cpp:
In member function 'virtual void KWin::SnapHelperEffect::postPaintScreen()':
/home/julius/src/kwin4/kde-workspace/kwin/effects/snaphelper/snaphelper.cpp:168:17:
error: 'XRenderColor' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/snaphelper/snaphelper.cpp:168:30:
error: expected ';' before 'c'
/home/julius/src/kwin4/kde-workspace/kwin/effects/snaphelper/snaphelper.cpp:169:50:
error: 'PictOpOver' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/snaphelper/snaphelper.cpp:169:96:
error: 'c' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/snaphelper/snaphelper.cpp:169:107:
error: 'XRenderFillRectangles' was not declared in this scope
make[2]: ***
[kwin/effects/CMakeFiles/kwin4_effect_gles_builtins.dir/snaphelper/snaphelper.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
[ 44%] Building CXX object
kwin/kcmkwin/kwincompositing/CMakeFiles/kcm_kwincompositing.dir/__/__/compositingprefs.o
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:
In member function 'virtual void KWin::MagnifierEffect::paintScreen(int,
QRegion, KWin::ScreenPaintData&)':
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:173:20:
error: 'XTransform' does not name a type
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:179:20:
error: 'XTransform' does not name a type
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:185:42:
error: 'PictOpSrc' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:186:105:
error: 'XRenderComposite' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:188:13:
error: 'xform' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:188:57:
error: 'XDoubleToFixed' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:190:87:
error: 'XRenderSetPictureTransform' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:191:112:
error: 'XRenderSetPictureFilter' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:195:82:
error: 'identity' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:200:13:
error: 'XRenderColor' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:200:26:
error: expected ';' before 'c'
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:201:91:
error: 'c' was not declared in this scope
/home/julius/src/kwin4/kde-workspace/kwin/effects/magnifier/magnifier.cpp:201:102:
error: 'XRenderFillRectangles' was not declared in this scope
make[2]: ***
[kwin/effects/CMakeFiles/kwin4_effect_gles_builtins.dir/magnifier/magnifier.o]
Error 1
make[1]: ***
[kwin/effects/CMakeFiles/kwin4_effect_gles_builtins.dir/all] Error 2
[ 44%] Building CXX object
kwin/kcmkwin/kwincompositing/CMakeFiles/kcm_kwincompositing.dir/__/__/libkwineffects/kwinglobals.o
/home/julius/src/kwin4/kde-workspace/kwin/kcmkwin/kwincompositing/main.cpp:
In constructor
'KWin::KWinCompositingConfig::KWinCompositingConfig(QWidget*, const
QVariantList&)':
/home/julius/src/kwin4/kde-workspace/kwin/kcmkwin/kwincompositing/main.cpp:96:8:
error: 'class Ui::KWinCompositingConfig' has no member named
'xrenderGroup'
make[2]: ***
[kwin/kcmkwin/kwincompositing/CMakeFiles/kcm_kwincompositing.dir/main.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: ***
[kwin/kcmkwin/kwincompositing/CMakeFiles/kcm_kwincompositing.dir/all]
Error 2
make: *** [all] Error 2
Are my KDE libraries too old?
One small thing. Right now it is necessary to check out the complete
kde-workspace to compile kwin. It would seem easier if kwin would be
separate from the rest of kde-workspace. Or does kwin depend on most of
kde-workspace anyhow?
Thanks,
Julius