mingw build error

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Brian

mingw build error

Post by Brian »

g++ -static-libgcc -static-libstdc++ -o Exult.exe actions.o actorio.o actors.o args.o browser.o chea
t.o cheat_screen.o combat.o delobjs.o dir.o drag.o effects.o exult.o exultmenu.o game.o gameclk.o ga
medat.o gamemap.o gamerend.o gamewin.o istring.o keys.o keyactions.o menulist.o monsters.o mouse.o n
pcnear.o npctime.o palette.o party.o paths.o readnpcs.o schedule.o shapeid.o tqueue.o txtscroll.o ve
rsion.o windrag.o pathfinder/Astar.o pathfinder/path.o pathfinder/PathFinder.o pathfinder/Zombie.o c
onf/Configuration.o conf/XMLEntity.o audio/Audio.o audio/conv.o audio/Midi.o audio/soundtest.o audio
/AudioChannel.o audio/AudioMixer.o audio/AudioSample.o audio/OggAudioSample.o audio/RawAudioSample.o
audio/VocAudioSample.o audio/WavAudioSample.o audio/midi_drivers/ALSAMidiDriver.o audio/midi_driver
s/amiga_midi.o audio/midi_drivers/be_midi.o audio/midi_drivers/CoreAudioMidiDriver.o audio/midi_driv
ers/FileMidiDriver.o audio/midi_drivers/FluidSynthMidiDriver.o audio/midi_drivers/fmopl.o audio/midi
_drivers/FMOplMidiDriver.o audio/midi_drivers/forked_player.o audio/midi_drivers/KMIDI.o audio/midi_
drivers/LowLevelMidiDriver.o audio/midi_drivers/MidiDriver.o audio/midi_drivers/mixer_midiout.o audi
o/midi_drivers/MT32EmuMidiDriver.o audio/midi_drivers/TimidityMidiDriver.o audio/midi_drivers/UnixSe
qMidiDriver.o audio/midi_drivers/WindowsMidiDriver.o audio/midi_drivers/CoreMidiDriver.o audio/midi_
drivers/XMidiEventList.o audio/midi_drivers/XMidiFile.o audio/midi_drivers/XMidiSequence.o audio/mid
i_drivers/timidity/timidity.o audio/midi_drivers/timidity/timidity_common.o audio/midi_drivers/timid
ity/timidity_controls.o audio/midi_drivers/timidity/timidity_filter.o audio/midi_drivers/timidity/ti
midity_instrum.o audio/midi_drivers/timidity/timidity_mix.o audio/midi_drivers/timidity/timidity_out
put.o audio/midi_drivers/timidity/timidity_playmidi.o audio/midi_drivers/timidity/timidity_readmidi.
o audio/midi_drivers/timidity/timidity_resample.o audio/midi_drivers/timidity/timidity_sdl_a.o audio
/midi_drivers/timidity/timidity_sdl_c.o audio/midi_drivers/timidity/timidity_tables.o audio/midi_dri
vers/mt32emu/freeverb.o audio/midi_drivers/mt32emu/i386.o audio/midi_drivers/mt32emu/mt32_file.o aud
io/midi_drivers/mt32emu/part.o audio/midi_drivers/mt32emu/partial.o audio/midi_drivers/mt32emu/parti
alManager.o audio/midi_drivers/mt32emu/synth.o audio/midi_drivers/mt32emu/tables.o flic/playfli.o f
iles/crc.o files/Flat.o files/Flex.o files/IFF.o files/listfiles.o files/msgfile.o files/Table.o fil
es/U7file.o files/U7fileman.o files/U7obj.o files/utils.o gamemgr/bggame.o gamemgr/devgame.o gamemgr
/modmgr.o gamemgr/sigame.o gumps/Actor_gump.o gumps/AudioOptions_gump.o gumps/Book_gump.o gumps/Misc
Options_gump.o gumps/CombatStats_gump.o gumps/Enabled_button.o gumps/Face_button.o gumps/Face_stats.
o gumps/File_gump.o gumps/Gamemenu_gump.o gumps/GameplayOptions_gump.o gumps/Gump.o gumps/Gump_butto
n.o gumps/Gump_manager.o gumps/Gump_widget.o gumps/Gump_ToggleButton.o gumps/Jawbone_gump.o gumps/mi
sc_buttons.o gumps/Newfile_gump.o gumps/Notebook_gump.o gumps/Paperdoll_gump.o gumps/Scroll_gump.o g
umps/Sign_gump.o gumps/Slider_gump.o gumps/Spellbook_gump.o gumps/Stats_gump.o gumps/Text_button.o g
umps/Text_gump.o gumps/VideoOptions_gump.o gumps/Yesno_gump.o objs/animate.o objs/barge.o objs/chunk
s.o objs/chunkter.o objs/contain.o objs/egg.o objs/iregobjs.o objs/jawbone.o objs/mappatch.o objs/ob
jclient.o objs/objiter.o objs/objnames.o objs/objs.o objs/spellbook.o objs/virstone.o shapes/font.o
shapes/fontvga.o shapes/items.o shapes/miscinf.o shapes/shapeinf.o shapes/shapevga.o shapes/u7drag.o
shapes/vgafile.o shapes/shapeinf/ammoinf.o shapes/shapeinf/aniinf.o shapes/shapeinf/armorinf.o shap
es/shapeinf/bodyinf.o shapes/shapeinf/continf.o shapes/shapeinf/effhpinf.o shapes/shapeinf/expinf.o
shapes/shapeinf/frnameinf.o shapes/shapeinf/frflags.o shapes/shapeinf/frusefun.o shapes/shapeinf/mon
stinf.o shapes/shapeinf/npcdollinf.o shapes/shapeinf/objdollinf.o shapes/shapeinf/sfxinf.o shapes/sh
apeinf/warminf.o shapes/shapeinf/weaponinf.o shapes/glshape.o imagewin/ibuf8.o imagewin/ibuf16.o ima
gewin/imagebuf.o imagewin/imagewin.o imagewin/iwin8.o imagewin/savepcx.o imagewin/scale_gl.o imagewi
n/scale_2x.o imagewin/scale_2xSaI.o imagewin/scale_bilinear.o imagewin/scale_hq2x.o imagewin/scale_h
q3x.o imagewin/scale_hq4x.o imagewin/scale_interlace.o imagewin/scale_point.o imagewin/BilinearScale
r.o imagewin/BilinearScalerInternal_2x.o imagewin/BilinearScalerInternal_Arb.o imagewin/BilinearScal
erInternal_X1Y12.o imagewin/BilinearScalerInternal_X2Y24.o imagewin/PointScaler.o usecode/conversati
on.o usecode/intrinsics.o usecode/keyring.o usecode/stackframe.o usecode/ucdisasm.o usecode/ucfuncti
on.o usecode/ucinternal.o usecode/ucmachine.o usecode/ucsched.o usecode/ucsymtbl.o usecode/useval.o
files/zip/zip.o files/zip/unzip.o server/objserial.o server/servemsg.o server/server.o server/servew
in32.o exultico.o -lmingw32 -L./sdl/lib -lSDL -lwinmm -L./zlib -lz -lopengl32 -lfluidsynth -ldsound
-lwinmm -lole32 -luuid -lws2_32 -mwindows
audio/OggAudioSample.o:OggAudioSample.cc:(.text+0xd5): undefined reference to `ov_info'
audio/OggAudioSample.o:OggAudioSample.cc:(.text+0x138): undefined reference to `ov_read'
audio/OggAudioSample.o:OggAudioSample.cc:(.text+0x161): undefined reference to `ov_clear'
audio/OggAudioSample.o:OggAudioSample.cc:(.text+0x210): undefined reference to `ov_open_callbacks'
audio/OggAudioSample.o:OggAudioSample.cc:(.text+0x22a): undefined reference to `ov_info'
audio/OggAudioSample.o:OggAudioSample.cc:(.text+0x4e8): undefined reference to `ov_test_callbacks'
audio/OggAudioSample.o:OggAudioSample.cc:(.text+0x4f2): undefined reference to `ov_clear'
collect2: ld returned 1 exit status
make: *** [Exult.exe] Error 1





Any ideas? I'm using mingw. Do I need ogg headers/libraries or something?
Brian

Re: mingw build error

Post by Brian »

nevermind i got it.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: mingw build error

Post by Dominus »

What was it?
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Brian

Re: mingw build error

Post by Brian »

I was reading the README.win32 directions on how to build in mingw and I didn't download this:

http://exult.info/snapshots/exult_studio_dev_win32.zip

As it says you don't need it if you aren't building studio. Then later on in the readme it says that there are some files in the studio dev zip that might be needed in some scenarios so I just downloaded the studio dev win32 zip and extracted to my mingw root and all was good.

:)
Locked