diff options
author | Maxim Biro <nurupo.contributions@gmail.com> | 2014-08-23 22:20:45 -0400 |
---|---|---|
committer | Maxim Biro <nurupo.contributions@gmail.com> | 2014-08-23 22:20:45 -0400 |
commit | f0e6ab14e1dbdb6602345701880810781864d3ae (patch) | |
tree | fa1d883f1fefb1612456a05e58c8bda4ce538efa /INSTALL.md | |
parent | 43723f29707fa531f4db00c938c8b84f734df349 (diff) |
Updated Windows cross-compiling instructions
Diffstat (limited to 'INSTALL.md')
-rw-r--r-- | INSTALL.md | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -318,7 +318,7 @@ Now we will build sodium crypto library: | |||
318 | ```bash | 318 | ```bash |
319 | git clone https://github.com/jedisct1/libsodium/ | 319 | git clone https://github.com/jedisct1/libsodium/ |
320 | cd libsodium | 320 | cd libsodium |
321 | git checkout tags/0.4.5 | 321 | git 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 |
324 | make | 324 | make |
@@ -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 | ||
351 | And we will copy it over to the `toxbuild` directory: | 351 | And we will copy it over to the `toxbuild` directory: |
352 | ```bash | 352 | ```bash |
353 | mkdir -p /media/sf_toxbuild/release/lib | 353 | mkdir -p /media/sf_toxbuild/release/lib |
354 | mv libtox.dll* /media/sf_toxbuild/release/lib | 354 | cp libtox.dll.a /media/sf_toxbuild/release/lib |
355 | mkdir -p /media/sf_toxbuild/release/bin | ||
356 | cp libtox.dll /media/sf_toxbuild/release/bin | ||
355 | mkdir -p /media/sf_toxbuild/release/include | 357 | mkdir -p /media/sf_toxbuild/release/include |
356 | mv ../include/tox /media/sf_toxbuild/release/include | 358 | cp -r ../include/tox /media/sf_toxbuild/release/include |
357 | ``` | 359 | ``` |
358 | 360 | ||
359 | That's it. Now you should have `release/lib/libtox.dll` and `release/include/tox/<headers>` in your `toxbuild` directory on the Windows system. | 361 | That'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 |