Help setting up development environment of OsmAnd in Elcipse 3.5.2

134 views
Skip to first unread message

r_tbrown

unread,
Nov 11, 2010, 11:25:15 PM11/11/10
to Osmand
The Osmand is an awesome must have for the android phone I currently
use version 0.4.1 and I am totally loving it.

I am new to Eclipse and Android (although I am a veteran in everything
else Windows) and I recently checked out a copy of OsmAnd an I have
been following the Wiki and all the previous posts but I have not been
able to get rid of all the errors in Eclipse.

I am using Eclipse SDK

Version: 3.5.2
Build id: M20100211-1343

ADT is version 0.9.9v20100922

Java 1.6

Is there a detailed step by step to setup the development environment
in Eclipse. I am new at using it and I have been reading and trying
for the last 2 weeks with little success.

Currenty I am stuck at 113 Errors and 164 Warnings. I would greatly
appreciate any help, advice or a step by step

Thanks.

Pavol Zibrita

unread,
Nov 12, 2010, 3:24:06 AM11/12/10
to osm...@googlegroups.com
Hi!

  When chekouting the projects from scratch, you need to define a variable in OsmAnd project named OSMAND_TRUNK that points to the workspace folder, where the DataExtractionOSM and OsmAnd projects are checkouted.
Eclipse does not like this setup a lot, but it is current setup. The use source folder is linked to DataExtractionOSM src folder with using this variable. Unfortunately, the variables are not part of setting, which could be commited.
  After defining the variable, you should close and repon the OsmAnd project, refresh and clean rebuild the projects. That should do it.
  You can add the variable: context menu on OsmAnd project -> build path -> configure build path -> in source tab link source (select whatever) -> variables -> new -> name: OSMAND_TRUNK, location: folder of your workspace (e.g. c:\workspace\)

Hope this helps.

Pavol

r_tbrown

unread,
Nov 13, 2010, 1:12:28 AM11/13/10
to Osmand
Thanks, I finally got it to work.
> > Thanks.- Hide quoted text -
>
> - Show quoted text -

adnaan

unread,
Dec 6, 2010, 1:19:59 AM12/6/10
to Osmand
it builds ok. but the built osmand project classes doesn't seems to go
anywhere. very strange. cannot get the apk to work.

adnaan

unread,
Dec 6, 2010, 1:53:40 AM12/6/10
to Osmand
tried everything for 48 hours.somebody plz make their .classpath files
public. will be very helpful.

Pavol Zibrita

unread,
Dec 6, 2010, 2:51:29 AM12/6/10
to osm...@googlegroups.com
What si wrong, excatly?

p.

adnaan badr

unread,
Dec 6, 2010, 2:55:15 AM12/6/10
to osm...@googlegroups.com
nevermind...issue is solved,, eclipse was not including osmand/src ....had to manually include  source folder(net)
...worked beautifully :) thanks
--
Thanks & Regards
Adnaan Badr
09663392751

Associate Software Engineer
Notion Ink Design Labs.

Jindřich Makovička

unread,
Dec 6, 2010, 4:26:42 AM12/6/10
to osm...@googlegroups.com
>> On Nov 12, 3:24 am, Pavol Zibrita <pavol.zibr...@gmail.com> wrote:
>> >   When chekouting the projects from scratch, you need to define a variable
>> > in OsmAnd project named OSMAND_TRUNK that points to the workspace folder,
>> > where the DataExtractionOSM and OsmAnd projects are checkouted.
>> > Eclipse does not like this setup a lot, but it is current setup. The use
>> > source folder is linked to DataExtractionOSM src folder with using this
>> > variable. Unfortunately, the variables are not part of setting, which could
>> > be commited.

Note that if you have only one version of OsmAnd checked out, you can
define this variable in global preferences instead. This allows
building the project without changing .project or .classpath file.

--
Jindrich Makovicka

andre van atten

unread,
Dec 6, 2010, 11:32:30 AM12/6/10
to osm...@googlegroups.com

Hi,

Can you make a step by step document, with screendumps. I tried but never succeeded in setting up eclipse for Osmand, because I am an eclipse dummy. But I would like to build my own trunk version. You would be a great help to many new enthusiastic people. After that, we could place it on wiki. And you become famous ;-)

Andre

Op 2010 12 6 08:55 schreef "adnaan badr" <badr....@gmail.com> het volgende:

adnaan badr

unread,
Dec 6, 2010, 11:59:53 AM12/6/10
to osm...@googlegroups.com
sure...tommorow :)

adnaan

unread,
Dec 18, 2010, 5:25:27 AM12/18/10
to osm...@googlegroups.com
Hey this is the classpath which worked for me...hope it helps

//////////////////////////

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry including="gnu/|net/|org/" kind="src" path="src"/>
<classpathentry excluding="net/osmand/ExceptionHandler.java|net/osmand/LogUtil.java|net/osmand/data/index/DataIndexWriter.java|net/osmand/data/index/IndexBatchCreator.java|net/osmand/data/preparation/DataExtraction.java|net/osmand/data/preparation/IndexCreator.java|net/osmand/osm/io/OsmStorageWriter.java|net/osmand/osm/util/|net/osmand/swing/|rtree/" kind="src" path="use"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="lib" path="lib/bzip2-20090327.jar"/>
<classpathentry kind="lib" path="lib/tuprolog.jar"/>
<classpathentry kind="lib" path="lib/junidecode-0.1.jar"/>
<classpathentry kind="lib" path="/DataExtractionOSM/lib/commons-logging-1.1.1.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

I also defined variable OSMAND_TRUNK as mentioned in the installation wiki.
/////////////
Reply all
Reply to author
Forward
0 new messages