Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Building Allegro 4.2.1 with MinGW 5.1.3 ?

Credits go to Matthew Leverton for helping out!
This thread is locked; no one can reply to it. rss feed Print
Building Allegro 4.2.1 with MinGW 5.1.3 ?
paranoima
Member #1,380
June 2001
avatar

Its been a long time since I compiled Allegro and thought I might give it a try again.
I downloaded the latest zip from alleg.sf.net (http://prdownloads.sourceforge.net/alleg/all421.zip?download)
Then I downloaded the latest MinGW package
(http://downloads.sourceforge.net/mingw/MinGW-5.1.3.exe?modtime=1168794334&big_mirror=1)
and for good measure I also downloaded the DirectX headers/libs
(http://alleg.sourceforge.net/files/dx70_min.zip)

In the past these steps have always given me a successful build of Allegro (4.0.x days), however I seem to be missing something or have an out of sync version of something. Below is the output from make:

Quote:

gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mtune=i586 -O2 -funroll
-loops -ffast-math -fomit-frame-pointer -I. -I./include -o obj/mingw32/alleg/wd
sinput.o -c src/win/wdsinput.c
In file included from src/win/wdsinput.c:33:
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/mmsystem.h:1570: error
: syntax error before "LPCWAVEFORMATEX"
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/mmsystem.h:1591: error
: syntax error before "LPCWAVEFORMATEX"
In file included from src/win/wdsinput.c:34:
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/dsound.h:128: error: s
yntax error before "LPWAVEFORMATEX"
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/dsound.h:134: error: s
yntax error before '*' token
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/dsound.h:142: error: s
yntax error before "LPWAVEFORMATEX"
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/dsound.h:145: error: s
yntax error before '*' token
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/dsound.h:193: error: s
yntax error before "LPWAVEFORMATEX"
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/dsound.h:196: error: s
yntax error before '*' token
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/dsound.h:284: error: s
yntax error before "LPCDSBUFFERDESC"
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/dsound.h:337: error: s
yntax error before "LPWAVEFORMATEX"
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/dsound.h:342: error: s
yntax error before "LPCDSBUFFERDESC"
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/dsound.h:346: error: s
yntax error before "LPCWAVEFORMATEX"
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/dsound.h:569: error: s
yntax error before "LPCDSCBUFFERDESC"
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/dsound.h:607: error: s
yntax error before "LPWAVEFORMATEX"
C:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/dsound.h:609: error: s
yntax error before "LPCDSCBUFFERDESC"
src/win/wdsinput.c:54: error: syntax error before "dsc_buf_wfx"
src/win/wdsinput.c:54: warning: type defaults to `int' in declaration of `dsc_bu
f_wfx'
src/win/wdsinput.c:54: warning: data definition has no type or storage class
src/win/wdsinput.c:120: error: syntax error before '*' token
src/win/wdsinput.c: In function `create_test_capture_buffer':
src/win/wdsinput.c:123: error: syntax error before "dsc_trybuf_desc"
src/win/wdsinput.c:127: error: `dsc_trybuf_desc' undeclared (first use in this f
unction)
src/win/wdsinput.c:127: error: (Each undeclared identifier is reported only once

src/win/wdsinput.c:127: error: for each function it appears in.)
src/win/wdsinput.c:132: error: `wfx' undeclared (first use in this function)
src/win/wdsinput.c: At top level:
src/win/wdsinput.c:150: error: syntax error before "WAVEFORMATEX"
src/win/wdsinput.c: In function `get_capture_format_support':
src/win/wdsinput.c:155: error: `WAVEFORMATEX' undeclared (first use in this func
tion)
src/win/wdsinput.c:155: error: `test_wfx' undeclared (first use in this function
)
src/win/wdsinput.c:190: error: `autodetect' undeclared (first use in this functi
on)
src/win/wdsinput.c:194: error: `bits' undeclared (first use in this function)
src/win/wdsinput.c:194: error: request for member `wBitsPerSample' in something
not a structure or union
src/win/wdsinput.c:195: error: `stereo' undeclared (first use in this function)
src/win/wdsinput.c:195: error: request for member `nChannels' in something not a
structure or union
src/win/wdsinput.c:196: error: request for member `nChannels' in something not a
structure or union
src/win/wdsinput.c:197: error: `rate' undeclared (first use in this function)
src/win/wdsinput.c:197: error: request for member `nSamplesPerSec' in something
not a structure or union
src/win/wdsinput.c:202: error: `wfx' undeclared (first use in this function)
src/win/wdsinput.c: In function `digi_directsound_capture_init':
src/win/wdsinput.c:269: error: `WAVEFORMATEX' undeclared (first use in this func
tion)
src/win/wdsinput.c:269: error: syntax error before "wfx"
src/win/wdsinput.c:311: error: `wfx' undeclared (first use in this function)
src/win/wdsinput.c: In function `digi_directsound_rec_cap_rate':
src/win/wdsinput.c:401: error: `WAVEFORMATEX' undeclared (first use in this func
tion)
src/win/wdsinput.c:401: error: syntax error before "wfx"
src/win/wdsinput.c:403: error: `wfx' undeclared (first use in this function)
src/win/wdsinput.c: In function `digi_directsound_rec_start':
src/win/wdsinput.c:452: error: syntax error before "dscBufDesc"
src/win/wdsinput.c:465: error: request for member `wBitsPerSample' in something
not a structure or union
src/win/wdsinput.c:466: error: request for member `nChannels' in something not a
structure or union
src/win/wdsinput.c:469: error: `dscBufDesc' undeclared (first use in this functi
on)
src/win/wdsinput.c:472: error: request for member `nAvgBytesPerSec' in something
not a structure or union
make: *** [obj/mingw32/alleg/wdsinput.o] Error 1

Matthew Leverton
Supreme Loser
January 1999
avatar

clovekx
Member #3,479
April 2003
avatar

paranoima
Member #1,380
June 2001
avatar

Schweet. Thanks, I knew it had to be in the forums. 8-)
Note: I did search before but apparently my search skills are lacking.

[Edit2]
I <3 Allegro.cc, this forum has always been super fast to respond.

Go to: