Dennis Schridde schreef: > Am Mittwoch, 27. Dezember 2006 18:49 schrieb Giel van Schijndel: > >> Dennis Schridde schreef: >> >>> Am Mittwoch, 27. Dezember 2006 18:11 schrieb Giel van Schijndel: >>> >>>> I assume that you've modified the warzone devpackage for that ( this >>>> one: http://download.gna.org/warzone/development/warzone-devpkg.7z ), >>>> would you care to upload the version you're using there? >>>> >>> Allready done, just didn't announce it yet. (MSVC package is not yet >>> uploaded.) >>> http://download.gna.org/warzone/development/warzone-devpkg-mingw32.7z >>> >>> The warzone-devpkg.7z will vanish when I uploaded the MSVC pkg. >>> >> Well that new MinGW devpackage doesn't work all to nice. It gives me a >> whole bunch of png related compiler errors. >> >> >>> g++ -m32 -DVERSION=\"2.0.5\" -DYY_STATIC -I.. -I../.. >>> -IC:\devpkg/include -fpermissive -Wall -O0 -g3 -DDEBUG -mwindows >>> -DWIN32 -c -opcx.o pcx.c >>> In file included from pcx.c:1: >>> C:/devpkg/include/png.h:1: error: expected constructor, destructor, or >>> type conversion before '/' token >>> C:/devpkg/include/png.h:1: error: expected `,' or `;' before '/' token >>> In file included from pcx.c:1: >>> C:/devpkg/include/png.h:1:15: warning: no newline at end of file >>> > Did you have a look at that png.h? > Could it be related to DOS/UNIX lineendings? No, GCC (and as such MinGW) doesn't care about line-endings as long as they're the same throughout the file.
When looking at that last error message you quoted it also indicates a line number of 1, which suggests the last line is nrl 1. Meaning there is only one line there, so I went to watch there and this where its contents exactly: "libpng12/png.h" (without quotes). While it should (most likely) be this: #include "libpng12/png.h" So that's an easy fix, that fixes compiling. So now we're done compiling lets get trouble with linking. NOTE:all selected libraries are defined in makerules/config.mk (LDFLAGS) * -ljpeg6b cannot be found, I'm guessing -ljpeg should be used instead * -lpng13 cannot be found, if using -lpng instead it uses lib/libpng.a of which the linker says "lib/libpng.a: file format not recognized; treating as linker script" which of course fails miserably, so lets put my money on -lpng12 instead. But we're still having problems now: > g++ -m32 -DVERSION=\"2.0.5\" -DYY_STATIC -I.. -I../.. > -IC:\devpkg/include -fpermissive -Wall -O0 -g3 -DDEBUG -mwindows > -DWIN32 -o warzone2100.exe ai.o aiexperience.o astar.o action.o > advvis.o atmos.o bridge.o buildpos.o cdspan.o cheat.o cluster.o > cmddroid.o combat.o component.o console.o data.o design.o difficulty.o > disp2d.o display.o droid.o e3demo.o edit2d.o edit3d.o effects.o > environ.o fpath.o feature.o findpath.o formation.o frontend.o > gateway.o gatewayroute.o gatewaysup.o geometry.o group.o hci.o init.o > intdisplay.o intimage.o intorder.o intelmap.o keybind.o keymap.o > level_lexer.o levels.o lighting.o loop.o map.o mapdisplay.o mapgrid.o > mechanics.o message.o miscimd.o move.o multiint.o multimenu.o > multiopt.o multisync.o multibot.o multistat.o objmem.o objects.o > optimisepath.o order.o player.o powercrypt.o radar.o raycast.o > research.o scores.o scriptai.o scriptcb.o scriptextern.o scriptfuncs.o > scriptobj.o scripttabs.o scriptvals.o scriptvals_parser.o > scriptvals_lexer.o selection.o stats.o text.o texture.o transporter.o > visibility.o warcam.o wrappers.o ani.o arrow.o aud.o audio_id.o > bucket3d.o clparse.o configuration.o csnap.o display3d.o drive.o > function.o game.o ingameop.o keyedit.o loadsave.o main.o mission.o > multigifts.o multijoin.o multilimit.o multiplay.o multistruct.o > oprint.o power.o projectile.o seqdisp.o structure.o target.o > warzoneconfig.o ../lib/libframework.a ../lib/libgamelib.a > ../lib/libivis_common.a ../lib/libivis_opengl.a ../lib/libnetplay.a > ../lib/libscript.a ../lib/libsequence.a ../lib/libsound.a > ../lib/libwidget.a ../win32/warzone2100.o -LC:\devpkg/lib -lmingw32 > -lglu32 -lopengl32 -lopenal32 -ljpeg -lpng12 -lmad -lvorbisfile > -lvorbis -logg -lphysfs -lSDLmain -lSDL -lSDL_net > > C:\devpkg/lib/libpng12.a(pngread.o)(.text+0x279):pngread.c: undefined > reference to `inflateInit_' > C:\devpkg/lib/libpng12.a(pngread.o)(.text+0x5b5):pngread.c: undefined > reference to `inflateInit_' > C:\devpkg/lib/libpng12.a(pngread.o)(.text+0x1283):pngread.c: undefined > reference to `inflate' > C:\devpkg/lib/libpng12.a(pngread.o)(.text+0x214d):pngread.c: undefined > reference to `inflateEnd' > C:\devpkg/lib/libpng12.a(png.o)(.text+0x1bc):png.c: undefined > reference to `crc32' > C:\devpkg/lib/libpng12.a(png.o)(.text+0x23b):png.c: undefined > reference to `crc32' > C:\devpkg/lib/libpng12.a(png.o)(.text+0xd29):png.c: undefined > reference to `inflateReset' > C:\devpkg/lib/libpng12.a(pngrutil.o)(.text+0x33d):pngrutil.c: > undefined reference to `inflate' > C:\devpkg/lib/libpng12.a(pngrutil.o)(.text+0x3a0):pngrutil.c: > undefined reference to `inflateReset' > C:\devpkg/lib/libpng12.a(pngrutil.o)(.text+0x753):pngrutil.c: > undefined reference to `inflateReset' > C:\devpkg/lib/libpng12.a(pngrutil.o)(.text+0x4803):pngrutil.c: > undefined reference to `inflate' > C:\devpkg/lib/libpng12.a(pngrutil.o)(.text+0x492f):pngrutil.c: > undefined reference to `inflateReset' > C:\devpkg/lib/libphysfs.a(zip.o)(.text+0x1e4): In function > `ZIP_fileClose': > /home/sevendays/Warzone/devpkg/physfs-1.0.1/archivers/zip.c:406: > undefined reference to `inflateEnd' > C:\devpkg/lib/libphysfs.a(zip.o)(.text+0xb27): In function `zip_resolve': > /home/sevendays/Warzone/devpkg/physfs-1.0.1/archivers/zip.c:736: > undefined reference to `inflateInit2_' > C:\devpkg/lib/libphysfs.a(zip.o)(.text+0xb45):/home/sevendays/Warzone/devpkg/physfs-1.0.1/archivers/zip.c:738: > undefined reference to `inflate' > C:\devpkg/lib/libphysfs.a(zip.o)(.text+0xb57):/home/sevendays/Warzone/devpkg/physfs-1.0.1/archivers/zip.c:739: > undefined reference to `inflateEnd' > C:\devpkg/lib/libphysfs.a(zip.o)(.text+0xcb6): In function `ZIP_openRead': > /home/sevendays/Warzone/devpkg/physfs-1.0.1/archivers/zip.c:1409: > undefined reference to `inflateInit2_' > C:\devpkg/lib/libphysfs.a(zip.o)(.text+0xf5d): In function `ZIP_read': > /home/sevendays/Warzone/devpkg/physfs-1.0.1/archivers/zip.c:299: > undefined reference to `inflate' > C:\devpkg/lib/libphysfs.a(zip.o)(.text+0x1218): In function `ZIP_seek': > /home/sevendays/Warzone/devpkg/physfs-1.0.1/archivers/zip.c:364: > undefined reference to `inflateInit2_' > C:\devpkg/lib/libphysfs.a(zip.o)(.text+0x1254):/home/sevendays/Warzone/devpkg/physfs-1.0.1/archivers/zip.c:370: > undefined reference to `inflateEnd' > C:\devpkg/lib/libSDL.a(SDL_systimer.o)(.text+0x34): In function > `SDL_SYS_TimerQuit': > /home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/timer/win32/SDL_systimer.c:144: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_systimer.o)(.text+0x41):/home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/timer/win32/SDL_systimer.c:146: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_systimer.o)(.text+0x55): In function > `SDL_SYS_TimerInit': > /home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/timer/win32/SDL_systimer.c:127: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_systimer.o)(.text+0x71):/home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/timer/win32/SDL_systimer.c:133: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_systimer.o)(.text+0x141): In function > `SDL_GetTicks': > /home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/timer/win32/SDL_systimer.c:95: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_systimer.o)(.text+0x173): In function > `SDL_StartTicks': > /home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/timer/win32/SDL_systimer.c:67: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_systimer.o)(.text+0x17b):/home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/timer/win32/SDL_systimer.c:68: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_dibaudio.o)(.text+0x13e): In function > `DIB_CloseAudio': > /home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/audio/windib/SDL_dibaudio.c:202: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_dibaudio.o)(.text+0x165):/home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/audio/windib/SDL_dibaudio.c:208: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_dibaudio.o)(.text+0x208): In function > `DIB_PlayAudio': > /home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/audio/windib/SDL_dibaudio.c:168: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_dibaudio.o)(.text+0x2b9): In function > `SetMMerror': > /home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/audio/windib/SDL_dibaudio.c:135: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_dibaudio.o)(.text+0x3d3): In function > `DIB_OpenAudio': > /home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/audio/windib/SDL_dibaudio.c:268: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_dibaudio.o)(.text+0x48d):/home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/audio/windib/SDL_dibaudio.c:311: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_mmjoystick.o)(.text+0xbe): In function > `SDL_SYS_JoystickUpdate': > /home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/joystick/win32/SDL_mmjoystick.c:299: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_mmjoystick.o)(.text+0x561): In function > `SDL_SYS_JoystickInit': > /home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/joystick/win32/SDL_mmjoystick.c:165: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_mmjoystick.o)(.text+0x5a5):/home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/joystick/win32/SDL_mmjoystick.c:170: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_mmjoystick.o)(.text+0x5db):/home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/joystick/win32/SDL_mmjoystick.c:172: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_syscdrom.o)(.text+0x15b): In function > `SDL_SYS_CDioctl': > /home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/cdrom/win32/SDL_syscdrom.c:116: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL.a(SDL_syscdrom.o)(.text+0x177):/home/sevendays/Warzone/devpkg/SDL-1.2.11/./src/cdrom/win32/SDL_syscdrom.c:120: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnetTCP.o)(.text+0x33): In function > `SDLNet_TCP_Close': > /home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnetTCP.c:942: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnetTCP.o)(.text+0x7e): In function > `SDLNet_TCP_Recv': > /home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnetTCP.c:930: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnetTCP.o)(.text+0xeb): In function > `SDLNet_TCP_Send': > /home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnetTCP.c:901: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnetTCP.o)(.text+0x173): In function > `SDLNet_TCP_Accept': > /home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnetTCP.c:838: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnetTCP.o)(.text+0x195):/home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnetTCP.c:852: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnetTCP.o)(.text+0x23c): In function > `SDLNet_TCP_Open': > /home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnetTCP.c:711: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnetTCP.o)(.text+0x279):/home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnetTCP.c:728: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnetTCP.o)(.text+0x2aa):/home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnetTCP.c:797: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnetTCP.o)(.text+0x2f4):/home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnetTCP.c:756: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnetTCP.o)(.text+0x305):/home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnetTCP.c:761: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnetTCP.o)(.text+0x323):/home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnetTCP.c:780: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnetselect.o)(.text+0x15d): In function > `SDLNet_CheckSockets': > /home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnetselect.c:203: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnetselect.o)(.text+0x1b0):/home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnetselect.c:209: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnet.o)(.text+0x4e): In function > `SDLNet_ResolveIP': > /home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnet.c:372: undefined > reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnet.o)(.text+0x79): In function > `SDLNet_Quit': > /home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnet.c:315: undefined > reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnet.o)(.text+0x81):/home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnet.c:316: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnet.o)(.text+0x8d):/home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnet.c:317: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnet.o)(.text+0xc8): In function > `SDLNet_Init': > /home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnet.c:291: undefined > reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnet.o)(.text+0x107): In function > `SDLNet_ResolveHost': > /home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnet.c:341: undefined > reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnet.o)(.text+0x133):/home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnet.c:345: > undefined reference to [EMAIL PROTECTED]' > C:\devpkg/lib/libSDL_net.a(SDLnet.o)(.text+0x93): In function > `SDLNet_Quit': > /home/sevendays/Warzone/devpkg/SDL_net-1.2.6/SDLnet.c:318: undefined > reference to [EMAIL PROTECTED]' I hope this info is of any use to you, otherwise I'll give it a go tomorrow or somewhere else in the future in compiling these libraries. -- Giel
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
