Nux

Comment 51 for bug 1087534

Revision history for this message
Eleni Maria Stea (hikiko) wrote :

Could you try with this branch: lp:~hikiko/unity/unity.bug-1087534 please?

Quick build Instructions:
------------------------------------
sudo apt-get install bzr
sudo apt-get build-dep unity
sudo apt-get build-dep nux

cd ~
mkdir staging
cd staging

mkdir src
mkdir install

cd src
bzr branch lp:nux
bzr branch lp:~hikiko/unity/unity.bug-1087534

export PREFIX=~/staging/install/unity
export PATH=$PREFIX/bin:$PATH
export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH"
export LD_LIBRARY_PATH="$PREFIX/lib:$PREFIX/lib/libunity:/usr/lib/i386-linux-gnu/libunity:$LD_LIBRARY_PATH"
export LD_RUN_PATH="$PREFIX/lib:$LD_RUN_PATH"
export XDG_DATA_DIRS="$PREFIX/share:/usr/share:/usr/local/share:$XDG_DATA_DIRS"
export CFLAGS="-O0 -g"
export CXXFLAGS="-O0 -g"

mkdir -p $PREFIX

cd nux
./autogen.sh --prefix=$PREFIX --enable-debug

(if autogen complains about any package -it shouldn't normally- apt-cache search package name and sudo apt-get install the -dev version)

make && make install

cd $PREFIX

cmake ../../src/unity -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_BUILD_TYPE=Debug -DCOMPIZ_PLUGIN_INSTALL_TYPE=local -DGSETTINGS_LOCALINSTALL=ON

(if cmake complains about any package -it shouldn't normally- apt-cache search package name and sudo apt-get install the -dev version)

make
make install

To run the unity branch:
unset LD_RUN_PATH
./bin/unity --replace ccp

To return to your installed unity version, switch to a tty and:
unity --replace ccp

If something went wrong with the previous command:
rm ~/.compiz-1/*
unity --replace ccp

or as a final solution
sudo restart lightdm

To remove everything:
rm -r ~/staging

Thanks a lot again!