Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.


#57 gpsdrive-2.11 fails to compile with mapnik-2.0.0

Mapnik (7)

The following cmake error occurs when attempting to compile GpsDrive 2.11 on the current release of Mapnik (2.0.0), it is unable to locate the mapnik libraries, even though they are installed as /usr/lib/

(precise)allison@isele:~/src/gpsdrive/build$ cmake -DCMAKE_BUILD_TYPE=Debug ../gpsdrive-2.11
CMake Warning (dev) at CMakeLists.txt:31 (include):
Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH
and POP. Run "cmake --help-policy CMP0011" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

The included script


affects policy settings. CMake is implying the NO_POLICY_SCOPE option for
compatibility, so the effects are applied to the including context.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning at /usr/share/cmake-2.8/Modules/CPack.cmake:236 (MESSAGE):
CPack.cmake has already been included!!
Call Stack (most recent call first):
CMakeLists.txt:38 (include)

-- Can not find glibconfig
CMake Error at cmake/Modules/FindGTK2.cmake:364 (MESSAGE):
Could NOT find GTK2
Call Stack (most recent call first):
src/CMakeLists.txt:5 (find_package)

-- Found XML2: /usr/lib/x86_64-linux-gnu/
-- Found Freetype2: /usr/lib/x86_64-linux-gnu/
-- Found Sqlite3: /usr/lib/x86_64-linux-gnu/
-- WARNING: you are using the obsolete 'PKGCONFIG' macro, use FindPkgConfig
-- PKGCONFIG() indicates that libgps is not installed (install the package which contains libgps.pc if you want to support this feature)
-- Found The Following Boost Libraries:
-- filesystem
-- Boost Version: ..
CMake Error at cmake/Modules/FindMapnik.cmake:66 (message):
Could not find Mapnik
Call Stack (most recent call first):
src/CMakeLists.txt:32 (find_package)

-- Configuring incomplete, errors occurred!


  • Hamish B
    Hamish B

    • priority: 5 --> 8
    • assigned_to: garmo --> nobody
  • Hamish B
    Hamish B

    library name has changed from "mapnik" to "mapnik2", so an adjustment is needed:

    sed -i -e 's+^ mapnik$+ mapnik2+' cmake/Modules/FindMapnik.cmake

    (and also the API updated in the code :)


  • Hamish B
    Hamish B

    • status: open --> closed-duplicate