Unity 3d

Components and branches

  • Nux:
    • GLES 2 branch is already merged upstream
    • lp:nux should be the reference when building and testing for GLES
  • Unity:
    • Most GLES changes applied upstream, protected with #ifdefs.
    • Some small WIP changes/fixes not merged yet.
    • Branch lp:~linaro-graphics-wg/unity/linaro-gles2
  • Compiz:
    • In the past it was tracked at a git branch by Travis
    • Still to be merged upstream
    • Current tree is tracked by branch lp:~linaro-graphics-wg/compiz-core/linaro-gles2
  • Compiz-plugins-main:
    • In the past it was also tracked by a git branch by Travis
    • Currently maintained by branch at lp:~linaro-graphics-wg/compiz-plugins-main/linaro-gles2
  • libcompizconfig:
    • Package needs a rebuild after new compiz is installed
    • This is just because of the ABI bump at Compiz

Build instructions

Please make sure to follow the build order, otherwise the component will most likely to fail.

Also, please make sure you're building and installing at your correct system path. Bellow I'm using /usr as the default prefix, but you can change to /usr/local or any other place if you want.

Before running, make sure you don't have any plugins in places that will take precedence over what you installed (eg if you installed in /usr ensure ~/.compiz-1/, /usr/lib/compiz/ are clean).

Install dependencies

  1. sudo apt-get install libgles2-mesa-dev(or the correct -dev package for the GLES2 drivers you want to use)
  2. sudo apt-get install gnome-common
  3. sudo apt-get build-dep compiz libcompizconfig0 nux unity


Building Compiz with GLES support:

  1. bzr branch lp:~linaro-graphics-wg/compiz-core/linaro-gles2 compiz-core-gles2
  2. cd compiz-core-gles2
  3. DEFAULT_PLUGINS="core bailer detection composite opengl decor mousepoll vpswitch regex animation snap expo move compiztoolbox place grid imgpng gnomecompat wall ezoom workarounds staticswitcher resize fade scale session"
  4. mkdir build
  5. cd build

  7. make
  8. sudo make install
  9. sudo cp ../cmake/FindOpenGLES2.cmake /usr/share/cmake-2.8/Modules/


Rebuilding libcompizconfig because of Compiz's ABI bump:

  1. apt-get source libcompizconfig0
  2. cd libcompizconfig-
  3. dpkg-buildpackage -uc -us
  4. sudo dpkg -i ../libcompizconfig0_0.9.5.94-0ubuntu*.deb ../libcompizconfig0-dev_0.9.5.94-0ubuntu*.deb


Building Compiz-plugins-main with GLES support:

  1. bzr branch lp:~linaro-graphics-wg/compiz-plugins-main/linaro-gles2 compiz-plugins-main-gles2
  2. cd compiz-plugins-main-gles2
  3. mkdir build
  4. cd build
  6. sudo make install


Building NUX with GLES support:

  1. bzr branch lp:nux
  2. cd nux
  3. ./autogen.sh
  4. ./configure --prefix=/usr --disable-tests --enable-opengles-20
  5. make
  6. sudo make install


Building Unity with GLES support:

  1. bzr branch lp:~linaro-graphics-wg/unity/linaro-gles2 unity-gles2
  2. cd unity-gles2
  3. mkdir build
  4. cd build
  6. make
  7. sudo make install

Daily Builds (recipes)

Daily builds for all components are published at the PPA https://launchpad.net/~linaro-graphics-wg/+archive/daily



Etherpad: http://pad.linaro.org/unity-sync

WorkingGroups/Middleware/Graphics/Unity3D (last modified 2012-03-09 18:10:16)