[GraphHopper] Android - problem to build from source

Philipp Hamm Philipp.Hamm at Optitool.DE
Thu Nov 14 15:02:13 UTC 2013


Hi John,

I've successfully compiled the web project, which should be the same.
You can try this instruction:

Install EGit and show the Git Repositories view.
Copy the github-URL (git://github.com/graphhopper/graphhopper.git) and right click -> Paste Repository Path or URI.

Right click in the Project Explorer and Import -> Import. -> Git -> Projects from Git -> Local -> graphhopper -> select subfolder core!!! -> Import as General Project -> Finish
Right click at the new core-project -> Configure -> Convert to Faceted Form -> Java -> OK
Right click at the new core-project -> Configure -> Convert to Maven Project

Repeat the last section with "android" instead of "core". 
After waiting a for a moment you should see the core project in Maven Dependencies of the android project and you should be able to compile everything.


Furthermore when using the pom.xml you should check if it may downloads and uses a jar-file from web instead of your local GH-core. If so, feel free to ask again.

Regards,
Philipp
 



-----Ursprüngliche Nachricht-----
Von: Peter K [mailto:peathal at yahoo.de] 
Gesendet: Mittwoch, 13. November 2013 19:44
An: GraphHopper Java routing engine
Cc: JP JP
Betreff: Re: [GraphHopper] Android - problem to build from source

It looks like your classpath does not include graphhopper core. it should appear in the libs folder ... but I'm no eclipse user (nor fan) so I cannot really help you there ... maybe someone on the libs. Or try again via wiki where I tried it once with eclipse.

Regards,
Peter.

> Hello all
>
> I would like to try to test graphhopper for android, but Im unable to 
> compile it from source from github.
> Im using eclipse and I have downloaded this 
> https://github.com/graphhopper/graphhopper/ imported to eclipse but I 
> have errors on imports in main activity (import 
> com.graphhopper.GHRequest; ) saying imports cannot be resolved and 
> therfore GraphHopperAPI cannot be resolved too.
> Probably Im doing somwthing wrong but have no idea what. Im sending 
> you also a screenshot from my eclipse.Inline image 1
>
> Thank you in advance.
> John
>
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper



_______________________________________________
GraphHopper mailing list
GraphHopper at openstreetmap.org
https://lists.openstreetmap.org/listinfo/graphhopper



More information about the GraphHopper mailing list