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

How to build project for windows under linux? #13

Open
suxiaojack opened this issue Jan 9, 2013 · 1 comment
Open

How to build project for windows under linux? #13

suxiaojack opened this issue Jan 9, 2013 · 1 comment

Comments

@suxiaojack
Copy link
Contributor

I'm working under linux,but I try to build your project for windows.
Is this possible?
I have downloaded mingw-w64 and mingw-ocaml etc. under linux,but I don't know how to use to complie your project.
I can only do is using your ./build program to build linux target laby,and I got it.(auto-apt run ./build)
Please help me,Thanks!

@sgimenez
Copy link
Owner

The available binaries were cross-compiled from linux using mingw-ocaml. I couldn't make builds for recent versions and can't remember the exact reason (probably incompatibilities between ocaml libraries and gtk-related builds which were available for windows). It might be worth to try again now.

Once ocaml-mingw is installed, you'll have to tell ocamlfind to use the appropriate toolchain with:

OCAMLFIND="ocamlfind -toolchain <toolchain>" make

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

No branches or pull requests

2 participants