HarryIt should be there next weekend. Probably Wednesday evening (Dutch time zone :) )OK,I will write a longer version. I will split up the original part from "my" very small addition and rewrite it as a complete new article like "Install terminal commandline build environment on Linux/OS X" (or something like that. The title is not so catchy).
2014-08-05 9:32 GMT+02:00 RogerE <roge...@gmail.com>:
Harry,
I tried your command line guide and after some fiddlin' the code does indeed compile and run, but it don't seem to include the native code (tested on a Galaxy S5). The apk file is also smaller than the nightly build, 20.7MB vs. 27MB (OsmAnd-master-nb-2014-08-01.apk). Maybe the guide really is too short then...
Roger
On Monday, 28 July 2014 19:57:15 UTC+2, Harry van der Wolf wrote:I updated the wiki specifically for this reason to add the "Terminal based compilation on Linux or Mac OS X".Is that too short? (no pun intended)
2014-07-28 19:23 GMT+02:00 RogerE <roge...@gmail.com>:The biggest problem right now for potential new contributors is that it is very difficult to set up the development environment and build the code. The development environment How-To Wiki page is out-datet and is not of any help for the current code. It used to be reasonably easy up until about a year ago - just import the code into Eclipse, build, download and run, but not any more.
Even if the code structure is not optimal as is, it will be a really useful step forward if someone with the knowledge would take the time to write a step-by-step guide on how to set up the development environment and build the current code (or even better update the Wiki How-To).
Roger--To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "Osmand" group.--
You received this message because you are subscribed to the Google Groups "Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks Harry, the command line guide is easy to follow now, but the native code still don't seem to be included correctly. The "old-ndk-build.sh" command ends with one of the expected lines and the apk contains the expected "libgnustl_shared.so" file. The nightly build apk does however include a file named "libosmand.so", wich is missing in the new build - so something isn't quite right. I use sdk_r23.0.2-linux and ndk-r9d.
I did also initially run into another problem: the "old-ndk-build.sh" command ended with one of the expected lines indicating successful completion, but when looking trough the log it contained a fault message: "..../functions.sh: line 107: svn: command not found". Apparently, svn is also needed and when installed everything built without errors. I guess the guide should also include a statement about svn.
2014-08-10 1:28 GMT+02:00 RogerE <roge...@gmail.com>:
Thanks Harry, the command line guide is easy to follow now, but the native code still don't seem to be included correctly. The "old-ndk-build.sh" command ends with one of the expected lines and the apk contains the expected "libgnustl_shared.so" file. The nightly build apk does however include a file named "libosmand.so", wich is missing in the new build - so something isn't quite right. I use sdk_r23.0.2-linux and ndk-r9d.
Please try with the ndk-r8e. About 6-8 months ago there was an issue with the r9 and you really needed to build with r8. I had forgotten that. I just built with the r9 and for me it works. It seems even slighlty faster.
Please stick to the ndk-8 releases. I had not done a clean build with r9.
The ndk-r8 is also the ndk release used in the project.
--
because of a NDK bug (which was never fixed by Google) with Android 2.1 or 2.2 (native lib does not run).
Just did a build with NDK r10 (android-ndk32-r10-linux-x86_64.tar.bz2) without problems.
Regards,
Max
ant -file tools/OsmAndMapCreator/build.xml clean compile build
Why not just useant -file tools/OsmAndMapCreator/build.xml clean compile build
?
This creates build.zip with whole map creator inside.
Regards,
Max
Your "clean compile build" leads to a 7 GB !!! folder resulting in the same OsmAndMapCreator (be it automatically packed into a zip).It drags the entire QT and IOS dependencies in on linux (and you can't even build the IOS stuff as you need to be on Mac OS X with XCode).
Anyway, I don't want that complete waste of disk space of 7GB versus 480MB
--
Then what do you specify?
If I use "repo init -u git://github.com/osmandapp/OsmAnd-manifest.git -m jenkins_tools.xml",I do get the legacy core. It is even the default.
--