summaryrefslogtreecommitdiff
path: root/INSTALL.md
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2014-08-23 22:20:45 -0400
committerMaxim Biro <nurupo.contributions@gmail.com>2014-08-23 22:20:45 -0400
commitf0e6ab14e1dbdb6602345701880810781864d3ae (patch)
treefa1d883f1fefb1612456a05e58c8bda4ce538efa /INSTALL.md
parent43723f29707fa531f4db00c938c8b84f734df349 (diff)
Updated Windows cross-compiling instructions
Diffstat (limited to 'INSTALL.md')
-rw-r--r--INSTALL.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 41aa5afd..0430c1ab 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -318,7 +318,7 @@ Now we will build sodium crypto library:
318```bash 318```bash
319git clone https://github.com/jedisct1/libsodium/ 319git clone https://github.com/jedisct1/libsodium/
320cd libsodium 320cd libsodium
321git checkout tags/0.4.5 321git checkout tags/0.6.1
322./autogen.sh 322./autogen.sh
323./configure --host="$WINDOWS_TOOLCHAIN" --prefix="$PREFIX_DIR" --disable-shared --enable-static 323./configure --host="$WINDOWS_TOOLCHAIN" --prefix="$PREFIX_DIR" --disable-shared --enable-static
324make 324make
@@ -345,18 +345,20 @@ cd tmp
345$WINDOWS_TOOLCHAIN-ar x ../lib/libtoxcore.a 345$WINDOWS_TOOLCHAIN-ar x ../lib/libtoxcore.a
346$WINDOWS_TOOLCHAIN-ar x ../lib/libtoxav.a 346$WINDOWS_TOOLCHAIN-ar x ../lib/libtoxav.a
347$WINDOWS_TOOLCHAIN-ar x ../lib/libtoxdns.a 347$WINDOWS_TOOLCHAIN-ar x ../lib/libtoxdns.a
348$WINDOWS_TOOLCHAIN-gcc -Wl,--export-all-symbols -Wl,--out-implib=libtox.dll.a -shared -o libtox.dll *.o ../lib/*.a /usr/$WINDOWS_TOOLCHAIN/lib/libwinpthread.a -lws2_32 -static-libgcc 348$WINDOWS_TOOLCHAIN-gcc -Wl,--export-all-symbols -Wl,--out-implib=libtox.dll.a -shared -o libtox.dll *.o ../lib/*.a /usr/$WINDOWS_TOOLCHAIN/lib/libwinpthread.a -liphlpapi -lws2_32 -static-libgcc
349``` 349```
350 350
351And we will copy it over to the `toxbuild` directory: 351And we will copy it over to the `toxbuild` directory:
352```bash 352```bash
353mkdir -p /media/sf_toxbuild/release/lib 353mkdir -p /media/sf_toxbuild/release/lib
354mv libtox.dll* /media/sf_toxbuild/release/lib 354cp libtox.dll.a /media/sf_toxbuild/release/lib
355mkdir -p /media/sf_toxbuild/release/bin
356cp libtox.dll /media/sf_toxbuild/release/bin
355mkdir -p /media/sf_toxbuild/release/include 357mkdir -p /media/sf_toxbuild/release/include
356mv ../include/tox /media/sf_toxbuild/release/include 358cp -r ../include/tox /media/sf_toxbuild/release/include
357``` 359```
358 360
359That's it. Now you should have `release/lib/libtox.dll` and `release/include/tox/<headers>` in your `toxbuild` directory on the Windows system. 361That's it. Now you should have `release/bin/libtox.dll`, `release/bin/libtox.dll.a` and `release/include/tox/<headers>` in your `toxbuild` directory on the Windows system.
360 362
361<a name="windows-native" /> 363<a name="windows-native" />
362####Native 364####Native