Quake3World.com
https://www.quake3world.com/forum/

mingw compile problems
https://www.quake3world.com/forum/viewtopic.php?f=16&t=48916
Page 1 of 1

Author:  3xistence [ 03-09-2013 08:59 AM ]
Post subject:  mingw compile problems

Hi, i'm actually trying to compile my mod with mingw. I was able to compile the main exe and dlls but i still fail in two points::
1.adding ogg vorbis (got errors and i don't get the final build)
2.any kind of modification on cgame code doesn't produce any kind of effect ( O__o like if the original code is untouched)

what i'm doing wrong?

Author:  themuffinman [ 03-09-2013 11:52 AM ]
Post subject:  Re: mingw compile problems

1. Vorbis isn't enabled by default... did you enable it? If so then you'll need the libs as they aren't included.
2. You'll need to double check to see you're doing it all correctly. No idea what's going wrong there but maybe deleting the build folders and try again.

Author:  3xistence [ 03-09-2013 06:32 PM ]
Post subject:  Re: mingw compile problems

i enabled it in makefile but probably he still miss some libs, i downloaded the libvorbis code but i don't know how to setup it.
2.you was right, i erased the build directory and retry...success finally. now i need to recode everything from zero.

Do you know where's the code about "foe" "teammate" icon (the one over the head)?

Author:  themuffinman [ 03-10-2013 04:31 AM ]
Post subject:  Re: mingw compile problems

Hmm. I'll PM you the libs sometime soon.

----------------

cg_players.c CG_PlayerSprites()

Author:  3xistence [ 03-10-2013 07:48 AM ]
Post subject:  Re: mingw compile problems

i got libvorbis1.3.3 (this version needs to be compiled and build) but i don't know where the makefile search it.

Mhmmm why this damn foe sprite dishappear after a little if my teammate is behind a wall? O_o i made a new shader so i can still see the foe sprite also behind the walls..but just for a short time, after a little dishappear (or maybe it's just too far and little)

Author:  themuffinman [ 03-10-2013 11:52 PM ]
Post subject:  Re: mingw compile problems

I PM'd you the libs.

You also need to change the makefile a bit. Around line 541 you must change this...
Code:
  ifeq ($(USE_CODEC_VORBIS),1)
    CLIENT_LIBS += -lvorbisfile -lvorbis -logg
  endif

... to this...
Code:
  ifeq ($(USE_CODEC_VORBIS),1)
    CLIENT_CFLAGS += -I$(MOUNT_DIR)/vorbis/include
    CLIENT_LIBS += $(LIBSDIR)/win32/libvorbisfile.a $(LIBSDIR)/win32/libvorbis.a $(LIBSDIR)/win32/libogg.a
  endif


Not sure about the sprite, I've tried doing the same thing myself but decided it wasn't worth the effort anyway.

Author:  3xistence [ 03-11-2013 04:48 AM ]
Post subject:  Re: mingw compile problems

I enabled the vorbis so in makefile i set to 1 that
Code:
ifndef USE_CODEC_VORBIS
USE_CODEC_VORBIS=1
endif


also i changed the strings you suggested me for mingw and general build
Code:
ifeq ($(USE_CODEC_VORBIS),1)
    CLIENT_CFLAGS += -I$(MOUNT_DIR)/vorbis/include
    CLIENT_LIBS += $(LIBSDIR)/win32/libvorbisfile.a $(LIBSDIR)/win32/libvorbis.a $(LIBSDIR)/win32/libogg.a
  endif


i put the vorbis directory inside my code dir (checking it also searching mount_dir defination at the very start of "makefile" file)...
but i still can't build.

do i need also to change something inside client/snd_codec_ogg.o ?
Building still return me error about snd_codec_ogg.o:34:31 vorbis/vorbisfile.h no such file

O___o snd_codec_ogg.o search the vorbisfile.h in the wrong directory?

Author:  themuffinman [ 03-11-2013 09:58 AM ]
Post subject:  Re: mingw compile problems

It definitely compiles, I tried it on a clean ioquake3. Try this...
http://www.mediafire.com/?20y4b6d60y32l13

Author:  3xistence [ 03-12-2013 01:29 PM ]
Post subject:  Re: mingw compile problems

with your file it compiles without problems, i think you was using the SVN revision and i still use the 1.36 source of ioquake3 :D ty it works now!

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/