Hi,

openjdk8 is fine. I use that as well (just as openjdk11 by the way as java8
is officially no longer supported).
You do not only need git, you also need the google repo tool. either
download it or install it from your package manager.

I work on a 4GB Chromebook where I flashed different firmware onto and
installed GalliumOS, a light-weight Ubuntu (18.04) derivative specially for
Chromebook hardware. You're netBSD is not linux but a real BSD unix, but
should work just as well.

I use below script:
============================
#/bin/sh

libpath=$(pwd)
mkdir -p OsmAnd-all
cd OsmAnd-all
curpath=$(pwd)

repo init -u git://github.com/osmandapp/OsmAnd-manifest.git -m
jenkins_tools.xml
repo sync -d -c -q

${curpath}/android/OsmAnd-java/collect_legacy_libs.sh

# Copy the libraries in
LIBDIR="${libpath}/lib"
cd ${curpath}/tools/java-tools/OsmAndMapCreator/
cp -v ${LIBDIR}/libOsmAndCoreWithJNI_standalone.so lib-native/
cp -v ${LIBDIR}/libOsmAndCore_ResourcesBundle_shared.so lib-native/
cp -v ${LIBDIR}/OsmAndCore_jni.jar lib-gl/OsmAndCore_jni.jar
rm lib-native/OsmAndCore_jni.jar

cd ${curpath}
cd tools/java-tools

#${curpath}/gradlew fatJar
./gradlew --info cleanTest test :OsmAndMapCreator:buildDistribution

cp OsmAndMapCreator/build/distributions/OsmAndMapCreator.zip ${curpath}/..
============================
Remarks:
- From my "software build scripts folder", I cd into "OsmAnd-all" where I
build everything, but there is a very nasty detail. It is very important
(!) to have a folder "lib" next to  "OsmAnd-all" (not inside) where you
have all the jars AND "libOsmAndCore_ResourcesBundle_shared.so" and
"libOsmAndCoreWithJNI_standalone.so", which you can take from a nightly
build from OsmandMapCreator (lib versions are actually already quite old).
Without these you will not be able to build a correct OsmAndMapCreator.
Inside my script another script is called that is part of the OsmAnd-tools
repo, but that script already assumes you have the necessary stuff
available, which you normally don't have. And that script actually has an
error as well, that's why my follow-up copying steps are in my script.
(- I use a comparable, but more complex, script for OsmAnd and OsmAnd+ WITH
the same symlink to the libraries, otherwise OsmAnd does not build either).

In the end a zip will be created containing "everything" in the folder one
level above "OsmAnd-all" . The zip is approx. 80Mb. If it is around 67MB
(or so), you did something wrong with the libraries mentioned in remark 1.

Success.

Harry

>
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osmand/CAGARPpsddRhpYoKTnQjQn_ACd_ZHrs_gVvPt6wvazDDgRUhy8Q%40mail.gmail.com.

Reply via email to