#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/libmapnik2.so.

(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/libxml2.so
-- Found Freetype2: /usr/lib/x86_64-linux-gnu/libfreetype.so
-- Found Sqlite3: /usr/lib/x86_64-linux-gnu/libsqlite3.so
-- 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 - 2012-05-19
    • priority: 5 --> 8
    • assigned_to: garmo --> nobody
  • Hamish B

    Hamish B - 2012-05-19

    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 - 2012-05-19
    • status: open --> closed-duplicate

Log in to post a comment.