Skip to content

Commit

Permalink
build: Remove any mentions of qmake from the documentation
Browse files Browse the repository at this point in the history
This removes all mentions of the qmake build system from our build
instructions because we are planning to remove support for qmake in the
near future. Building using cmake should work fine on all platforms.
  • Loading branch information
MKleusberg committed Aug 13, 2021
1 parent 060e925 commit c54304c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 35 deletions.
41 changes: 7 additions & 34 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ It requires SQLite and Qt 5.x to be installed first. These are the
$ brew tap sqlitebrowser/sqlite3
$ brew install sqlitefts5
$ brew install qt
$ brew install cmake
$ brew link sqlitefts5 --force

Then it's just a matter of getting the source:
Expand All @@ -148,43 +149,16 @@ its name (eg ~/tmp/foo'), as compiling will error out.

And compiling it:

$ cd sqlitebrowser
$ qmake CONFIG+="c++14"
$ make
$ brew unlink sqlitefts5
$ mv src/DB\ Browser\ for\ SQLite.app /Applications/

An icon for "DB Browser for SQLite" should now be in your main OSX Applications
list, ready to launch.

**Note 2** - There have been occasional [reports of compilation problems on OSX
10.9](https://github.com/sqlitebrowser/sqlitebrowser/issues/38), with the
'make' step complaining about no targets. This seems to be solvable by
running:

$ qmake -spec macx-g++ CONFIG+="c++14"

or:

$ qmake -spec macx-llvm CONFIG+="c++14"

(before the 'make' step)

### Building with CMake

Install Qt and SQLite as instructed in the previous section and clone the repo to a directory (it's `sqlitebrowser` as usual).

Install CMake:

$ brew install cmake

And build with these commands:

$ cd sqlitebrowser
$ mkdir build # You can easily make a fresh build again by removing this directory
$ cd build
$ cmake -DCMAKE_PREFIX_PATH=/usr/local/opt/qt ..
$ cmake --build .
$ brew unlink sqlitefts5
$ mv sqlitebrowser.app /Applications/DB\ Browser\ for\ SQLite.app

An icon for "DB Browser for SQLite" should now be in your main OSX Applications
list, ready to launch.

### Compiling on Windows with MSVC

Expand Down Expand Up @@ -252,12 +226,11 @@ to download and compile the code as described on the

If SQLCipher is installed, simply follow the standard instructions for your
platform but enable the 'sqlcipher' build option by replacing any calls to
cmake and qmake like this:
cmake like this:
```
If it says... Change it to...
cmake cmake -Dsqlcipher=1
cmake .. cmake -Dsqlcipher=1 ..
qmake qmake CONFIG+=sqlcipher
```

## Building and running the Unit Tests
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ Check `LICENSE-PLUGINS` for other rights regarding included third-party resource
[download-img]: https://img.shields.io/github/downloads/sqlitebrowser/sqlitebrowser/total.svg
[download]: https://github.com/sqlitebrowser/sqlitebrowser/releases

[qt-img]: https://img.shields.io/badge/Qt-qmake-green.svg
[qt-img]: https://img.shields.io/badge/Qt-cmake-green.svg
[qt]: https://www.qt.io

[coverity-img]: https://img.shields.io/coverity/scan/11712.svg
Expand Down

0 comments on commit c54304c

Please sign in to comment.