From 4c1a0b398c030465affb7cc1287753399046da58 Mon Sep 17 00:00:00 2001 From: Pierre GRANDIN Date: Tue, 5 Sep 2017 15:28:28 -0700 Subject: Revert "Removed deprecated files and fixed a configuration example" This reverts commit 4c89accc118cfc5b6dfe4f8913d2d8c3dc189b99. --- CMakeLists.txt | 2 +- NEWS | 0 README | 74 +++++++++++++++++ contrib/android_build.sh | 115 +++++++++++++++++++++++++++ intl/VERSION | 1 + navit/android/Android_Market_Version_int.txt | 8 ++ navit/android/dummy.txt | 0 navit/navit_shipped.xml | 2 +- 8 files changed, 200 insertions(+), 2 deletions(-) create mode 100644 NEWS create mode 100644 README create mode 100644 contrib/android_build.sh create mode 100644 intl/VERSION create mode 100644 navit/android/Android_Market_Version_int.txt create mode 100644 navit/android/dummy.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index e7a6f6418..c7ac46b24 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,7 +120,7 @@ set(CPACK_PACKAGE_VENDOR "Navit team") set(CPACK_PACKAGE_VERSION_MAJOR ${NAVIT_VERSION_MAJOR}) set(CPACK_PACKAGE_VERSION_MINOR ${NAVIT_VERSION_MINOR}) set(CPACK_PACKAGE_VERSION_PATCH "${NAVIT_VERSION_PATCH}") -set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md") +set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README") set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/GPL-2") set(CPACK_NSIS_PACKAGE_NAME "Navit ${PACKAGE_VERSION}") set(CPACK_PACKAGE_FILE_NAME ${PACKAGE}) diff --git a/NEWS b/NEWS new file mode 100644 index 000000000..e69de29bb diff --git a/README b/README new file mode 100644 index 000000000..9fa5f80de --- /dev/null +++ b/README @@ -0,0 +1,74 @@ +NavIT +===== + +Navit is a open source (GPL) car navigation system with routing engine. + +It's modular design is capable of using vector maps of various formats +for routing and rendering of the displayed map. It's even possible to +use multiple maps at a time. + +The GTK+ or SDL user interfaces are designed to work well with touch +screen displays. Points of Interest of various formats are displayed +on the map. + +The current vehicle position is either read from gpsd or directly from +NMEA GPS sensors. + +The routing engine not only calculates an optimal route to your +destination, but also generates directions and even speaks to you. + +Navit currently speaks over 70 languages! + +You can help translating via our web based translation page : + http://translations.launchpad.net/navit/trunk/+pots/navit + + +For help or more information, please refer to the wiki : + http://wiki.navit-project.org + +If you don't know where to start, we recommend you to read the +Interactive Help : http://wiki.navit-project.org/index.php/Interactive_help + + +Maps: +===== + +The best navigation system is useless without maps. Those three maps +are known to work: + +- OpenStreetMaps : display, routing, but street name search isn't complete + (see http://wiki.navit-project.org/index.php/OpenStreetMaps ) + +- Grosser Reiseplaner and compliant maps : full support + (see http://wiki.navit-project.org/index.php/European_maps ) + +- Garmin maps : display, routing, search is being worked on + (see http://wiki.navit-project.org/index.php/Garmin_maps ) + + +GPS Support: +============ + +Navit read the current vehicle position : +- directly from a file +- from gpsd (local or remote) +- from udp server (friends tracking) (experimental) + + +Routing algorithm +================= + +NavIt uses a Dijkstra algorithm for routing. The routing starts at the +destination by assigning a value to each point directly connected to +destination point. The value represents the estimated time needed to +pass this distance. + +Now the point with the lowest value is choosen using the Fibonacci +heap and a value is assigned to connected points whos are +unevaluated or whos current value ist greater than the new one. + +The search is repeated until the origin is found. + +Once the origin is reached, all that needs to be done is to follow the +points with the lowest values to the destination. + diff --git a/contrib/android_build.sh b/contrib/android_build.sh new file mode 100644 index 000000000..68b8110fb --- /dev/null +++ b/contrib/android_build.sh @@ -0,0 +1,115 @@ +#!/bin/sh + +# (C)opyright 2011 Lutz Möhrmann +# License: GPL v2 + +show_api_lvl () { + case $1 in + 1) ver='Android 1.0' ;; + 2) ver='Android 1.1' ;; + 3) ver='Android 1.5 "Cupcake"' ;; + 4) ver='Android 1.6 "Donut"' ;; + 5) ver='Android 2.0 "Eclair"' ;; + 6) ver='Android 2.0.1 "Eclair"' ;; + 7) ver='Android 2.1 "Eclair"' ;; + 8) ver='Android 2.2 "Froyo"' ;; + 9) ver='Android 2.3 "Gingerbread"' ;; + 10) ver='Android 2.3.3+ "Gingerbread"' ;; + 11) ver='Android 3.0 "Honeycomb"' ;; + 12) ver='Android 3.1 "Ice Cream Sandwich"' ;; + esac + echo "$1 $ver" +} + +if [ -z $ANDROID_NDK ]; then + echo "The environment variable ANDROID_NDK must be set!" + exit +fi + +platforms=$ANDROID_NDK/platforms +if [ ! -d $platforms ]; then + platforms=$ANDROID_NDK/build/platforms +fi + +if [ ! -d $platforms ]; then + echo "The environment variable ANDROID_NDK must be pointing to the android NDK!" + exit +fi + +if [ ! -d navit -o ! -f autogen.sh ]; then + echo "This script must be called from the navit main directory (where autogen.sh is in)" + exit +fi + +api_lvl=${1-$ANDROID_API_LVL} + +while [ -z $api_lvl ]; do + echo "The environment variable ANDROID_API_LVL is not set and the API level was also not given on the commandline." + echo "Possible API levels for your NDK are:" + cd $platforms + for p in android-*; do + [ -d $p/arch-arm ] || continue + show_api_lvl ${p#android-} + done + cd - > /dev/null + echo "Enter the desired API level (4 is recommended)" + read api_lvl + if [ ! -d $platforms/android-$api_lvl/arch-arm ]; then + echo "Bad choice, retrying..."; echo "" + unset api_lvl + fi +done + +ANDROID_API_LVL=$api_lvl +export ANDROID_API_LVL +ANDROID_PLATFORM=$platforms/android-$ANDROID_API_LVL/arch-arm +export ANDROID_PLATFORM +PATH=`echo $ANDROID_NDK/toolchains/arm-eabi-*/prebuilt/linux-x86/bin`:$PATH +export PATH + +if [ ! -f Makefile.in ]; then + echo ""; echo "*** Running autogen.sh ***"; echo "" + ./autogen.sh +fi + +if [ ! -f Makefile ]; then + echo ""; echo "*** Running configure ***"; echo "" + ./configure \ + PKG_CONFIG=arm-eabi-pkgconfig \ + RANLIB=arm-eabi-ranlib \ + AR=arm-eabi-ar \ + CC="arm-eabi-gcc -L$ANDROID_PLATFORM/usr/lib -L. -I$ANDROID_PLATFORM/usr/include" \ + CXX=arm-eabi-g++ \ + --host=arm-eabi-linux_android \ + --enable-avoid-float \ + --enable-avoid-unaligned \ + --enable-cache-size=20971520 \ + --enable-svg2png-scaling=8,16,32,48,64,96 \ + --enable-svg2png-scaling-nav=59 \ + --enable-svg2png-scaling-flag=32 \ + --with-xslts=android,plugin_menu,pedestrian_button,pedestrian \ + --with-saxon=saxonb-xslt \ + --enable-transformation-roll \ + --enable-plugin-pedestrian \ + --with-android-permissions=CAMERA \ + --with-android-project=android-$ANDROID_API_LVL +fi + +set -e + +echo ""; echo "*** Running make ***"; echo "" +make + +echo ""; echo "*** Running make apkg ***"; echo "" +cd navit +make apkg +cd - > /dev/null + +apk=`pwd`/navit/android/bin/Navit-debug.apk +if [ -f $apk ]; then + echo "Great - looks like it worked! The result is"; echo "" + ls -l $apk + echo "" +else + echo "This shouldn't happen! Something went terribly wrong..." +fi diff --git a/intl/VERSION b/intl/VERSION new file mode 100644 index 000000000..b4b846ca7 --- /dev/null +++ b/intl/VERSION @@ -0,0 +1 @@ +GNU gettext library from gettext-0.14.1 diff --git a/navit/android/Android_Market_Version_int.txt b/navit/android/Android_Market_Version_int.txt new file mode 100644 index 000000000..7c9f73e61 --- /dev/null +++ b/navit/android/Android_Market_Version_int.txt @@ -0,0 +1,8 @@ +# DO NOT edit this file!!! +# +# Android Market: Int Version Number of Navit Release for the Android Market +# +# only "cp15" or "zoff" should edit this file! +# +# +v_int:2 diff --git a/navit/android/dummy.txt b/navit/android/dummy.txt new file mode 100644 index 000000000..e69de29bb diff --git a/navit/navit_shipped.xml b/navit/navit_shipped.xml index 680308df0..0e0072d35 100644 --- a/navit/navit_shipped.xml +++ b/navit/navit_shipped.xml @@ -184,7 +184,7 @@ Waypoint + source="serial:COM4 baud=4800 parity=N data=8 stop=1" > --> -- cgit v1.2.1