From f0e6ab14e1dbdb6602345701880810781864d3ae Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Sat, 23 Aug 2014 22:20:45 -0400 Subject: Updated Windows cross-compiling instructions --- INSTALL.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'INSTALL.md') 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: ```bash git clone https://github.com/jedisct1/libsodium/ cd libsodium -git checkout tags/0.4.5 +git checkout tags/0.6.1 ./autogen.sh ./configure --host="$WINDOWS_TOOLCHAIN" --prefix="$PREFIX_DIR" --disable-shared --enable-static make @@ -345,18 +345,20 @@ cd tmp $WINDOWS_TOOLCHAIN-ar x ../lib/libtoxcore.a $WINDOWS_TOOLCHAIN-ar x ../lib/libtoxav.a $WINDOWS_TOOLCHAIN-ar x ../lib/libtoxdns.a -$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 +$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 ``` And we will copy it over to the `toxbuild` directory: ```bash mkdir -p /media/sf_toxbuild/release/lib -mv libtox.dll* /media/sf_toxbuild/release/lib +cp libtox.dll.a /media/sf_toxbuild/release/lib +mkdir -p /media/sf_toxbuild/release/bin +cp libtox.dll /media/sf_toxbuild/release/bin mkdir -p /media/sf_toxbuild/release/include -mv ../include/tox /media/sf_toxbuild/release/include +cp -r ../include/tox /media/sf_toxbuild/release/include ``` -That's it. Now you should have `release/lib/libtox.dll` and `release/include/tox/` in your `toxbuild` directory on the Windows system. +That's it. Now you should have `release/bin/libtox.dll`, `release/bin/libtox.dll.a` and `release/include/tox/` in your `toxbuild` directory on the Windows system. ####Native -- cgit v1.2.3