Skip to content

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.

Dependencies

  • cmake
  • gcc
    • 32 bits
      • gcc-multilib package in Arch
      • gcc-multilib package in Ubuntu
  • 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
  • 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 flag qt4 in Gentoo
    • 32 bits
      • lib32-libdbusmenu-qt package in Arch
      • libdbusmenu-qt-dev:i386 package in Ubuntu

How to build

  1. Install git
  2. Clone our modified version of sni-qt
    git clone https://github.com/bil-elmoussaoui/sni-qt
  3. Use terminal to go the cloned directory
    cd ./sni-qt
  4. Create a build folder using
    mkdir build && cd ./build
    • 64bits:
    1. Type in your terminal
      cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ../
    2. And afterwards
      make
    3. sudo make install
    • 32bits:
    1. 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}"
      
    1. Type in your terminal
    cmake -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