-
Notifications
You must be signed in to change notification settings - Fork 175
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
fix:tomtom: Make sure the tomtom_plugin and tomtom_minimal contain navit.xml #875
Conversation
With this patches i get a tomtom480.xml, but the XML is not for Tomtom. I wonder because my local build environment makes a tomtom480.xml with SDL good resolution. How to change? |
It seems for tomtom, there is a dedicated XLST transformation that is applied during the build. I had a similar issue before for platform WinCE, and it was because no proper xslt processor was found during the build from CircleCI...
|
OK, I just read in the separate issue (#823 (comment)) that you had already found out. |
Yes, but i dont know how to add xslt support to ci. |
The docker image (navit/tomtom-ng) used for build by circleci is specified here: So, I guess either the docker image should be updated to include an xslt processor, or maybe an easier way is to add a step that installs the right tool during the setup, similarly to what I did here: |
I need help with this patch request. Actual knowings: Navit.xml is built without layouts. The layout-files are empty so that we need additional changes for this problem. |
Hi @gefin, the easiest way to undo your last two commits is to do a git revert on these commits. |
CircleCI seems to only call scripts/setup_common_requirements.sh. Changing setup_common_requirements.sh will probably have side effects, so you're right, your changes probably should go into setup_tomtom_requirements.sh. And then, I would assume that this setup_tomtom_requirements.sh should be executed by CircleCI right after running setup_common_requirements.sh (this requires adding a new line inside https://github.com/navit-gps/navit/blob/trunk/.circleci/config.yml) |
…h (and adding it to circleci process)
Tyring to implement what I suggested here... |
Now xslt seems to be applied... but running the whole setup_tomtom_requirements.sh seems overkill as it downloads and builds plenty of tools that are probably already in the docker image used for build. |
Moving the xslt install command inside circleci (this avoids running the full https://github.com/navit-gps/navit/blob/trunk/scripts/setup_tomtom_requirements.sh). I'm also keeping apt-get install -y xsltproc inside setup_tomtom_requirements.sh as well because I think it should also be installed when bringing up an environment to build for tomtom outside of CircleCI. |
copy also the layout xml files to target
Now the zip contain a good navit.xml for tomtom. The problem now is that navit_layout_car.xml are empty and navit.xml dont include it. |
I give it a try... I also updated the part of the script that copies over of XML config giles, it is now more specific which will hopefully avoid copying over non-related xml files. @gefin, does this work better? |
@lains Thank you. Need some tests. |
Today real drive worked good.
to
Also added 2 OSD zoom buttons:
is this possible in the XSLT? Note : edited by @pgrandin : I added |
@gefin re zoom buttons, have a look at #737, where we implemented a common OSD layout across all platforms. Tomtom was the only one left out back then because the build was broken and we had no way to verify things worked as intended. The (IMHO) perfect solution would be to apply the changes from #737 to Tomtom as well, with the necessary modifications—preferably by someone who knows their way around that particular build and can test on a real device :-) |
correction to the above: as I infer from the PR, we did implement this on Tomtom in the hope that it would work, as we couldn’t test it back then… |
I can test on TT 730 (480x272). |
You can have a look at the "sailfish" xslt's. I think they basically do what you need. You can copy from them. |
If navit.xml contains no OSD lines, that looks like something has gone wrong. Do the other settings from tomtom.xslt take effect? If not, that would be a sign the whole XSLT is not getting applied. One way or the other, you might want to look out for warning/error messages related to XML processing. |
I dont see errors or warnings. If i change something bad i see messages. |
My changes from tomtom.xslt dont work. I need help with tomtom.xslt |
My suggestion would be that we only need one configuration regarding the display size. This can be achieved by using relative sizes within osd for example. This will simplify things. Also I would like to provide another pull request wich also tryes to fix #823 but with a cpack approach. If this is okay for you. Then we can decide which solution is better. |
Yes it is ok for me. We have only two relevant resolutions. 480x272 and 320x240 |
Will merge this now, and correct everything else in another PR since there are more than only on thing to work on. THX for your work |
…it.xml (#875) * Issue/823 Fix navit.xml (tomtom480.xml) and locales path * Issue/823 Fix missing navit.xml (tomtom480.xml) and locale path * add xslt support * Update setup_common_requirements.sh * Moving change performed in aa10e05 inside setup_tomtom_requirements.sh (and adding it to circleci process) * Only running installation for xsltproc in circleci * Update build_tomtom_minimal.sh copy also the layout xml files to target * copy also the layout xml to target * Selecting specific xml prefixes during copy * Fixing tomtom's xslt following split of xml config files at e70a289
…it.xml (navit-gps#875) * Issue/823 Fix navit.xml (tomtom480.xml) and locales path * Issue/823 Fix missing navit.xml (tomtom480.xml) and locale path * add xslt support * Update setup_common_requirements.sh * Moving change performed in aa10e05 inside setup_tomtom_requirements.sh (and adding it to circleci process) * Only running installation for xsltproc in circleci * Update build_tomtom_minimal.sh copy also the layout xml files to target * copy also the layout xml to target * Selecting specific xml prefixes during copy * Fixing tomtom's xslt following split of xml config files at e70a289
the circleci build Job 15587 tomtom_plugin and tomtom_minimal dont contain a navit.xml.
also the locales Path is wrong.
Closes: #823