Title: Compiling problems
Post by: D_E_N_I_S_K_A on March 02, 2007, 08:53:06 AM
I'm trying to compile OA using bat files from svn. But game.bat isn't working, menudef.h is missing. Where can I get this file?
Title: Re: Compiling problems
Post by: dmn_clown on March 02, 2007, 10:44:18 PM
The executable should compile fine without menudef.h, at least it does on my amd64 gnu/linux box.
Title: Compiling problems
Post by: D_E_N_I_S_K_A on March 03, 2007, 07:01:14 AM
ai_dmnet.c have a line 56: // for the voice chats
#include "../../ui/menudef.h" I'll try to compile without ai_dmnet.c and others ai_*** files. Add: OK. It's not compiling. g_cmds.c also needs this menudef
Title: Re: Compiling problems
Post by: D_E_N_I_S_K_A on March 04, 2007, 07:12:16 AM
I'm not compiling an executable, i'm compiling the game qvm ADD: This is output of game.bat D:\OA_sources\game>game
D:\OA_sources\game>rem make sure we have a safe environement
D:\OA_sources\game>set LIBRARY=
D:\OA_sources\game>set INCLUDE=
D:\OA_sources\game>mkdir vm Подпапка или файл vm уже существует.
D:\OA_sources\game>cd vm
D:\OA_sources\game\vm>set cc=lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cg ame -I..\..\game -I..\..\ui
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_main.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_syscalls.c cpp: ../g_syscalls.c:28 #error directive: "Do not use in VM build"
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../bg_misc.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../bg_lib.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../bg_pmove.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../bg_slidemove.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../q_math.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../q_shared.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../ai_dmnet.c cpp: ../ai_dmnet.c:57 Could not find include file "../../ui/menudef.h"
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../ai_dmq3.c cpp: ../ai_dmq3.c:58 Could not find include file "../../ui/menudef.h"
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../ai_main.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../ai_chat.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../ai_cmd.c cpp: ../ai_cmd.c:57 Could not find include file "../../ui/menudef.h"
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../ai_team.c cpp: ../ai_team.c:55 Could not find include file "../../ui/menudef.h"
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_active.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_arenas.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_bot.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_client.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_cmds.c cpp: ../g_cmds.c:25 Could not find include file "../../ui/menudef.h"
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_combat.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_items.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_mem.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_misc.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_missile.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_mover.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_session.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_spawn.c ../g_spawn.c:194: warning: empty declaration
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_svcmds.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_target.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_team.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_trigger.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_utils.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../g_weapon.c
D:\OA_sources\game\vm>lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I. .\..\game -I..\..\ui ../ai_vcmd.c cpp: ../ai_vcmd.c:58 Could not find include file "../../ui/menudef.h"
D:\OA_sources\game\vm>q3asm -f ../game outputFilename: \quake3\baseq3\vm\qagame
************ ERROR ************ Error opening ai_dmnet.asm: No such file or directory
D:\OA_sources\game\vm>cd ..
Title: Re: Compiling problems
Post by: D_E_N_I_S_K_A on March 10, 2007, 08:04:18 AM
Can anyone send me an compiling script? IDK what the menudef.h is but it's incuded by ai_dmnet, g_cmds and some other files.
Title: Re: Compiling problems
Post by: dmn_clown on March 10, 2007, 12:25:49 PM
are you talking about these statements? #ifdef MISSIONPACK // bk001205 #include "../../ui/menudef.h" #endif and [// for the voice chats #include "../../ui/menudef.h" Should be self explanatory... Just comment it out and try recompiling because our game doesn't support the voicechats, nor does it support the missionpack, yet.
Title: Re: Compiling problems
Post by: D_E_N_I_S_K_A on March 11, 2007, 07:25:34 AM
After commenting this line: ../ai_dmnet.c:346: undeclared identifier `VOICECHAT_YES' ../ai_dmnet.c:346: type error in argument 3 to `BotVoiceChatOnly'; found `int' e xpected `pointer to char' ../ai_dmnet.c:391: undeclared identifier `VOICECHAT_YES' ../ai_dmnet.c:391: type error in argument 3 to `BotVoiceChatOnly'; found `int' e xpected `pointer to char' ../ai_dmnet.c:536: undeclared identifier `VOICECHAT_ONDEFENSE' ../ai_dmnet.c:536: type error in argument 3 to `BotVoiceChatOnly'; found `int' e xpected `pointer to char' ../ai_dmnet.c:593: undeclared identifier `VOICECHAT_YES' ../ai_dmnet.c:593: type error in argument 3 to `BotVoiceChatOnly'; found `int' e xpected `pointer to char' ../ai_dmnet.c:625: undeclared identifier `VOICECHAT_YES' ../ai_dmnet.c:625: type error in argument 3 to `BotVoiceChatOnly'; found `int' e xpected `pointer to char' ../ai_dmnet.c:649: undeclared identifier `VOICECHAT_INPOSITION' ../ai_dmnet.c:649: type error in argument 3 to `BotVoiceChatOnly'; found `int' e xpected `pointer to char' ../ai_dmnet.c:707: undeclared identifier `VOICECHAT_YES' ../ai_dmnet.c:707: type error in argument 3 to `BotVoiceChatOnly'; found `int' e xpected `pointer to char' ../ai_dmnet.c:758: undeclared identifier `VOICECHAT_ONGETFLAG' ../ai_dmnet.c:758: type error in argument 3 to `BotVoiceChatOnly'; found `int' e xpected `pointer to char' ../ai_dmnet.c:816: undeclared identifier `VOICECHAT_ONRETURNFLAG' ../ai_dmnet.c:816: type error in argument 3 to `BotVoiceChatOnly'; found `int' e xpected `pointer to char' May be I downloaded revision that is not working?
Title: Re: Compiling problems
Post by: dmn_clown on March 11, 2007, 02:01:07 PM
Considering we don't have voicechats (Those are all missionpack thingies) go ahead and comment them out.
Title: Re: Compiling problems
Post by: D_E_N_I_S_K_A on March 12, 2007, 06:25:50 AM
I commented them all... And it compiled! Thank you!
|