Didn't manage to compile. Win32, MinGW

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
gypakk
Trained
Trained
Posts: 60
Joined: 07 Nov 2007, 20:16
Location: 11° east, 49°30' north

Didn't manage to compile. Win32, MinGW

Post by gypakk »

Please give me a hint...  What did I do wrong?

config.mk

Code: Select all

# Version of Warzone you are compiling
VERSION=TRUNK
#INSTALLER_VERSION=9.9.9.9
#PACKAGE_BUGREPORT=http://wz2100.net/

# Platform you are running
#PLATFORM=windows
#PLATFORM=linux
PLATFORM=mingw32

# Compilation mode
#MODE=debug
MODE=release

# Directory where you store your dev stuff (lib and include)
DEVDIR=D:\WZ\src

# Remind the user to install Flex and Bison
BISON=bison
FLEX=flex

# Path to makensis
#MAKENSIS="wine C:/Program\ Files/NSIS/makensis.exe"
MAKENSIS=D:\WZ\nsis

# Whether to build data package and installer
#DATA=yes
#INSTALLER=yes
#USE_GETTEXT=yes

# Gettext stuff
#PACKAGE=warzone2100
#LOCALEDIR=""
#XGETTEXT="xgettext"
#MSGMERGE="msgmerge"
#MSGFMT="msgfmt"
Command line output

Code: Select all

