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?
mingw compile problems
-
- Posts: 384
- Joined: Fri Mar 05, 2010 5:29 pm
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.
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
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)?
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)?
-
- Posts: 384
- Joined: Fri Mar 05, 2010 5:29 pm
Re: mingw compile problems
Hmm. I'll PM you the libs sometime soon.
----------------
cg_players.c CG_PlayerSprites()
----------------
cg_players.c CG_PlayerSprites()
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)
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)
-
- Posts: 384
- Joined: Fri Mar 05, 2010 5:29 pm
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...
... to this...
Not sure about the sprite, I've tried doing the same thing myself but decided it wasn't worth the effort anyway.
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
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
Re: mingw compile problems
I enabled the vorbis so in makefile i set to 1 that
also i changed the strings you suggested me for mingw and general build
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?
Code: Select all
ifndef USE_CODEC_VORBIS
USE_CODEC_VORBIS=1
endif
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
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?
-
- Posts: 384
- Joined: Fri Mar 05, 2010 5:29 pm
Re: mingw compile problems
It definitely compiles, I tried it on a clean ioquake3. Try this...
http://www.mediafire.com/?20y4b6d60y32l13
http://www.mediafire.com/?20y4b6d60y32l13
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
ty it works now!
