File: mingw_note.txt

package info (click to toggle)
darkplaces 0~20180412~beta1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 18,200 kB
  • sloc: ansic: 176,886; makefile: 485; pascal: 455; perl: 372; objc: 245; sh: 102
file content (16 lines) | stat: -rw-r--r-- 879 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
For compiling Darkplaces with MinGW, you need the following files which do not
come in the standard MinGW installation:
	- include/ddraw.h
	- include/dinput.h
	- include/dsound.h
They are part of the DirectX SDK but can also be found in the original release
of Quake 1 source code (ftp://ftp.idsoftware.com/idstuff/source/q1source.zip).

Assuming the MinGW binaries are in your PATH, you compile Darkplaces by typing
"make release". Note that "make" may be named "mingw32-make", so you may want
to try "mingw32-make release" if the first command fails to run.

For cross-compiling Win32 binaries on Linux using MinGW, you need to force the
makefile to use the MinGW compilation parameters, otherwise it will autodetect
the operating system it runs on and will use the corresponding parameters. You
can force it by appending "DP_MAKE_TARGET=mingw" at the end of the command line.