-
Notifications
You must be signed in to change notification settings - Fork 61
How to build sni qt
Bilal Elmoussaoui edited this page Jan 22, 2017
·
33 revisions
If you're not using a Debian based distro, the best way to install the patched version of sni-qt is by building it from source code.
cmake
-
gcc
- 32 bits
-
gcc-multilib
package in Arch -
gcc-multilib
package in Ubuntu
-
- 32 bits
-
qt4-default
- 64 bits
-
libqt4-dev
in Ubuntu -
qt-devel
package in Fedora
-
- 32 bits
-
lib32-qt4
package in Arch -
libqt4-dev:i386
package in Ubuntu
-
- 64 bits
-
dbusmenu-qt
- 64 bits
-
libdbusmenu-qt-dev
package in Ubuntu -
dbusmenu-qt-devel
package in Fedora -
libdbusmenu-qt4
package in Arch -
libdbusmenu-qt
package with flagqt4
in Gentoo
-
- 32 bits
-
lib32-libdbusmenu-qt
package in Arch -
libdbusmenu-qt-dev:i386
package in Ubuntu
-
- 64 bits
- Install
git
- Clone our modified version of sni-qt
git clone https://github.com/bil-elmoussaoui/sni-qt
- Use terminal to go the cloned directory
cd ./sni-qt
- Create a
build
folder using
mkdir build && cd ./build
-
- 64bits:
- Type in your terminal
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ../
- And afterwards
make
sudo make install
- 32bits:
- Execute those commands one after an other to compile a 32 bits version of the code
export CC="gcc -m32" export CXX="g++ -m32" export PKG_CONFIG_PATH=/usr/lib32/pkgconfig export CFLAGS="$(pkg-config --cflags QtCore) ${CFLAGS}" export CXXFLAGS="$(pkg-config --cflags QtCore) ${CXXFLAGS}"
- Type in your terminal
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DQT_PLUGINS_DIR=/usr/lib32/qt/plugins ../
make && sudo make install
And voilá! You've built and installed the patched version of sni-qt, if you've any issue with that you can open a new issue here.