Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No config file navit.xml, navit.xml.local found #1200

Open
sryateyourdog opened this issue Sep 23, 2022 · 7 comments
Open

No config file navit.xml, navit.xml.local found #1200

sryateyourdog opened this issue Sep 23, 2022 · 7 comments

Comments

@sryateyourdog
Copy link

I'm working in android and get the following error when I try to run navit. I've been trying to get this figured out but am unsure how to correctly setup the navit.xml file(s). I'm hopeful this will be an easy answer for someone, and that anyone stuck like me can benefit from the answer as well.

2022-09-23 12:58:39.431 15371-15371/org.navitproject.navit E/Navit: Failed to extract language resource en
2022-09-23 12:58:39.431 15371-15371/org.navitproject.navit E/navit: error:navit:int main_real(int, char *const *):No config file navit.xml, navit.xml.local found
2022-09-23 12:58:39.450 15371-15371/org.navitproject.navit A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8 in tid 15371 (itproject.navit), pid 15371 (itproject.navit)

I've tried adding a copy of the navit_shipped.xml renamed as navit.xml in the navit/android/src folder since that seems to be where the build.gradle is looking for a config file, but I'm just kind of guessing at things currently. Please let me know how to get this aspect setup.

Requested issue info included below:

  • Which version of navit you are using, and whether you have compiled it yourself or where you downloaded the install file from or how you installed it. - navit-0.5.6 (latest). Installed via github desktop.
  • What operating system and distribution you are using, and what platform. - Windows 10 PC in Android Studio
@jkoan
Copy link
Member

jkoan commented Sep 24, 2022

Hi @sryateyourdog
from what you wrote I think you are trying to build navit for Android from source.
Currently not all steps of the build is done via gradle. So in order to have everything prepared to run gradle you need to do the steps from the script/build_android.sh starting with the cake line and continue until just before the first gradlew call.
So basically build icons, translations and the xmls and put (and rename) them in the corresponding folders.
If you happen to know how we can integrate those steps into the gradle build directly I am happy to help you with that and accept the PR 😄

@sryateyourdog
Copy link
Author

sryateyourdog commented Sep 24, 2022 via email

@jkoan
Copy link
Member

jkoan commented Sep 24, 2022

The script can be found here: https://github.com/navit-gps/navit/blob/trunk/scripts/build_android.sh
If you are lucky you can run it with git bash on windows or through WSL. But this hasn't been tested. If this won't work you can do the lines one after another manually. Just tell us where you need help 😃

@sryateyourdog
Copy link
Author

sryateyourdog commented Sep 26, 2022 via email

@jkoan
Copy link
Member

jkoan commented Sep 27, 2022

Build essentials is a package of Debian (os), so you can't install it with pip which is for python (language). I don't know where you tried to run the commands, if you used WSL you need to install the required packages within the WSL OS (which could be Debian, Ubuntu,...) If you run through git bash you can try to install the windows versions of the tools.

@sryateyourdog
Copy link
Author

sryateyourdog commented Sep 28, 2022 via email

@jkoan
Copy link
Member

jkoan commented Sep 28, 2022

You should be able to install additional software packages like described here: https://www.msys2.org/docs/package-management/

In the coming days I will try to look again into the details if I can integrate those steps into the gradle build directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants