Notes for compiling on OpenSuSE

Leap 42.2

These steps work for compiling the latest source code:

  1. $ sudo zypper install antlr3c-devel git patterns-openSUSE-devel_qt5 sqlite3-devel
  2. $ git clone https://github.com/sqlitebrowser/sqlitebrowser
  3. $ cd sqlitebrowser
  4. $ cmake -Wno-dev -DFORCE_INTERNAL_QSCINTILLA=ON
  5. $ make
  6. $ sudo make install
  7. ...
  8. Install the project...
  9. -- Install configuration: "Release"
  10. -- Installing: /usr/local/bin/sqlitebrowser
  11. -- Up-to-date: /usr/local/share/icons/hicolor/256x256/apps/sqlitebrowser.png
  12. -- Up-to-date: /usr/local/share/applications/sqlitebrowser.desktop
  13. -- Up-to-date: /usr/local/share/appdata/sqlitebrowser.desktop.appdata.xml

Note, we use -DFORCE_INTERNAL_QSCINTILLA=ON to ensure our bundled version of QScintilla is used. Leap 42.2 does provide a version of QScintilla, but it’s compiled using Qt4 which will screw things up for us if used.

The finished result is installed as /usr/local/bin/sqlitebrowser, with a menu entry shortcut added in the “Development” Category:

OpenSuSE Leap 42.2 Xfce menu entry

Tumbleweed

The above instructions also work for OpenSuSE Tumbleweed, with one exception.

On Tumbleweed, the shortcut in the “Developmnet” Category doesn’t appear in the UI. The program itself works fine though when launched manually from the command line.