Error while compiling using mingw - missing -lopenal32

Discuss the future of Warzone 2100 with us.
Post Reply
mutex64
New user
Posts: 3
Joined: 02 Mar 2010, 02:16

Error while compiling using mingw - missing -lopenal32

Post by mutex64 »

Hi. I am compiling warzone using mingw. After 1 second get message that lopenal32 is missing.

Code: Select all

C:\WARZONE>mingw32-make -f makefile.win32
Checking config...
PACKAGE_VERSION := TRUNK
MODE := debug
DEVDIR := C:/devpkg
Config seems valid.
MINGW32-MAKE[1]: Entering directory `C:/WARZONE/build_tools'
MINGW32-MAKE[2]: Entering directory `C:/WARZONE/build_tools/autorevision'
makefile.win32:25: warning: overriding commands for target `clean'
../../makerules/exe.mk:13: warning: ignoring old commands for target `clean'
g++ -std=gnu99 -g -Wall -Werror-implicit-function-declaration -O0  -o autorevisi
on.exe autorevision.o -LC:/devpkg/lib  -lmingw32 -lSDLmain -lSDL -lpng12 -lphysf
s -lz -lvorbisfile -lvorbis -logg -lpopt -lintl -lGLC -lglu32 -lopengl32 -lopena
l32 -ldbghelp -lshfolder -lwinmm -lws2_32 -lbfd -liberty -liconv -lz -lfreetype
-lfontconfig -lexpat -ltheora
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot fin
d -lopenal32
collect2: ld returned 1 exit status
MINGW32-MAKE[2]: *** [autorevision.exe] Error 1
MINGW32-MAKE[2]: Leaving directory `C:/WARZONE/build_tools/autorevision'
MINGW32-MAKE[1]: *** [autorevision] Error 2
MINGW32-MAKE[1]: Leaving directory `C:/WARZONE/build_tools'
MINGW32-MAKE: *** [build_tools] Error 2
how to correct that? I have installed openal sdk but it doesnt helped
crux
Trained
Trained
Posts: 139
Joined: 16 Jan 2010, 03:21

Re: Error while compiling using mingw - missing -lopenal32

Post by crux »

install the lib where the others are and name it correctly
mutex64
New user
Posts: 3
Joined: 02 Mar 2010, 02:16

Re: Error while compiling using mingw - missing -lopenal32

Post by mutex64 »

but in installed openal folder no .a files. i think i need libopenal32.a where to get this file????
mutex64
New user
Posts: 3
Joined: 02 Mar 2010, 02:16

Re: Error while compiling using mingw - missing -lopenal32

Post by mutex64 »

1rst problem sloved. now i have new error

Code: Select all

DLmain -lSDL -lpng12 -lphysfs -lz -lvorbisfile -lvorbis -logg -lpopt -lintl -lGL
C -lglu32 -lopengl32 -lopenal32 -ldbghelp -lshfolder -lwinmm -lws2_32 -lbfd -lib
erty -liconv -lz -lfreetype -lfontconfig -lexpat -ltheora
C:/devpkg/lib/libGLC.a(libGLC_la-render.o):render.c:(.text+0x1d): undefined refe
rence to `__emutls_get_address'
C:/devpkg/lib/libGLC.a(libGLC_la-render.o):render.c:(.text+0x30): undefined refe
rence to `__emutls_get_address'
C:/devpkg/lib/libGLC.a(libGLC_la-render.o):render.c:(.text+0x4b): undefined refe
rence to `__emutls_get_address'
C:/devpkg/lib/libGLC.a(libGLC_la-render.o):render.c:(.text+0x68): undefined refe
rence to `__emutls_get_address'
C:/devpkg/lib/libGLC.a(libGLC_la-render.o):render.c:(.text+0x7b): undefined refe
rence to `__emutls_get_address'
C:/devpkg/lib/libGLC.a(libGLC_la-render.o):render.c:(.text+0xa9): more undefined
 references to `__emutls_get_address' follow
C:/devpkg/lib/libfontconfig.a(fcfreetype.o):fcfreetype.c:(.text+0x1b8a): undefin
ed reference to `libiconv_open'
C:/devpkg/lib/libfontconfig.a(fcfreetype.o):fcfreetype.c:(.text+0x21b0): undefin
ed reference to `libiconv'
C:/devpkg/lib/libfontconfig.a(fcfreetype.o):fcfreetype.c:(.text+0x21bd): undefin
ed reference to `libiconv_close'
C:/devpkg/lib/libfontconfig.a(fcfreetype.o):fcfreetype.c:(.text+0x27aa): undefin
ed reference to `libiconv_close'
C:/devpkg/lib/libfontconfig.a(fcfreetype.o):fcfreetype.c:(.text+0x2828): undefin
ed reference to `libiconv_close'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [warzone2100.exe] Error 1
rm message_parser.tab.c level_lexer.lex.c scriptvals_lexer.lex.c message_lexer.l
ex.c scriptvals_parser.tab.c
mingw32-make[1]: Leaving directory `C:/WZ/src'
mingw32-make: *** [src] Error 2
looks like libconv is missing. but it is in devpkg\lib
Post Reply