I am developing in Windows using Qt.

I am currently using Qt version 5.11.3. This comes with a SQLite driver for version 3.24.0. I would like to rebuild the driver using the latest version of SQLite (3.34.0), which I have downloaded to C:\SQLite.

I have downloaded the Qt sources using the Maintenance tool but cannot work out how to build the driver.

Qt is installed at C:\Qt. After checking the README in C:\Qt\5.11.3\Src which came with the sources and the [Qt Documentation about building database drivers](https://doc.qt.io/qt-5/sql-driver.html#building-the-drivers), I have opened a command window and executed the following:

```
cd C:\Qt\5.11.3\Src
PATH=%PATH%;C:\Qt\Tools\mingw530_32\bin
configure -prefix %CD%\qtbase -nomake tests -nomake examples -skip qtwebengine -opensource -confirm-license
cd qtbase\src\plugins\sqldrivers
\Qt\5.11.3\mingw53_32\bin\qmake.exe -- -system-sqlite SQLITE3_PREFIX=C:\SQLite

```

This fails with

> 
> Project ERROR: You cannot configure sqldrivers separately within a top-level build.
> 
> 
> 

What have I done wrong? What should I do differently?