• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Windows cross compilation
2
3**Note:** HTTP/Websocket network API is disabled and not supported
4on Windows until porting of http://facil.io library
5
6Nodejs/Dart bindings not yet ported to Windows.
7
8## Prerequisites
9
10```sh
11sudo apt-get install bison flex libtool ruby scons intltool libtool-bin p7zip-full wine
12```
13
14## Build
15
16### Prepare MXE
17
18```sh
19git submodule update --init
20```
21
22`nano ./mxe/settings.mk`:
23
24```
25JOBS := 1
26MXE_TARGETS := x86_64-w64-mingw32.static
27LOCAL_PKG_LIST := cunit libiberty
28.DEFAULT local-pkg-list:
29local-pkg-list: $(LOCAL_PKG_LIST)
30```
31
32```
33cd ./mxe
34make
35```
36
37### Cross compilation
38
39```bash
40mkdir ./build
41cd  ./build
42
43export MXE_HOME=<path to project>/mxe
44
45cmake .. -DCMAKE_BUILD_TYPE=Release \
46         -DCMAKE_TOOLCHAIN_FILE=../win64-tc.cmake \
47         -DENABLE_HTTP=OFF
48
49make package
50```