[Marble-devel] How to use the Navigation and OsmPlacemarkData classes?

Kim Tore Jensen kim at incendio.no
Thu May 19 19:35:22 UTC 2016


Hi list,

First of all, I admire your work with Marble. It is quite a powerful library,
thanks for developing and maintaining it.

I have some questions regarding compiling a program against the 16.04 version
of Marble. There are some header files referred to internally in the library,
but that are not being made available in /usr/include/marble. How can I access
the following classes?

    * Navigation, defined in src/lib/marble/declarative/Navigation.h
    * OsmPlacemarkData, defined in src/lib/marble/osm/OsmPlacemarkData.h

What I'm trying to achieve is to access the name of a placemark after running a
search with RouteRequest, and to get turn-by-turn directions. If there is some
other way to do this, I would be happy to know.

I am building Marble on Debian 8 (Jessie) on i686 using:

    cmake -DCMAKE_BUILD_TYPE=Release \
          -DWITH_KF5=FALSE \
          -DCMAKE_INSTALL_PREFIX=/usr \
          -DQTONLY=ON \
          -DBUILD_MARBLE_APPS=NO \
          -DWITH_DESIGNER_PLUGIN=NO \
          -DBUILD_MARBLE_TESTS=NO \
          /path/to/marble

The configuration output states:

    -- Could NOT find Phonon (missing:  PHONON_INCLUDE_DIR PHONON_LIBRARY) 
    CMake Warning at MarbleMacros.cmake:149 (find_package):
      By not providing "FindQt5Positioning.cmake" in CMAKE_MODULE_PATH this
      project has asked CMake to find a package configuration file provided by
      "Qt5Positioning", but CMake did not find one.

      Could not find a package configuration file provided by "Qt5Positioning"
      with any of the following names:

        Qt5PositioningConfig.cmake
        qt5positioning-config.cmake

      Add the installation prefix of "Qt5Positioning" to CMAKE_PREFIX_PATH or set
      "Qt5Positioning_DIR" to a directory containing one of the above files.  If
      "Qt5Positioning" provides a separate development package or SDK, be sure it
      has been installed.
    Call Stack (most recent call first):
      src/lib/marble/declarative/CMakeLists.txt:3 (macro_optional_find_package)


    -- Could NOT find Phonon (missing:  PHONON_INCLUDE_DIR PHONON_LIBRARY) 
    -- Could NOT find QextSerialPort (missing:  QEXTSERIALPORT_INCLUDE_DIR QEXTSERIALPORT_LIBRARIES) 
    -- checking for module 'liblocation>=0.102'

    CMake Warning at MarbleMacros.cmake:149 (find_package):
      By not providing "FindQt5Positioning.cmake" in CMAKE_MODULE_PATH this
      project has asked CMake to find a package configuration file provided by
      "Qt5Positioning", but CMake did not find one.

      Could not find a package configuration file provided by "Qt5Positioning"
      with any of the following names:

        Qt5PositioningConfig.cmake
        qt5positioning-config.cmake

      Add the installation prefix of "Qt5Positioning" to CMAKE_PREFIX_PATH or set
      "Qt5Positioning_DIR" to a directory containing one of the above files.  If
      "Qt5Positioning" provides a separate development package or SDK, be sure it
      has been installed.
    Call Stack (most recent call first):
      src/plugins/positionprovider/CMakeLists.txt:20 (macro_optional_find_package)


    -- Could NOT find libwlocate (missing:  LIBWLOCATE_INCLUDE_DIR LIBWLOCATE_LIBRARIES) 
    -- Could NOT find libshp (missing:  LIBSHP_INCLUDE_DIR LIBSHP_LIBRARIES) 
    -- 
    -- The following OPTIONAL packages have been found:

     * Qt5Gui (required version >= 5.3.2)
     * Qt5WebKit
     * Qt5WebKitWidgets
     * Perl , <http://www.perl.org>
       generation of sources in the APRS plugin
     * libgps , communicating with the GPS daemon , <http://catb.org/gpsd/>
       position information via gpsd

    -- The following REQUIRED packages have been found:

     * Qt5DBus
     * Qt5Core
     * Qt5Xml
     * Qt5Network
     * Qt5Test
     * Qt5Script
     * Qt5Widgets
     * Qt5Svg
     * Qt5Sql
     * Qt5Concurrent
     * Qt5Qml (required version >= 5.3.2)
     * Qt5Quick
     * Qt5OpenGL
     * Qt5PrintSupport

    -- The following features have been disabled:

     * Unit tests , Build unit tests. Toggle with BUILD_MARBLE_TESTS=YES/NO. 'make test' will run all.
     * Qt Designer plugins , Marble widget support in Qt Designer. Toggle with WITH_DESIGNER_PLUGIN=YES/NO
     * Marble Desktop/Mobile applications , Build Marble Desktop/Mobile applications. Toggle with BUILD_MARBLE_APPS=YES/NO.
     * Marble tools , Build various Marble tools for e.g. file format conversion. Toggle with BUILD_MARBLE_TOOLS=YES/NO.
     * Marble library C++ examples , Build C++ examples showing how to use the Marble library. Toggle with BUILD_MARBLE_EXAMPLES=YES/NO.

    -- The following OPTIONAL packages have not been found:

     * Phonon , cross-platform multimedia framework that enables the use of audio and video content , <http://qt.digia.com/>
       Support for playback of soundcue elements
       Voice navigation (sound or human speakers)
     * QextSerialPort , access to serial ports , <http://code.google.com/p/qextserialport/>
       Reading from serial port in APRS plugin
     * liblocation , position information on Maemo 5 devices , <http://maemo.org/>
       position information via GPS/WLAN for the Nokia N900 smartphone
     * Qt5Location , geographical support for position and map use , <http://qt.digia.com/>
       position information via Qt5Positioning and QtLocation
     * Qt5Positioning , a collection of APIs and frameworks , <http://qt.digia.com/>
       Required for QtLocation to work
     * libwlocate , WLAN-based geolocation , <http://www.openwlanmap.org/>
       Position information based on neighboring WLAN networks
     * libshp , reading and writing of ESRI Shapefiles (.shp) , <http://shapelib.maptools.org/>
       reading and displaying .shp files

    -- Configuring done
    -- Generating done
    -- Build files have been written to: /path/to/build

Best regards,
Kim Tore Jensen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20160519/e21c6f09/attachment.sig>


More information about the Marble-devel mailing list