-
Notifications
You must be signed in to change notification settings - Fork 61
How to build sni qt
Bilal Elmoussaoui edited this page Jan 17, 2016
·
33 revisions
If you're not using an Debian based distro, the best way to install the patched version of sni-qt is by building it from source code.
cmake
build-essential
-
qt4-default
-
qt-devel
package in Fedora
-
-
dbusmenu-qt
-
libdbusmenu-qt-dev
package in Ubuntu -
dbusmenu-qt-devel
package in Fedora
-
- Install
bzr
- Clone the branch
bzr branch lp:~cybre/elementary+/sni-qt-patched
- Use terminal to go the cloned directory
cd ./sni-qt-patched
- Type in your terminal
cmake ./
- And afterwards
make
sudo make install
In order to compile a 32 bits version of sni-qt
you will need to install a 32 bits version of qt4-default
, dbusmenu-qt
and gcc
.
- Clone the branch in a new folder
bzr branch lp:~cybre/elementary+/sni-qt-patched
- Create a
build
folder usingmkdir build && cd ./build
- 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 ../sni-qt-patched -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.