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

wince support #1211

Open
clarified opened this issue Nov 26, 2022 · 9 comments
Open

wince support #1211

clarified opened this issue Nov 26, 2022 · 9 comments

Comments

@clarified
Copy link

I was looking for wince images, and the latest that I could find were at
https://github.com/navit-gps/navit/releases
The latest there is 0.5.6 which is approaching 2 years old.

Are there compiled images for the latest versions for wince?

I have no expertise in wince, so would probably struggle to compile my own.

I have also posted about this on the forum.

@lains
Copy link
Contributor

lains commented Dec 3, 2022

Hello, even if you may not feel comfortable with rebuilding the executable for WinCE, there are instructions on how to do so here.

@lains
Copy link
Contributor

lains commented Dec 3, 2022

@clarified
Copy link
Author

clarified commented Dec 3, 2022 via email

@mvglasow
Copy link
Contributor

mvglasow commented Dec 3, 2022

In theory, you could also grab the latest build from CI. In practice, you need to be sure to get an artifact from the master branch (not from some unstable feature branch – unless you know what you’re doing). As CircleCI deletes artifacts after 30 days, this will work only if master had any changes within the last 30 days.

Go to the main project page on Github, click the green check mark next to the latest commit, then click Details. Choose build_wince (or whatever platform you want prebuilt binaries for – you might need to log on to CircleCI for that), then go to the artifacts tab. If the job is no older than 30 days, you will find a list of all the artifacts the build has produced. Not sure what you need for WinCE – the ZIP file should contain all the files needed to run Navit, the CAB file should be the installable package (iirc – it’s been a while since I last used WinCE).

By the way, this also means we do test that every new commit still builds correctly on WinCE. In theory, you could also analyze the CI script and replicate the steps there to get a tried-and-true build recipe.

@lains
Copy link
Contributor

lains commented Dec 4, 2022

If you have a Linux machine, you can also try to build inside the docker container that is used by circleci.

Below is a summary of the steps:

On your host:

docker pull navit/dockerfiles:wince
mkdir /tmp/wince_docker_app
(cd /tmp/wince_docker_app && git clone https://github.com/navit-gps/navit.git)

Then, launch the docker container:
docker run -it --rm --mount type=bind,source=/tmp/wince_docker_app,target=/app navit/dockerfiles:wince

When getting the docker container's prompt, the following step inside the container will compile navit for WinCE:

bash scripts/setup_wince.sh
bash scripts/build_wince.sh

If the build succeeds, you will get the the following binaries (on your host filesystem):

  • /tmp/wince_docker_app/navit/wince/output/navit.zip
  • /tmp/wince_docker_app/navit/wince/output/navit.exe

I have just compiled it on my machine from the code on master (at commit 51656c7), and I'm getting:

$ ls -al /tmp/wince_docker_app/navit/wince/output/navit.{exe,zip}
-rwxr-xr-x 1 root root 5636931 déc.   4 12:06 /tmp/wince_docker_app/navit/wince/output/navit.exe
-rw-r--r-- 1 root root 4585267 déc.   4 12:06 /tmp/wince_docker_app/navit/wince/output/navit.zip

@lains
Copy link
Contributor

lains commented Dec 4, 2022

And if you don't want to go through the compilation by yourself, I have shared it on:
https://sendgb.com/mdODMtU70LG
MD5SUM: 9fe822ce54a808c3ed34cf481b16c3fd
SHA1SUM: 2f89c27523c2642ddb11fcf68c86bdc235b54930

The above link is valid for 5 days, but trusting exe binaries downloaded from cloud shares is not something I would do, honestly...

@clarified
Copy link
Author

By the way, this means we do test that every new commit still builds correctly on WinCE.

That's good to know: I wasn't sure that was still the case.
It looks as if it may be a bit simpler to complie my own exe then.

Thanks again.

@clarified
Copy link
Author

And if you don't want to go through the compilation by yourself, I have shared it on: https://sendgb.com/mdODMtU70LG MD5SUM: 9fe822ce54a808c3ed34cf481b16c3fd SHA1SUM: 2f89c27523c2642ddb11fcf68c86bdc235b54930

The above link is valid for 5 days, but trusting exe binaries downloaded from cloud shares is not something I would do, honestly...

Indeed. I have a copy, but I will see if I can compile my own local version first.
Short of time as ever, but hope to try the various options suggested as soon as possible.

Thanks to all for all this: very encouraging. I had feared that winCE was being orphaned.
I am not fan of winCE, butI have a pecfectly good winCE satnav which works well, if somewhat slowly, and there is no obvious open source replacement hardware. Given more time I had wondered about building something around a raspberry Pi, but that is going to be a bit clucky at best...

@clarified
Copy link
Author

Grrr..., typos:

pecfectly -> perfectly
clucky -> clunky

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

3 participants