Compiling gvmd from source failed : sqlite3 not found [though already installed]

I am trying to configure openvas so that scanned can be run from command line.
I have successfully installed openvasd and gvm-tools from source.
However I get following error while trying to install gvmd from source.

pi@NanoPi-NEO2:/tmp/gvmd/build$ cmake …
Configuring Greenbone Vulnerability Manager…
Install prefix: /usr
Checking for module ‘sqlite3>=3.8.3’

CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
src/CMakeLists.txt:40 (pkg_check_modules)

– Configuring incomplete, errors occurred!
See also “/tmp/gvmd/CMakeFiles/CMakeOutput.log”.
See also “/tmp/gvmd/CMakeFiles/CMakeError.log”.

I already have installed sqlite3:

pi@NanoPi-NEO2:/tmp/gvmd/build$ sqlite3 --version
3.11.0 2016-02-15 17:29:24 3d862f207e3adc00f78066799ac5a8c282430a5f

Am I missing out something.

Solved it by removing the sqlite3 previously installed and installing it from source.
http://www.linuxfromscratch.org/blfs/view/svn/server/sqlite.html

Please READ the output before posting here …

Just some additional notes:

When building from source please have a look at the INSTALL(.md) files shipped with each source package where the prerequisites are listed. If you check the INSTALL.md of the gvmd you can see that you need to install the sqlite3 developement packages, the sqlite3 binary is not enough: