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.
Application supports the MapsForge build 0.5.1 (https://github.com/mapsforge/mapsforge/tree/0.5.1).
You will need some dependancies to make this works:
make dist
. Please make sure you have Maven installed (https://maven.apache.org/).You'll wave to add Maven in your $PATH !
dist
directory into your HOME/j2objc. This leads to /Users/<your_username>/j2objc
. Remember to copy the whole directory, not only the executable..a
and the headers file in the build folder. Search for libmapsforge-ios.a
and mapsforge-ios-headers
.libmapsforge-ios.a
library and the directory header mapsforge-ios-headers
into the new project..a
library file to Link Binaries With Librairies.$(SRCROOT)/YourProjectName/YourLibraryFolder/mapsforge-ios-headers
. Set this recursive.-L $(HOME)/j2objc/lib -l jre_emul -ObjC
. This is mandatory when you use librairies using J2OBJC.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
.