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

Windows support #133

Open
nilsnolde opened this issue Jan 26, 2024 · 1 comment
Open

Windows support #133

nilsnolde opened this issue Jan 26, 2024 · 1 comment

Comments

@nilsnolde
Copy link
Contributor

I tried building prime_server first time last night on Windows.

Of course there were quite a few build failures, but most very trivial to get around. I'll keep this as a log for myself mostly, not asking anyone to take action. But of course I'd appreciate ideas if any come up:)

TODO:

  • include:
    • winsock2.h
    • dirent.h
  • some compiler definitions missing, e.g. NOGDI, WIN_LEAN_MEAN, some others I think

Blockers

  • Windows has no notion of signals, which I guess would be a big one as that's an important communication mechanism

Alternatives

Instead of a native MSVC build one could explore a MinGW64 build. I read somewhere that *zmq compiles fine with MinGW, even on Windows. Even nicer might then be cross-compiling it on Linux for Windows. The one blocker there is, might very well makes this most feasible route.

@urosjarc
Copy link

@nilsnolde I recognize you as avtor of valhalla engine, hello! 😃 👋

I want to build prime_server on windows server so that I can run valhalla engine on, can you please explain what exactly you did to compile primer_server on windows in order to run valhalla. 🙏

if you want to ENABLE_SERVICES=ON, install https://github.com/kevinkreiser/prime_server#build-and-install (no Windows)

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