r721 compiling help - newbie error?

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
User avatar
HeX
Posts: 43
Joined: Mon Jan 22, 2007 6:47 am
Location: www.odamex.net

r721 compiling help - newbie error?

Post by HeX »

I wanted to try compiling ZDoom for myself and did everything the wiki told me. However, despite the two methods I've used, I get the same error from MSYS and compiling with MinGW without MSYS (command prompt)

Code: Select all

C:\Programming\zdoomsrc>mingw32-make
mingw32-make -C tools/lemon
mingw32-make[1]: Entering directory `C:/Programming/zdoomsrc/tools/lemon'
mingw32-make[1]: Nothing to be done for `all'.
mingw32-make[1]: Leaving directory `C:/Programming/zdoomsrc/tools/lemon'
mingw32-make -C tools/re2c
mingw32-make[1]: Entering directory `C:/Programming/zdoomsrc/tools/re2c'
mingw32-make[1]: Nothing to be done for `all'.
mingw32-make[1]: Leaving directory `C:/Programming/zdoomsrc/tools/re2c'
mingw32-make -C zlib -f Makefile.mgw
mingw32-make[1]: Entering directory `C:/Programming/zdoomsrc/zlib'
ccdv: CreateProcess: Error 0x000000c1
%1 is not a valid Win32 application.

ar rcs libz.a adler32.o compress.o crc32.o deflate.o gzio.o infback.o inffast.
inflate.o inftrees.o trees.o uncompr.o zutil.o
mingw32-make[1]: *** [libz.a] Error 7
mingw32-make[1]: Leaving directory `C:/Programming/zdoomsrc/zlib'
mingw32-make: *** [basetools] Error 2
Is this a compiling issue? Or did I not install a library properly?

I'm using Windows XP Pro SP2 and MinGW 5.1.3 on i686 platform

Any help would be appreciated.
User avatar
HeX
Posts: 43
Joined: Mon Jan 22, 2007 6:47 am
Location: www.odamex.net

Re: r721 compiling help - newbie error?

Post by HeX »

Well I discovered my binutils was broken, so I used version 2.17.50 instead.

However now I'm getting a different error:

Code: Select all

mingw32-make[1]: Leaving directory `C:/Programming/zdoom217/tools/xlatcc'
mingw32-make -C wadsrc -f Makefile.mgw
mingw32-make[1]: Entering directory `C:/Programming/zdoom217/wadsrc'
mingw32-make[1]: `zdoom.pk3' is up to date.
mingw32-make[1]: Leaving directory `C:/Programming/zdoom217/wadsrc'
mingw32-make -C flac -f Makefile.mgw
mingw32-make[1]: Entering directory `C:/Programming/zdoom217/flac'
ccdv: CreateProcess: Error 0x00000002
The system cannot find the file specified.

nasmw -o cpu_asm.o -d OBJ_FORMAT_win32 -f win32 ia32/cpu_asm.nasm
mingw32-make[1]: *** [cpu_asm.o] Error 7
mingw32-make[1]: Leaving directory `C:/Programming/zdoom217/flac'
mingw32-make: *** [basetools] Error 2
This is using the 2.1.7 source...anyone have any idea?
User avatar
Necromage
Posts: 484
Joined: Thu Feb 10, 2005 3:13 pm
Location: NJ
Contact:

Re: r721 compiling help - newbie error?

Post by Necromage »

Make sure you have nasm 2.00. If you are building 2.1.7 then make a copy of nasm.exe and rename it to nasmw.exe or download the older version. (though renaming it should work)
User avatar
HeX
Posts: 43
Joined: Mon Jan 22, 2007 6:47 am
Location: www.odamex.net

Re: r721 compiling help - newbie error?

Post by HeX »

Thanks! That got me 2.1.7 compiled with MSYS (however weird errors without, but I can live with using MSYS).

But in ZDoom SVN, I got another error. I added

Code: Select all

#define SIZE_T_MAX UINT_MAX /* max value for a size_t */
to limits.h as suggested here and was able to compile further until I struck another error:

Code: Select all

