[Marble-devel] Review Request: add application/x-gpx+xml, application/x-osm+xml, application/x-esri-shape to the mime-type database

Bernhard Beschow bbeschow at cs.tu-berlin.de
Mon Oct 22 17:04:28 UTC 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/106977/#review20685
-----------------------------------------------------------


When I try to compile the Qt-only version with this patch, I get the following error message from cmake:

CMake Error at data/CMakeLists.txt:275 (find_package):
  By not providing "FindSharedMimeInfo.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "SharedMimeInfo", but CMake did not find one.

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

    SharedMimeInfoConfig.cmake
    sharedmimeinfo-config.cmake

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

I'm not sure whether the SharedMimeInfo package is available on all platforms we support (esp. the Qt-only ones, e.g. Windows, where it might not be available or applicable). Therefore, I wonder how to proceed. Any thoughts?

- Bernhard Beschow


On Oct. 22, 2012, 10:33 a.m., Friedrich W. H. Kossebau wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/106977/
> -----------------------------------------------------------
> 
> (Updated Oct. 22, 2012, 10:33 a.m.)
> 
> 
> Review request for Marble.
> 
> 
> Description
> -------
> 
> This patch installs an extension of the mimetype database for the three file types.
> 
> This way such files get a nicer display in the file dialogs/managers and can also finally be bound to the Marble program by the mimetype ids.
> 
> To have Marble noted as handler for application/x-esri-shape only if the related plugin is installed, I followed the advise of Albert, see http://lists.kde.org/?l=kde-devel&m=135083816331959&w=2
> 
> Still to do after this patch:
> * have the view zoom to the loaded shape/track
> 
> Patch additionally installs a mimetype for the Esri shapefile index, so this file at least looks better in the filemanager.
> That mimetype is made up by me. Not sure if this is useful, could also remove this from the patch if you prefer. For that reason I have also not yet added entries for the two other additional file types with shapefiles.
> 
> PS: After applying the patch and installing somehow the new info about the mimetypes and that marble supports them seems to not make it to all running programs. For me it worked only completely after a restart of the workspace session, so please try that before reporting problems.
> 
> 
> Diffs
> -----
> 
>   CMakeLists.txt 7f8777e 
>   data/CMakeLists.txt 316d005 
>   data/mimetypes/XmlMessages.sh PRE-CREATION 
>   data/mimetypes/geo.xml PRE-CREATION 
>   src/marble.desktop 3b61616 
>   src/marble_part.desktop 9a75d07 
>   src/plugins/runner/shp/CMakeLists.txt 0ef8c65 
>   src/plugins/runner/shp/marble_part_shp.desktop PRE-CREATION 
>   src/plugins/runner/shp/marble_shp.desktop PRE-CREATION 
> 
> Diff: http://git.reviewboard.kde.org/r/106977/diff/
> 
> 
> Testing
> -------
> 
> Clicking an gpx file or a shape file starts Marble and loads the file.
> 
> 
> Thanks,
> 
> Friedrich W. H. Kossebau
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20121022/f39fa329/attachment-0001.html>


More information about the Marble-devel mailing list