mingw32-make.exe -f Makefile.raw -C build_tools
mingw32-make.exe[1]: Entering directory `D:/WZ/build_tools'
mingw32-make.exe -f Makefile.raw -C autorevision
VERSION set to TRUNK
PLATFORM set to mingw32
MODE set to release
DEVDIR set to D:\WZ\src
BISON is set to bison
FLEX is set to flex
mingw32-make.exe[2]: Entering directory `D:/WZ/build_tools/autorevision'
autorevision.exe +cstr -v ../.. ../../src/autorevision.h
Der Befehl "svnversion" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Der Befehl "svn" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Revision unchanged (2898). Skipping.
old = "2898"; new = "2898"
mingw32-make.exe[2]: Leaving directory `D:/WZ/build_tools/autorevision'
mingw32-make.exe[1]: Leaving directory `D:/WZ/build_tools'
mingw32-make.exe -f Makefile.raw -C po
VERSION set to TRUNK
PLATFORM set to mingw32
MODE set to release
DEVDIR set to D:\WZ\src
BISON is set to bison
FLEX is set to flex
mingw32-make.exe[1]: Entering directory `D:/WZ/po'
mingw32-make.exe[1]: Nothing to be done for `all'.
mingw32-make.exe[1]: Leaving directory `D:/WZ/po'
mingw32-make.exe -f Makefile.raw -C win32
VERSION set to TRUNK
PLATFORM set to mingw32
MODE set to release
DEVDIR set to D:\WZ\src
BISON is set to bison
FLEX is set to flex
mingw32-make.exe[1]: Entering directory `D:/WZ/win32'
rm -f warzone2100.o
process_begin: CreateProcess(NULL, rm -f warzone2100.o, ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
mingw32-make.exe[1]: *** [clean] Error 2
mingw32-make.exe[1]: Leaving directory `D:/WZ/win32'
mingw32-make.exe: *** [win32] Error 2

D:\WZ>
Installed:
TortoiseSVN, MinGW, flex 2.5.33, bison 2.3 (1.8 is no longer available at MinGW files)

Path:
...;C:\MinGW\bin;D:\WZ\bison\bin;D:\WZ\flex\bin
Life is real - unless declared as integer.
Kamaze
Regular
Regular
Posts: 1017
Joined: 30 Jul 2006, 15:23

Re: Didn't manage to compile. Win32, MinGW

Post by Kamaze »

If you compile on Windows with MinGW you must use "PLATFORM=windows" and not mingw. (afaik)
We all have the same heaven, but not the same horizon.
gypakk
Trained
Trained
Posts: 60
Joined: 07 Nov 2007, 20:16
Location: 11° east, 49°30' north

Re: Didn't manage to compile. Win32, MinGW

Post by gypakk »

Thanks! But that doesn't change a lot...  :-(

# Platform you are running
PLATFORM=windows
#PLATFORM=linux
#PLATFORM=mingw32

Code: Select all

mingw32-make.exe -f Makefile.raw -C build_tools
mingw32-make.exe[1]: Entering directory `D:/WZ/build_tools'
mingw32-make.exe -f Makefile.raw -C autorevision
VERSION set to TRUNK
PLATFORM set to windows
MODE set to release
DEVDIR set to D:\WZ\src
BISON is set to bison
FLEX is set to flex
mingw32-make.exe[2]: Entering directory `D:/WZ/build_tools/autorevision'
autorevision.exe +cstr -v ../.. ../../src/autorevision.h
Der Befehl "svnversion" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Der Befehl "svn" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Revision unchanged (2898). Skipping.
old = "2898"; new = "2898"
mingw32-make.exe[2]: Leaving directory `D:/WZ/build_tools/autorevision'
mingw32-make.exe[1]: Leaving directory `D:/WZ/build_tools'
mingw32-make.exe -f Makefile.raw -C po
VERSION set to TRUNK
PLATFORM set to windows
MODE set to release
DEVDIR set to D:\WZ\src
BISON is set to bison
FLEX is set to flex
mingw32-make.exe[1]: Entering directory `D:/WZ/po'
mingw32-make.exe[1]: Nothing to be done for `all'.
mingw32-make.exe[1]: Leaving directory `D:/WZ/po'
mingw32-make.exe -f Makefile.raw -C win32
VERSION set to TRUNK
PLATFORM set to windows
MODE set to release
DEVDIR set to D:\WZ\src
BISON is set to bison
FLEX is set to flex
mingw32-make.exe[1]: Entering directory `D:/WZ/win32'
mingw32-make.exe[1]: Nothing to be done for `all'.
mingw32-make.exe[1]: Leaving directory `D:/WZ/win32'
mingw32-make.exe -f Makefile.raw -C lib
mingw32-make.exe[1]: Entering directory `D:/WZ/lib'
mingw32-make.exe -f Makefile.raw -C framework
VERSION set to TRUNK
PLATFORM set to windows
MODE set to release
DEVDIR set to D:\WZ\src
BISON is set to bison
FLEX is set to flex
mingw32-make.exe[2]: Entering directory `D:/WZ/lib/framework'
gcc -DVERSION=\"TRUNK\" -DYY_STATIC -DLOCALEDIR=\"\" -DPACKAGE=\"\" -I.. -I../.. -ID:\WZ\src/include -ID:\WZ\src/include/SDL -DNDEBUG -mwindows -DWIN32 -c -oconfigfile.o configfile.c
In file included from frame.h:55,
                 from configfile.c:21:
types.h:38:23: SDL_types.h: No such file or directory
In file included from configfile.c:21:
frame.h:63:20: physfs.h: No such file or directory
In file included from configfile.c:21:
frame.h:119: error: syntax error before '*' token
frame.h:119: warning: data definition has no type or storage class
frame.h:120: error: syntax error before '*' token
frame.h:120: warning: data definition has no type or storage class
frame.h:217: error: syntax error before '*' token
frame.h: In function `PHYSFS_writeSBE8':
frame.h:219: error: `file' undeclared (first use in this function)
frame.h:219: error: (Each undeclared identifier is reported only once
frame.h:219: error: for each function it appears in.)
frame.h:219: error: `val' undeclared (first use in this function)
frame.h: At top level:
frame.h:222: error: syntax error before '*' token
frame.h: In function `PHYSFS_writeUBE8':
frame.h:224: error: `file' undeclared (first use in this function)
frame.h:224: error: `val' undeclared (first use in this function)
frame.h: At top level:
frame.h:227: error: syntax error before '*' token
frame.h: In function `PHYSFS_readSBE8':
frame.h:229: error: `file' undeclared (first use in this function)
frame.h:229: error: `val' undeclared (first use in this function)
frame.h: At top level:
frame.h:232: error: syntax error before '*' token
frame.h: In function `PHYSFS_readUBE8':
frame.h:234: error: `file' undeclared (first use in this function)
frame.h:234: error: `val' undeclared (first use in this function)
frame.h: At top level:
frame.h:237: error: syntax error before '*' token
frame.h: In function `PHYSFS_writeBEFloat':
frame.h:246: error: `val' undeclared (first use in this function)
frame.h:247: error: `file' undeclared (first use in this function)
frame.h: At top level:
frame.h:250: error: syntax error before '*' token
frame.h: In function `PHYSFS_readBEFloat':
frame.h:254: error: `val' undeclared (first use in this function)
frame.h:255: error: `file' undeclared (first use in this function)
mingw32-make.exe[2]: *** [configfile.o] Error 1
mingw32-make.exe[2]: Leaving directory `D:/WZ/lib/framework'
mingw32-make.exe[1]: *** [framework] Error 2
mingw32-make.exe[1]: Leaving directory `D:/WZ/lib'
mingw32-make.exe: *** [lib] Error 2

D:\WZ>
Life is real - unless declared as integer.
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Didn't manage to compile. Win32, MinGW

Post by Buginator »

On windows, I rather use MSVC.
You can download the free version from microsoft.
Then just get the platform SDK, openAL SDK, SDL, popt, quesoGLC, png, and maybe a few others, but you will see linker errors at the end of compile, and you can then post those if you want.
and it ends here.
gypakk
Trained
Trained
Posts: 60
Joined: 07 Nov 2007, 20:16
Location: 11° east, 49°30' north

Re: Didn't manage to compile. Win32, MinGW

Post by gypakk »

Buginator wrote: Then just get the platform SDK, openAL SDK, SDL, popt, quesoGLC, png, and maybe a few others, ...
Yes, it seems, some libs or header files are missing.
"SDL_types.h: No such file or directory" suggests this.
But what exactly do I need and where can I download it?

Maybe I shouldn't have started to try compiling the sources at all...  :-)
Life is real - unless declared as integer.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Didn't manage to compile. Win32, MinGW

Post by DevUrandom »

Did you download the devpkg (development package) from http://download.gna.org/warzone/develop ... 0071119.7z and extracted it to D:\WZ\src ?
(If D:\WZ\src is your Warzone sourcecode directory, you should _not_ extract it into that one, but instead somewhere else and adjust DEVDIR in config.mk accordingly!)

If that devpkg works ok for you, I'll update the -latest link, but since I didn't have any testers till now, I didn't try that yet.
gypakk
Trained
Trained
Posts: 60
Joined: 07 Nov 2007, 20:16
Location: 11° east, 49°30' north

Re: Didn't manage to compile. Win32, MinGW

Post by gypakk »

DevUrandom:
Oh - possibly I did not include these files. Thank you - I will try this!

Please give me read access to this file.
"You don't have permission to access /warzone/development/warzone-devpkg-mingw32-20071119.7z on this server."
Life is real - unless declared as integer.
Kamaze
Regular
Regular
Posts: 1017
Joined: 30 Jul 2006, 15:23

Re: Didn't manage to compile. Win32, MinGW

Post by Kamaze »

See http://wz2100.net/downloads

http://download.gna.org/warzone/develop ... -latest.7z

On wz2100.net things should be there where you expect them. :)
We all have the same heaven, but not the same horizon.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Didn't manage to compile. Win32, MinGW

Post by DevUrandom »

Well, I didn't point him to that, because it is outdated...

Permissions should be fixed, sorry for the inconvenience, I always forget that part...
Kamaze
Regular
Regular
Posts: 1017
Joined: 30 Jul 2006, 15:23

Re: Didn't manage to compile. Win32, MinGW

Post by Kamaze »

DevUrandom wrote: warzone-devpkg-mingw32-latest.7z
... Well, I didn't point him to that, because it is outdated...
Interesting...
We all have the same heaven, but not the same horizon.
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18

Re: Didn't manage to compile. Win32, MinGW

Post by Giel »

Kamaze wrote: Interesting...
[me=Giel]updated the symlinks to point to the latest files (for the devpackage at least).[/me]
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Didn't manage to compile. Win32, MinGW

Post by DevUrandom »

Giel wrote: [me=Giel]updated the symlinks to point to the latest files (for the devpackage at least).[/me]
I explained the reason why I didn't do that above...
gypakk
Trained
Trained
Posts: 60
Joined: 07 Nov 2007, 20:16
Location: 11° east, 49°30' north

Re: Didn't manage to compile. Win32, MinGW

Post by gypakk »

Thank you again for all your help!

I downloaded warzone-devpkg-mingw32-20071119.7z, extracted it and moved the folder "devpkg" to D:\WZ.
Inside D:\WZ there are the "bison" and "flex" directories too.

The WZ sources are in D:\WZQ directory now. I used TortsieSVN for file update.

The first compile run seems to be completed, but when I start the make batch
%SystemRoot%\system32\cmd.exe /k "mingw32-make.exe -f D:\WZQ\Makefile.raw"
a second time, still some error messages are displayed. :-(

config.mk

Code: Select all

# Version of Warzone you are compiling
VERSION=TRUNK
#INSTALLER_VERSION=9.9.9.9
#PACKAGE_BUGREPORT=http://wz2100.net/

# Platform you are running
PLATFORM=windows
#PLATFORM=linux
#PLATFORM=mingw32

# Compilation mode
#MODE=debug
MODE=release

# Directory where you store your dev stuff (lib and include)
DEVDIR=D:\WZ\devpkg

# Remind the user to install Flex and Bison
BISON=bison
FLEX=flex

# Path to makensis
#MAKENSIS="wine C:/Program\ Files/NSIS/makensis.exe"
MAKENSIS=D:\WZQ\nsis\Makefile.raw

# Whether to build data package and installer
#DATA=yes
#INSTALLER=yes
#USE_GETTEXT=yes

# Gettext stuff
#PACKAGE=warzone2100
LOCALEDIR=""
#XGETTEXT="xgettext"
#MSGMERGE="msgmerge"
#MSGFMT="msgfmt"
Batch Output

Code: Select all

mingw32-make.exe -f Makefile.raw -C build_tools
mingw32-make.exe[1]: Entering directory `D:/WZQ/build_tools'
mingw32-make.exe -f Makefile.raw -C autorevision
VERSION set to TRUNK
PLATFORM set to windows
MODE set to release
DEVDIR set to D:\WZ\devpkg
BISON is set to bison
FLEX is set to flex
mingw32-make.exe[2]: Entering directory `D:/WZQ/build_tools/autorevision'
autorevision.exe +cstr -v ../.. ../../src/autorevision.h
Der Befehl "svnversion" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Der Befehl "svn" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Revision unchanged (2898). Skipping.
old = "2898"; new = "2898"
mingw32-make.exe[2]: Leaving directory `D:/WZQ/build_tools/autorevision'
mingw32-make.exe[1]: Leaving directory `D:/WZQ/build_tools'
mingw32-make.exe -f Makefile.raw -C po
VERSION set to TRUNK
PLATFORM set to windows
MODE set to release
DEVDIR set to D:\WZ\devpkg
BISON is set to bison
FLEX is set to flex
mingw32-make.exe[1]: Entering directory `D:/WZQ/po'
mingw32-make.exe[1]: Nothing to be done for `all'.
mingw32-make.exe[1]: Leaving directory `D:/WZQ/po'
mingw32-make.exe -f Makefile.raw -C win32
VERSION set to TRUNK
PLATFORM set to windows
MODE set to release
DEVDIR set to D:\WZ\devpkg
BISON is set to bison
FLEX is set to flex
mingw32-make.exe[1]: Entering directory `D:/WZQ/win32'
mingw32-make.exe[1]: Nothing to be done for `all'.
mingw32-make.exe[1]: Leaving directory `D:/WZQ/win32'
mingw32-make.exe -f Makefile.raw -C lib
mingw32-make.exe[1]: Entering directory `D:/WZQ/lib'
mingw32-make.exe -f Makefile.raw -C framework
VERSION set to TRUNK
PLATFORM set to windows
MODE set to release
DEVDIR set to D:\WZ\devpkg
BISON is set to bison
FLEX is set to flex
mingw32-make.exe[2]: Entering directory `D:/WZQ/lib/framework'
bison -d  -oresource_parser.tab.c resource_parser.y
mingw32-make.exe[2]: *** [resource_parser.tab.c] Error -1073741515
mingw32-make.exe[2]: Leaving directory `D:/WZQ/lib/framework'
mingw32-make.exe[1]: *** [framework] Error 2
mingw32-make.exe[1]: Leaving directory `D:/WZQ/lib'
mingw32-make.exe: *** [lib] Error 2

D:\WZQ>
Life is real - unless declared as integer.
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Didn't manage to compile. Win32, MinGW

Post by Buginator »

gypakk wrote: Thank you again for all your help!

I downloaded warzone-devpkg-mingw32-20071119.7z, extracted it and moved the folder "devpkg" to D:\WZ.
Inside D:\WZ there are the "bison" and "flex" directories too.

The WZ sources are in D:\WZQ directory now. I used TortsieSVN for file update.

The first compile run seems to be completed, but when I start the make batch
%SystemRoot%\system32\cmd.exe /k "mingw32-make.exe -f D:\WZQ\Makefile.raw"
a second time, still some error messages are displayed. :-(
For mingw on windows, open up the mingw/msys shell, and once in the source directory, you should just do:
./configure
./autogen.sh
make
(assuming you got all the autotools and stuff for mingw/msys)

But, like I said, it is MUCH easier to compile it on MSVC.
Once you download all the SDKs needed, and the extra library libs, set up MSVC environment, you should be good to go.
and it ends here.