Coder Social home page Coder Social logo

xambarr / mapsforge-ios Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hallm/mapsforge-ios

0.0 0.0 0.0 972 KB

An iOS port of the Java based MapsForge OSM mapping library using J2ObjC and native code.

License: GNU Lesser General Public License v3.0

Shell 3.46% Objective-C 96.54%

mapsforge-ios's Introduction

MapsForge-ios

An iOS port of the Java based MapsForge OSM mapping library using J2ObjC and native code.

MapsForge is a library to render vector map tiles from OSM on Java platforms. You can see here https://github.com/mapsforge/mapsforge.

Support

Application supports the MapsForge build 0.5.1 (https://github.com/mapsforge/mapsforge/tree/0.5.1).

Dependencies

You will need some dependancies to make this works:

You'll wave to add Maven in your $PATH !

Compilation Guide

  1. Download or clone the Github project.
  2. Get the last stable version of MapsForge (https://github.com/mapsforge/mapsforge). This project supports the 0.5.1 stable build. Copy the folder into the lib/mapsforge directory on this Github project.
  3. Download J2OBJC, compile it and copy the dist directory into your HOME/j2objc. This leads to /Users/<your_username>/j2objc. Remember to copy the whole directory, not only the executable.
  4. Build the project.
  5. You'll find the library .aand the headers file in the build folder. Search for libmapsforge-ios.aand mapsforge-ios-headers.

How to add the library into another project

  1. Copy the libmapsforge-ios.alibrary and the directory header mapsforge-ios-headers into the new project.
  2. In Build Phases, add the .a library file to Link Binaries With Librairies.
  3. In Build Settings, search the Header Search Path and add $(SRCROOT)/YourProjectName/YourLibraryFolder/mapsforge-ios-headers. Set this recursive.
  4. In Build Settings, search the Other Linker Flags and set this -L $(HOME)/j2objc/lib -l jre_emul -ObjC. This is mandatory when you use librairies using J2OBJC.
  5. Build your project. You can make references to headers of the library by calling mapsforge-ios/org/mapsforge/path/to/the/file.h.

Beware if you are using J2OBJC for other librairies or for your current project, the library headers already contains java headers for your convenience. If you already specify J2OBJC headers, you can change the Header Search Path and set $(SRCROOT)/YourProjectName/YourLibraryFolder/mapsforge-ios-headers/mapsforge-ios to only include the library headers and not the J2OBJC headers. If you do that, references to headers of the library are made like this: /org/mapsforge/path/to/the/file.h.

mapsforge-ios's People

Contributors

hallm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.