make[1]: Entering directory `/c/programming/zdoomsrc/wadsrc'
make[1]: `zdoom.pk3' is up to date.
make[1]: Leaving directory `/c/programming/zdoomsrc/wadsrc'
make -C flac -f Makefile.mgw
make[1]: Entering directory `/c/programming/zdoomsrc/flac'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/c/programming/zdoomsrc/flac'
make -C jpeg-6b -f Makefile.mgw
make[1]: Entering directory `/c/programming/zdoomsrc/jpeg-6b'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/c/programming/zdoomsrc/jpeg-6b'
make[1]: Entering directory `/c/programming/zdoomsrc'
'svnversion' is not recognized as an internal or external command,
operable program or batch file.
Compiling g_game.cpp:                                                [ERROR]
g++ -fno-strict-aliasing -DWIN32 -D_WIN32 -D_WINDOWS -DHAVE_STRUPR -DHAVE_FILELENGTH -DI_DO_NOT_LIKE_BIG_DOWNLOADS -D__forceinline=inline -MMD -Izlib -IFLAC -Ijpeg-6b -Isrc -Isrc/win32 -Isrc/g_doom -Isrc/g_heretic -Isrc/g_hexen -Isrc/g_raven -Isrc/g_strife -Isrc/g_shared -Isrc/oplsynth -Isrc/sound -Isrc/textures -Isrc/thingdef -Ic:/MinGW/api/inc -DNDEBUG -march=pentium -mtune=i686 -Wall -Wno-unused -O2 -fomit-frame-pointer -pipe -ffunction-sections -fno-rtti -DUSEASM=1 -o releaseobj/g_game.o -c src/g_game.cpp 
================================================================================
src/g_game.cpp: In function `void G_DoLoadGame()':
src/g_game.cpp:1736: error: invalid token
src/g_game.cpp:1736: error: expected `)' before numeric constant
src/g_game.cpp: In function `void G_DoSaveGame(bool)':
src/g_game.cpp:2002: error: invalid token
src/g_game.cpp:2002: error: expected `)' before numeric constant
make[1]: *** [releaseobj/g_game.o] Error 1
make[1]: Leaving directory `/c/programming/zdoomsrc'
make: *** [game] Error 2
Any idea how to get rid of this?
User avatar
HeX
Posts: 43
Joined: Mon Jan 22, 2007 6:47 am
Location: www.odamex.net

Re: r721 compiling help - newbie error?

Post by HeX »

Well I upgraded my gcc-g++ and gcc-core to 4.2.1, and now I got this error popping up.

Code: Select all

$ make
make -C tools/lemon
make[1]: Entering directory `/c/programming/zdoomsrc/tools/lemon'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/c/programming/zdoomsrc/tools/lemon'
make -C tools/re2c
make[1]: Entering directory `/c/programming/zdoomsrc/tools/re2c'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/c/programming/zdoomsrc/tools/re2c'
make -C zlib -f Makefile.mgw
make[1]: Entering directory `/c/programming/zdoomsrc/zlib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/c/programming/zdoomsrc/zlib'
make -C tools/makewad
make[1]: Entering directory `/c/programming/zdoomsrc/tools/makewad'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/c/programming/zdoomsrc/tools/makewad'
make -C tools/dehsupp
make[1]: Entering directory `/c/programming/zdoomsrc/tools/dehsupp'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/c/programming/zdoomsrc/tools/dehsupp'
make -C tools/xlatcc
make[1]: Entering directory `/c/programming/zdoomsrc/tools/xlatcc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/c/programming/zdoomsrc/tools/xlatcc'
make -C tools/fixrtext
make[1]: Entering directory `/c/programming/zdoomsrc/tools/fixrtext'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/c/programming/zdoomsrc/tools/fixrtext'
make -C wadsrc -f Makefile.mgw
make[1]: Entering directory `/c/programming/zdoomsrc/wadsrc'
c:\Programming\zdoomsrc\tools\makewad\makewad.exe zdoom.lst
make[1]: c:Programmingzdoomsrctoolsmakewadmakewad.exe: Command not found
make[1]: *** [zdoom.pk3] Error 127
make[1]: Leaving directory `/c/programming/zdoomsrc/wadsrc'
make: *** [basetools] Error 2
Man almost!
Post Reply

Return to “General”