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. #1

Closed
xiam opened this issue Jan 2, 2015 · 5 comments
Closed

Windows support. #1

xiam opened this issue Jan 2, 2015 · 5 comments

Comments

@xiam
Copy link
Member

xiam commented Jan 2, 2015

I think Hyperfox would compile fine on a Windows machine but I can't test it since I don't have a license so some help would be appreciated.

Some concerns:

  • Hyperfox depends on mattn's SQLite driver which requires CGO.
  • We need instructions for building and testing from scratch on a VirtualBox's virtual machine and not a binary build.
  • Instructions for enabling IP forwarding are also needed.
@peterhellberg
Copy link

One idea might be to support BoltDB (or goleveldb) as the storage backend? Is thera any other parts of this project that requires CGO?

@xiam
Copy link
Member Author

xiam commented Jan 2, 2015

The thing with SQLite is that it creates a practically universally known database file that can be read with the sqlite command line tool and also with many visual tools. This way the user is never locked to an specific tool for reading her data. The drawback is that compilation is not that straightforward.

It would be great to get rid of CGO, that way cross compilation would not be a problem and we'll definitely do it when we can offer a good option against the data locking issue.

I've opened a separate issue to discuss boltdb, goleveldb and ql as potential storage backends and included all my concerns.

PS: On the meantime, I plan to offer binaries soon so the user does not have to compile from source.

@mdaniel
Copy link

mdaniel commented Jan 2, 2015

I can't test it since I don't have a license so some help would be appreciated.

Just as a friendly FYI, Microsoft makes VM images available for almost every platform they sell. Compilation can then proceed using either MinGW^1, TDM-GCC or Windows SDK [also available as an ISO] which last time I checked included cl.exe as well as all the Microsoft headers required to compile for the platform.

I am not a lawyer, but the freely available downloads implies to me that Microsoft wants you to compile for its users, in hopes they'll remain on Windows.

1 = Please see this text for the story with MinGW-x64: http://qt-project.org/wiki/MinGW-64-bit and this site which was linked from the MinGW download page looks great: http://win-builds.org/

@xiam
Copy link
Member Author

xiam commented Jan 3, 2015

Thanks @mdaniel! That's a good one. @peterhellberg also pointed me out to the modern.ie website on the Gophers channel on Slack, these images are good for 30 days and that's good enough. Sounds like a really strong alternative.

@xiam
Copy link
Member Author

xiam commented Jan 4, 2015

Thanks for your help, I used modern.ie and MinGW as suggested and now we have a Windows build :-).

@xiam xiam closed this as completed Jan 4, 2015
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