Osmand projects structure redesigned!

853 views
Skip to first unread message

Victor Shcherb

unread,
Dec 12, 2012, 6:24:44 PM12/12/12
to osmand
Hi,

This is very important update for people who tracks the source code.
Now we completely redesigned the project structure. The old git project
now serves only Android part (without common part between OsmAndMapCreator and OsmAnd).
You need to install repo (http://source.android.com/source/version-control.html) to download all projects, here is  the manifest of all projects

Short description of every git repository :
Core part for all projects including java and C++ (including rendering styles)
<project path="core" name="osmandapp/OsmAnd-core.git" />

Pure Android part (plugins and main project)
<project path="platforms/android" name="osmandapp/Osmand.git" />

OsmAndMapCreator + generator scripts + SRTM + basemap
<project path="tools" name="osmandapp/OsmAnd-tools.git" />

Website (php files)
<project path="misc" name="osmandapp/OsmAnd-misc.git" />

Right now osmand.googlecode synchronization is broken.

Best Regards,
Victor

Areg

unread,
Dec 13, 2012, 7:50:19 AM12/13/12
to osm...@googlegroups.com
Hi

Is there anything changed for Eclipse configuration?

I am getting the following error:
[2012-12-13 12:49:05 - OsmAnd] Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties.

Not sure what this mean.

Regards,
Areg

Victor Shcherb

unread,
Dec 13, 2012, 5:26:29 PM12/13/12
to osmand
Have no idea... Probably I commit my configuration, sorry. Please try to play with "build path" settings in Eclipse.

Victor


2012/12/13 Areg <vrt...@gmail.com>

Areg

unread,
Dec 14, 2012, 4:59:57 AM12/14/12
to osm...@googlegroups.com
Hi Victor

Thank you for suggestion.

Played a bit in Eclipse and now it can't find the following import:

import net.osmand.plus.R;

There was a manual how to open project in Eclipse - could you please remind me the URL and is it up to date after the modifications?

Regards,
Areg

hbogner

unread,
Dec 14, 2012, 7:44:09 AM12/14/12
to osm...@googlegroups.com
What needs to be changed in this config: http://code.google.com/p/osmand/wiki/OsmandMapUpdates  ?

I changed
git://github.com/osmandapp/Osmand.git
to
git://github.com/osmandapp/OsmAnd-tools.git
but get next error:
"Build step 'Invoke Ant' marked build as failure"

Regards
Hrvoje

Victor Shcherb

unread,
Dec 14, 2012, 11:47:04 AM12/14/12
to osmand
To get it working in the easiest manner.
just do 
# repo sync


2012/12/14 hbogner <hbo...@gmail.com>

ChrisW

unread,
Dec 14, 2012, 12:25:56 PM12/14/12
to osm...@googlegroups.com
A short while ago I trashed my Eclipse copy of OsmAnd to replace it with the latest - if I'd seen this post first I may have waited :-)

The new version fails to build because the package net.osmand.data is missing. I believe this used to be in the DataExtractionOSM project but this is not downloaded. I tried to download the other projects you mentioned (OsmAnd-tools and OsmAnd-manifest but I didn't have the required authority. Can I fix this? I only want the android part.

Thanks,
Chris

Victor Shcherb

unread,
Dec 14, 2012, 6:33:08 PM12/14/12
to osmand
Yes you need to have OsmAnd-core java project it is only one dependency for OsmAnd Android version.
Victor


2012/12/14 ChrisW <cepe...@gmail.com>

ChrisW

unread,
Dec 15, 2012, 3:32:30 AM12/15/12
to osm...@googlegroups.com
With this I get:

Stephan75

unread,
Dec 16, 2012, 11:52:23 AM12/16/12
to osm...@googlegroups.com
When all issues about the new code structure are solved, do we need updated information and instructions at http://code.google.com/p/osmand/wiki/InstallDevelopmentEnvironment and all other relevant wiki pages?

Stephan

Victor Shcherb

unread,
Dec 16, 2012, 12:10:55 PM12/16/12
to osmand
Would be nice !

Thanks,
Victor


2012/12/16 Stephan75 <der.steph...@googlemail.com>

hbogner

unread,
Dec 18, 2012, 2:34:51 PM12/18/12
to osm...@googlegroups.com
To get it working in the easiest manner.
just do
repo init -u git://github.com/osmandapp/OsmAnd-manifest.git
# repo sync

???
What? Where? How?
In Jenkins? Shell? where?

Victor Shcherb

unread,
Dec 18, 2012, 3:43:49 PM12/18/12
to osmand
This is shell. Install repo and after that run specified 2 commands
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo


2012/12/18 hbogner <hbo...@gmail.com>

Bartosz Gołek

unread,
Oct 1, 2013, 1:38:05 PM10/1/13
to osm...@googlegroups.com
I still dont understand. How to configure Jenkins to work with new Project structure?
Current description at OsmAnd wiki here is wrong.

How to configure new Jenkins build in the new way.
Can someone write some more detailed description or update wiki article?

Bartosz Gołek

unread,
Oct 2, 2013, 2:05:56 PM10/2/13
to osm...@googlegroups.com
OK, I have almost done this.
But, still no succes.

My configuration is:
Source Code Management -> Gerrit Repo
Manifest Repository Url: git://github.com/osmandapp/OsmAnd-manifest.git
Manifest Branch: master
Manifest File: jenkins_tools.xml

Steps:
1. Invoke Ant: clean compile jar
2. Execute shell: 
mkdir -p /var/lib/jenkins/indexes/uploaded
rm -rf .work
mkdir -p .work/osm
echo Running java net.osmand.data.index.IndexBatchCreator with $INDEXES_FILE
java -XX:+UseParallelGC -Xmx8096M -Xmn512M -Djava.util.logging.config.file=tools/obf-generation/batch-logging.properties -cp tools/OsmAndMapCreator/OsmAndMapCreator.jar:tools/OsmAndMapCreator/lib/*.jar net.osmand.data.index.IndexBatchCreator tools/obf-generation/indexes-batch-generate-inmem.xml ~/indexes.xml

~/indexes.xml is my regions file.

Build crashes after 10 min with last log entries:
----------------------
INFO: Done 42,363 %.
2013-10-02 12:47:08 net.osmand.impl.ConsoleProgressImplementation printIfNeeded
INFO: Done 43,365 %.
2013-10-02 12:47:17 net.osmand.impl.ConsoleProgressImplementation printIfNeeded
INFO: Done 44,371 %.
2013-10-02 12:47:25 net.osmand.impl.ConsoleProgressImplementation printIfNeeded
INFO: Done 45,374 %.
2013-10-02 12:47:36 net.osmand.impl.ConsoleProgressImplementation printIfNeeded
INFO: Done 46,377 %.
Killed
Build step 'Execute shell' marked build as failure
Finished: FAILURE
----------------------

Looks like Jenkins kill process for some reason.
Any ideas?

Max

unread,
Oct 3, 2013, 3:26:04 AM10/3/13
to osm...@googlegroups.com
Hi!


Looks like Jenkins kill process for some reason.
Any ideas?

OOM killer?

Have you tried to run this Java command without Jenkins?
Does this work?

Regards,
Max

Bartosz Gołek

unread,
Oct 3, 2013, 3:50:39 AM10/3/13
to osm...@googlegroups.com
I'll try

Bartosz Gołek

unread,
Oct 3, 2013, 3:51:01 AM10/3/13
to osm...@googlegroups.com
I'll try

W dniu czwartek, 3 października 2013 09:26:04 UTC+2 użytkownik Max napisał:

Bartosz Gołek

unread,
Oct 3, 2013, 4:06:23 AM10/3/13
to osm...@googlegroups.com
You have right.
Process started from console is Killed in the same place.

Jakub Kozłowski

unread,
Mar 17, 2014, 2:29:19 PM3/17/14
to osm...@googlegroups.com
Did you solved the problem?

Bartosz Gołek

unread,
Mar 18, 2014, 4:07:25 AM3/18/14
to osm...@googlegroups.com
Yes, I've change the configuration to not build in memory.
Process has been stopped, because system kills it.

Pozdrawiam
Bartosz Gołek


--
You received this message because you are subscribed to a topic in the Google Groups "Osmand" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/osmand/xyVCKxptVcA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to osmand+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

myildirmaz

unread,
Jan 30, 2015, 11:00:08 AM1/30/15
to osm...@googlegroups.com
Hi ,

I am trying to bring and build  application into Eclipse without any success . Is there any updated full installation information other than this one that I can follow ?


Best Regard

Murat 

Hans-Christoph Steiner

unread,
Feb 3, 2015, 3:22:36 PM2/3/15
to osm...@googlegroups.com

I've had no luck working on Osmand with either Eclipse or Android Studio.
Instead I switched to emacs and used the gradle build system.

https://code.google.com/p/osmand/wiki/GradleCommandLineBuildEnvironment

.hc

myildirmaz:
> Hi ,
>
> I am trying to bring and build application into Eclipse without any
> success . Is there any updated full installation information other than
> this one that I can follow ?
>
> http://code.google.com/p/osmand/wiki/InstallDevelopmentEnvironment
>
> Best Regard
>
> Murat
>
> On Sunday, December 16, 2012 at 12:10:55 PM UTC-5, V S wrote:
>>
>> Would be nice !
>>
>> Thanks,
>> Victor
>>
>>
>> 2012/12/16 Stephan75 <der.steph...@googlemail.com <javascript:>>
>>
>>> When all issues about the new code structure are solved, do we need
>>> updated information and instructions at
>>> http://code.google.com/p/osmand/wiki/InstallDevelopmentEnvironment and
>>> all other relevant wiki pages?
>>>
>>> Stephan
>>>
>>
>>
>

--
PGP fingerprint: 5E61 C878 0F86 295C E17D 8677 9F0F E587 374B BE81
https://pgp.mit.edu/pks/lookup?op=vindex&search=0x9F0FE587374BBE81
Reply all
Reply to author
Forward
0 new messages