Skip to content

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.

Dependencies

  • cmake
  • build-essential
  • qt4-default
    • qt-devel package in Fedora
  • dbusmenu-qt
    • libdbusmenu-qt-dev package in Ubuntu
    • dbusmenu-qt-devel package in Fedora

How to build

  1. Install bzr
  2. Clone the branch bzr branch lp:~cybre/elementary+/sni-qt-patched
  3. Use terminal to go the cloned directory cd ./sni-qt-patched
  4. Type in your terminal cmake ./
  5. And afterwards make
  6. 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-qtand gcc.

  1. Clone the branch in a new folder bzr branch lp:~cybre/elementary+/sni-qt-patched
  2. Create a build folder using mkdir build && cd ./build
  3. 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}"
      
  4. Type in your terminal
cmake ../sni-qt-patched -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DQT_PLUGINS_DIR=/usr/lib32/qt/plugins
  1. 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.

Clone this wiki locally