InstallationGuideFromSource
Size: 3862
Comment:
|
Size: 2587
Comment: Add tip about make -jN
|
Deletions are marked like this. | Additions are marked like this. |
Line 8: | Line 8: |
sudo apt-get install libglib2.0-dev libgdk-pixbuf2.0-dev libcairo2-dev libpng12-dev libglew1.5-dev libglewmx1.5-dev libxxf86vm-dev libgl1-mesa-dev libsigc++-2.0-dev libpango1.0-dev doxygen cmake build-essential debhelper pkg-config valac intltool libgee-dev libunique-dev libclutter-1.0-dev libclutter-gtk-0.10-dev libclutk-dev libbamf-dev gsettings-desktop-schemas-dev libgconf2-dev libglib2.0-dev libdbusmenu-glib-dev libgnome-desktop-dev libgtk2.0-dev libpango1.0-dev libgnomeui-dev libdee-dev libindicator-dev libunity-misc-dev libutouch-grail-dev libxcb-icccm1-dev compizconfig-settings-manager compiz-dev libboost-dev libboost-serialization-dev libmetacityprivate-dev }}} | sudo apt-get install libglib2.0-dev libgdk-pixbuf2.0-dev libcairo2-dev libpng12-dev libglew1.5-dev libglewmx1.5-dev libxxf86vm-dev libgl1-mesa-dev libsigc++-2.0-dev libpango1.0-dev doxygen cmake build-essential debhelper pkg-config valac intltool libgee-dev libunique-dev libclutter-1.0-dev libclutter-gtk-0.10-dev libclutk-dev libbamf-dev gsettings-desktop-schemas-dev libgconf2-dev libglib2.0-dev libdbusmenu-glib-dev libgnome-desktop-dev libgtk2.0-dev libpango1.0-dev libgnomeui-dev libdee-dev libindicator-dev libunity-misc-dev libutouch-grail-dev libxcb-icccm1-dev compizconfig-settings-manager compiz-dev libboost-dev libboost-serialization-dev libmetacity-dev python-dev cython gnome-common libpcre3-dev }}} |
Line 12: | Line 12: |
You'll need to build compiz manually as well - but first one library that Unity depends on but isn't yet packaged in Natty called Nux: | You will probably need to grab the latest version of Nux to get Unity trunk going: |
Line 22: | Line 22: |
and then Compiz with the glib mainloop integration patch (will go into core at some point) core: {{{ git clone git://git.compiz.org/users/dbo/compiz-with-glib-mainloop cd compiz-with-glib-mainloop mkdir build cd build cmake .. -DCMAKE_INSTALL_PREFIX=/opt/unity make sudo make findcompiz_install sudo make install }}} |
(!) ''Tip: Most modern desktops and laptops have several cores. You can greatly speed up the compilation by taking advantage of this. The {{{make}}} command have build in support for this which you can activate using the {{{-jN}}} switch where {{{N}}} is the number of jobs to run in parallel. A good rule of thumb is to run 2 times the number of cores on your processor. Thus on a normal dual core computer you should run {{{make -j4}}} to minimize the compilation time.'' |
Line 45: | Line 32: |
libcompizconfig: {{{ git clone git://git.compiz.org/compiz/compizconfig/libcompizconfig cd libcompizconfig mkdir build cd build cmake .. -DCMAKE_INSTALL_PREFIX=/opt/unity make sudo make install }}} compizconfig-python: {{{ git clone git://git.compiz.org/compiz/compizconfig/compizconfig-python cd compizconfig-python python setup.py install --prefix=/opt/unity }}} ccsm: {{{ git clone git://git.compiz.org/compiz/compizconfig/ccsm cd ccsm python setup.py install --prefix=/opt/unity }}} plugins-main: {{{ git clone git://git.compiz.org/compiz/plugins-main cd plugins-main git submodule init git pull origin master git submodule update mkdir build cd build cmake .. -DCMAKE_INSTALL_PREFIX=/opt/unity make sudo make install }}} plugins-extra: {{{ git clone git://git.compiz.org/compiz/plugins-extra cd plugins-extra git submodule init git pull origin master git submodule update mkdir build cd build cmake .. -DCMAKE_INSTALL_PREFIX=/opt/unity make sudo make install }}} |
|
Line 109: | Line 38: |
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCOMPIZ_PLUGIN_INSTALL_TYPE=package -CMAKE_INSTALL_PREFIX=/opt/unity | cmake .. -DCMAKE_BUILD_TYPE=Debug -DCOMPIZ_PLUGIN_INSTALL_TYPE=package -DCMAKE_INSTALL_PREFIX=/opt/unity |
Line 128: | Line 57: |
export PYTHONPATH=/opt/unity/lib/python2.6/site-packages | export PYTHONPATH=/opt/unity/lib/python2.7/site-packages |
Line 132: | Line 61: |
and finally, once that's installed, you can log out and log in and again and then run compiz-unity-setup-env and then restart Compiz (compiz --replace ccp) and then use CompizConfig Settings Manager (ccsm) to search for and enable the Unity plugin! == Maverick from source == Exactly the same as above in Natty, but you'll first need Compiz 0.9.2 patched with glib support. There aren't any packages yet but there is a build script for it in the unity source under the "tools/" directory. After installing that, make sure to update you PKG_CONFIG_PATH and you can then follow the same instructions as Natty. |
and finally, once that's installed, you can log out and log in and again and then run compiz-unity-setup-env and then restart Compiz (compiz --replace) and then use CompizConfig Settings Manager (ccsm) to search for and enable the Unity plugin! |
Building Unity from Source
You'll need a fully updated Natty system, with the latest compiz and bamfdaemon packages installed.
You'll then need to do do this:
sudo apt-get install libglib2.0-dev libgdk-pixbuf2.0-dev libcairo2-dev libpng12-dev libglew1.5-dev libglewmx1.5-dev libxxf86vm-dev libgl1-mesa-dev libsigc++-2.0-dev libpango1.0-dev doxygen cmake build-essential debhelper pkg-config valac intltool libgee-dev libunique-dev libclutter-1.0-dev libclutter-gtk-0.10-dev libclutk-dev libbamf-dev gsettings-desktop-schemas-dev libgconf2-dev libglib2.0-dev libdbusmenu-glib-dev libgnome-desktop-dev libgtk2.0-dev libpango1.0-dev libgnomeui-dev libdee-dev libindicator-dev libunity-misc-dev libutouch-grail-dev libxcb-icccm1-dev compizconfig-settings-manager compiz-dev libboost-dev libboost-serialization-dev libmetacity-dev python-dev cython gnome-common libpcre3-dev
to get all the dependencies.
You will probably need to grab the latest version of Nux to get Unity trunk going:
bzr branch lp:nux cd nux ./autogen.sh --disable-documentation --prefix=/opt/unity make sudo make install
Tip: Most modern desktops and laptops have several cores. You can greatly speed up the compilation by taking advantage of this. The make command have build in support for this which you can activate using the -jN switch where N is the number of jobs to run in parallel. A good rule of thumb is to run 2 times the number of cores on your processor. Thus on a normal dual core computer you should run make -j4 to minimize the compilation time.
exporting paths:
export PKG_CONFIG_PATH=/opt/unity/lib/pkgconfig:${PKG_CONFIG_PATH} export LD_LIBRARY_PATH=/opt/unity/lib:${LD_LIBRARY_PATH} export LD_RUN_PATH=/opt/unity/lib:${LD_RUN_PATH}
and then Unity:
bzr branch lp:unity cd unity mkdir build; cd build cmake .. -DCMAKE_BUILD_TYPE=Debug -DCOMPIZ_PLUGIN_INSTALL_TYPE=package -DCMAKE_INSTALL_PREFIX=/opt/unity make sudo make install
unsetting paths:
unset PKG_CONFIG_PATH unset LD_LIBRARY_PATH unset LD_RUN_PATH
add this to your /home/$USER/.bashrc
function compiz-unity-setup-env { export PATH=/opt/unity/bin:${PATH} export PYTHONPATH=/opt/unity/lib/python2.7/site-packages }
and finally, once that's installed, you can log out and log in and again and then run compiz-unity-setup-env and then restart Compiz (compiz --replace) and then use CompizConfig Settings Manager (ccsm) to search for and enable the Unity plugin!
Unity/InstallationGuideFromSource (last edited 2011-03-01 16:29:22 by c-76-112-212-248)