mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 13:58:16 +00:00
Added MingW instruction & converted some tabs to spaces
This commit is contained in:
parent
c23d387e2f
commit
cf0a3d75a8
1 changed files with 68 additions and 47 deletions
43
COMPILE.TXT
43
COMPILE.TXT
|
@ -120,11 +120,10 @@ Unicorn requires few dependent packages as followings
|
||||||
|
|
||||||
$ ./make.sh cross-win64
|
$ ./make.sh cross-win64
|
||||||
|
|
||||||
Resulted files libunicorn.dll, libunicorn.dll.a & tests/test*.exe can then
|
Resulted files unicorn.dll, unicorn.lib & samples/sample*.exe can then
|
||||||
be used on Windows machine.
|
be used on Windows machine.
|
||||||
|
|
||||||
To run sample_x86.exe on Windows 32-bit, you need the following files:
|
To run sample_x86.exe on Windows 32-bit, you need the following files:
|
||||||
|
|
||||||
- unicorn.dll
|
- unicorn.dll
|
||||||
- /usr/i686-w64-mingw32/sys-root/mingw/bin/libglib-2.0-0.dll
|
- /usr/i686-w64-mingw32/sys-root/mingw/bin/libglib-2.0-0.dll
|
||||||
- /usr/lib/gcc/i686-w64-mingw32/4.8/libgcc_s_sjlj-1.dll
|
- /usr/lib/gcc/i686-w64-mingw32/4.8/libgcc_s_sjlj-1.dll
|
||||||
|
@ -176,21 +175,43 @@ Unicorn requires few dependent packages as followings
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[7] Compile on Windows with Cygwin
|
[7] Compile on Windows with MinGW (MSYS2)
|
||||||
|
|
||||||
To compile under Cygwin gcc-mingw-w64-i686 or x86_64-w64-mingw32 run:
|
To compile with MinGW you need to install MSYS2: https://msys2.github.io/
|
||||||
|
Follow the install instructions and don't forget to update the system packages as written in 5 & 6 paragraphs
|
||||||
|
|
||||||
- To compile Windows 32-bit binary under Cygwin, run:
|
- To compile Windows 32-bit binary with MinGW, run:
|
||||||
|
$ pacman -S make
|
||||||
|
$ pacman -S pkg-config
|
||||||
|
$ pacman -S mingw-w64-i686-glib2
|
||||||
|
$ pacman -S mingw-w64-i686-toolchain
|
||||||
|
$ ./make.sh cross-win32
|
||||||
|
|
||||||
$ ./make.sh cygwin-mingw32
|
- To compile Windows 64-bit binary with MinGW, run:
|
||||||
|
$ pacman -S make
|
||||||
|
$ pacman -S pkg-config
|
||||||
|
$ pacman -S mingw-w64-x86_64-glib2
|
||||||
|
$ pacman -S mingw-w64-x86_64-toolchain
|
||||||
|
$ ./make.sh cross-win64
|
||||||
|
|
||||||
- To compile Windows 64-bit binary under Cygwin, run:
|
Resulted files unicorn.dll, unicorn.lib & samples/sample*.exe can then
|
||||||
|
|
||||||
$ ./make.sh cygwin-mingw64
|
|
||||||
|
|
||||||
Resulted files libunicorn.dll, libunicorn.dll.a & tests/test*.exe can then
|
|
||||||
be used on Windows machine.
|
be used on Windows machine.
|
||||||
|
|
||||||
|
To run sample_x86.exe on Windows 32-bit, you need the following files:
|
||||||
|
- unicorn.dll
|
||||||
|
- C:\msys32\mingw32\bin\libiconv-2.dll
|
||||||
|
- C:\msys32\mingw32\bin\libintl-8.dll
|
||||||
|
- C:\msys32\mingw32\bin\libglib-2.0-0.dll
|
||||||
|
- C:\msys32\mingw32\bin\libgcc_s_seh-1.dll
|
||||||
|
- C:\msys32\mingw32\bin\libwinpthread-1.dll
|
||||||
|
|
||||||
|
To run sample_x86.exe on Windows 64-bit, you need the following files:
|
||||||
|
- unicorn.dll
|
||||||
|
- C:\msys64\mingw64\bin\libiconv-2.dll
|
||||||
|
- C:\msys64\mingw64\bin\libintl-8.dll
|
||||||
|
- C:\msys64\mingw64\bin\libglib-2.0-0.dll
|
||||||
|
- C:\msys64\mingw64\bin\libgcc_s_seh-1.dll
|
||||||
|
- C:\msys64\mingw64\bin\libwinpthread-1.dll
|
||||||
|
|
||||||
|
|
||||||
[8] By default, "cc" (default C compiler on the system) is used as compiler.
|
[8] By default, "cc" (default C compiler on the system) is used as compiler.
|
||||||
|
|
Loading…
Reference in a new issue