Page 1 of 1
mingw compile problems
Posted: Sat Mar 09, 2013 4:59 pm
by 3xistence
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?
Re: mingw compile problems
Posted: Sat Mar 09, 2013 7:52 pm
by themuffinman
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.
Re: mingw compile problems
Posted: Sun Mar 10, 2013 2:32 am
by 3xistence
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)?
Re: mingw compile problems
Posted: Sun Mar 10, 2013 12:31 pm
by themuffinman
Hmm. I'll PM you the libs sometime soon.
----------------
cg_players.c CG_PlayerSprites()
Re: mingw compile problems
Posted: Sun Mar 10, 2013 3:48 pm
by 3xistence
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)
Re: mingw compile problems
Posted: Mon Mar 11, 2013 7:52 am
by themuffinman
I PM'd you the libs.
You also need to change the makefile a bit. Around line 541 you must change this...
Code: Select all
ifeq ($(USE_CODEC_VORBIS),1)
CLIENT_LIBS += -lvorbisfile -lvorbis -logg
endif
... to this...
Code: Select all
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.
Re: mingw compile problems
Posted: Mon Mar 11, 2013 12:48 pm
by 3xistence
I enabled the vorbis so in makefile i set to 1 that
Code: Select all
ifndef USE_CODEC_VORBIS
USE_CODEC_VORBIS=1
endif
also i changed the strings you suggested me for mingw and general build
Code: Select all
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?
Re: mingw compile problems
Posted: Mon Mar 11, 2013 5:58 pm
by themuffinman
It definitely compiles, I tried it on a clean ioquake3. Try this...
http://www.mediafire.com/?20y4b6d60y32l13
Re: mingw compile problems
Posted: Tue Mar 12, 2013 9:29 pm
by 3xistence
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

ty it works now!