Building QGIS: Could not find a package configuration file provided by “QJSON”

Building QGIS
I was building QGIS source code on my own laptop when I got the following warning during the configuration of the CMake files

CMake Warning at CMakeLists.txt:316 (FIND_PACKAGE):
   By not providing "FindQJSON.cmake" in CMAKE_MODULE_PATH this project has
   asked CMake to find a package configuration file provided by "QJSON", but
   CMake did not find one.

   Could not find a package configuration file provided by "QJSON" with any of
   the following names:
                       
     QJSONConfig.cmake 
     qjson-config.cmake

   Add the installation prefix of "QJSON" to CMAKE_PREFIX_PATH or set
   "QJSON_DIR" to a directory containing one of the above files.  If "QJSON"
   provides a separate development package or SDK, be sure it has been
   installed.

This is an already opend issue at the QGIS Bug report #14982 and fixing it is really simple: just install the gjson library via

$ yaourt -S qjson

Then remove the CMakeChache and build QGIS again…everything should work fine, without errors or warning!

GWH!
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

About Francesco Serafin

I am a PhD student at the Department of Civil, Environmental and Mechanical Engineering at the University of Trento. My two greatest loves: Computer Science and Water (take three with my Lenovo!:D). As a result, the aim of my life is to make both passions coexist. My gpg public key available at https://pgp.mit.edu

Leave a Reply

Your email address will not be published.

*