Pages: [1]
  Print  
Author Topic: Trying to compile the engine  (Read 31895 times)
eezstreet
Nub


Cakes 0
Posts: 10


« on: October 24, 2009, 05:48:41 PM »

I'm trying to compile the engine using MVSC2008 and I get all kinds of errors, like "Cannot find g_client.c" and other stuff. I would compile using MinGW but it's just too damned confusing  mad
Could anyone help me?
Logged
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #1 on: October 24, 2009, 05:57:00 PM »

While it is some time ago I last compiled with the ms compiler I know g_client.c is not part of the engine. It should be possible to select different compile groups.
Logged

There are nothing offending in my posts.
eezstreet
Nub


Cakes 0
Posts: 10


« Reply #2 on: October 25, 2009, 08:10:10 PM »

2>BSCMAKE: error BK1506 : cannot open file '..\..\build\q3_ui_debug\ui_addbots.sbr': No such file or directory
2>Build log was saved at "file://c:\openarena-engine-0.8.1\build\q3_ui_debug\BuildLog.htm"
2>q3_ui - 78 error(s), 0 warning(s)
1>c:\openarena-engine-0.8.1\code\renderer\qgl.h(32) : fatal error C1083: Cannot open include file: 'SDL_opengl.h': No such file or directory
1>tr_main.c
3>------ Build started: Project: game, Configuration: Debug Win32 ------
1>c:\openarena-engine-0.8.1\code\renderer\qgl.h(32) : fatal error C1083: Cannot open include file: 'SDL_opengl.h': No such file or directory
1>tr_light.c
3>Compiling...
1>c:\openarena-engine-0.8.1\code\renderer\qgl.h(32) : fatal error C1083: Cannot open include file: 'SDL_opengl.h': No such file or directory
1>tr_init.c
3>q_shared.c
1>c:\openarena-engine-0.8.1\code\renderer\qgl.h(32) : fatal error C1083: Cannot open include file: 'SDL_opengl.h': No such file or directory
1>tr_image_tga.c
3>q_math.c
1>c:\openarena-engine-0.8.1\code\renderer\qgl.h(32) : fatal error C1083: Cannot open include file: 'SDL_opengl.h': No such file or directory
1>tr_image_png.c
3>g_weapon.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_weapon.c': No such file or directory
3>g_utils.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_utils.c': No such file or directory
3>g_trigger.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_trigger.c': No such file or directory
3>g_team.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_team.c': No such file or directory
3>g_target.c
1>c:\openarena-engine-0.8.1\code\renderer\qgl.h(32) : fatal error C1083: Cannot open include file: 'SDL_opengl.h': No such file or directory
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_target.c': No such file or directory
3>g_syscalls.c
1>tr_image_pcx.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_syscalls.c': No such file or directory
3>g_svcmds.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_svcmds.c': No such file or directory
3>g_spawn.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_spawn.c': No such file or directory
3>g_session.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_session.c': No such file or directory
3>g_mover.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_mover.c': No such file or directory
3>g_missile.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_missile.c': No such file or directory
3>g_misc.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_misc.c': No such file or directory
3>g_mem.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_mem.c': No such file or directory
1>c:\openarena-engine-0.8.1\code\renderer\qgl.h(32) : fatal error C1083: Cannot open include file: 'SDL_opengl.h': No such file or directory
3>g_main.c
1>tr_image_jpg.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_main.c': No such file or directory
3>g_items.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_items.c': No such file or directory
3>g_combat.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_combat.c': No such file or directory
3>g_cmds.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_cmds.c': No such file or directory
3>g_client.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_client.c': No such file or directory
3>Generating Code...
1>c:\openarena-engine-0.8.1\code\renderer\qgl.h(32) : fatal error C1083: Cannot open include file: 'SDL_opengl.h': No such file or directory
1>tr_image_bmp.c
3>Compiling...
3>g_bot.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_bot.c': No such file or directory
3>g_arenas.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_arenas.c': No such file or directory
3>g_active.c
1>c:\openarena-engine-0.8.1\code\renderer\qgl.h(32) : fatal error C1083: Cannot open include file: 'SDL_opengl.h': No such file or directory
1>Generating Code...
1>Compiling...
1>tr_image.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\g_active.c': No such file or directory
3>bg_slidemove.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\bg_slidemove.c': No such file or directory
3>bg_pmove.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\bg_pmove.c': No such file or directory
3>bg_misc.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\bg_misc.c': No such file or directory
3>ai_vcmd.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\ai_vcmd.c': No such file or directory
3>ai_team.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\ai_team.c': No such file or directory
3>ai_main.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\ai_main.c': No such file or directory
3>ai_dmq3.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\ai_dmq3.c': No such file or directory
3>ai_dmnet.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\ai_dmnet.c': No such file or directory
1>c:\openarena-engine-0.8.1\code\renderer\qgl.h(32) : fatal error C1083: Cannot open include file: 'SDL_opengl.h': No such file or directory
3>ai_cmd.c
1>tr_font.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\ai_cmd.c': No such file or directory
3>ai_chat.c
3>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\ai_chat.c': No such file or directory
3>Copyright (C) Microsoft Corporation. All rights reserved.
3>BSCMAKE: error BK1506 : cannot open file '..\..\build\game_debug\ai_cmd.sbr': No such file or directory
4>cg_weapons.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_weapons.c': No such file or directory
4>cg_view.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_view.c': No such file or directory
4>cg_syscalls.c
1>c:\openarena-engine-0.8.1\code\renderer\qgl.h(32) : fatal error C1083: Cannot open include file: 'SDL_opengl.h': No such file or directory
1>tr_animation.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_syscalls.c': No such file or directory
4>cg_snapshot.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_snapshot.c': No such file or directory
4>cg_servercmds.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_servercmds.c': No such file or directory
4>cg_scoreboard.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_scoreboard.c': No such file or directory
4>cg_predict.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_predict.c': No such file or directory
4>cg_playerstate.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_playerstate.c': No such file or directory
4>cg_players.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_players.c': No such file or directory
4>cg_marks.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_marks.c': No such file or directory
4>cg_main.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_main.c': No such file or directory
4>cg_localents.c
1>c:\openarena-engine-0.8.1\code\renderer\qgl.h(32) : fatal error C1083: Cannot open include file: 'SDL_opengl.h': No such file or directory
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_localents.c': No such file or directory
1>l_struct.c
4>cg_info.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_info.c': No such file or directory
4>cg_event.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_event.c': No such file or directory
4>cg_ents.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_ents.c': No such file or directory
4>cg_effects.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_effects.c': No such file or directory
4>cg_drawtools.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_drawtools.c': No such file or directory
4>cg_draw.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_draw.c': No such file or directory
4>cg_consolecmds.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\cgame\cg_consolecmds.c': No such file or directory
4>Generating Code...
4>Compiling...
4>bg_slidemove.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\bg_slidemove.c': No such file or directory
4>bg_pmove.c
1>l_script.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\bg_pmove.c': No such file or directory
4>bg_misc.c
4>c1 : fatal error C1083: Cannot open source file: '..\..\code\game\bg_misc.c': No such file or directory
4>Generating Code...
4>Creating browse information file...
4>Microsoft Browse Information Maintenance Utility Version 9.00.30729
4>Copyright (C) Microsoft Corporation. All rights reserved.
4>BSCMAKE: error BK1506 : cannot open file '..\..\build\cgame_debug\bg_pmove.sbr': No such file or directory
4>Build log was saved at "file://c:\openarena-engine-0.8.1\build\cgame_debug\BuildLog.htm"
4>cgame - 24 error(s), 0 warning(s)
1>l_precomp.c
5>------ Build started: Project: ui, Configuration: Debug Win32 ------
1>l_memory.c
5>Compiling...
5>ui_syscalls.c
5>c1 : fatal error C1083: Cannot open source file: '..\..\code\ui\ui_syscalls.c': No such file or directory
5>Creating browse information file...
5>Microsoft Browse Information Maintenance Utility Version 9.00.30729
5>Copyright (C) Microsoft Corporation. All rights reserved.
5>BSCMAKE: error BK1506 : cannot open file '..\..\build\ui_debug\ui_syscalls.sbr': No such file or directory
5>Build log was saved at "file://c:\openarena-engine-0.8.1\build\ui_debug\BuildLog.htm"
5>ui - 2 error(s), 0 warning(s)
1>c:\openarena-engine-0.8.1\code\sdl\sdl_snd.c(29) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
1>sdl_input.c
1>c:\openarena-engine-0.8.1\code\sdl\sdl_input.c(26) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
1>c:\openarena-engine-0.8.1\code\sdl\sdl_glimp.c(26) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
1>sdl_gamma.c
1>c:\openarena-engine-0.8.1\code\sdl\sdl_gamma.c(26) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
1>qal.c
1>c:\openarena-engine-0.8.1\code\client\qal.h(42) : fatal error C1083: Cannot open include file: 'al.h': No such file or directory
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2952) : error C2143: syntax error : missing ';' before '{'
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2967) : warning C4098: 'FS_CheckPak0' : 'void' function returning a value
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2978) : error C2143: syntax error : missing ';' before 'const'
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2980) : error C2275: 'searchpath_t' : illegal use of this type as an expression
1>        c:\openarena-engine-0.8.1\code\qcommon\files.c(232) : see declaration of 'searchpath_t'
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2980) : error C2065: 'search' : undeclared identifier
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2982) : error C2065: 'info' : undeclared identifier
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2982) : error C2109: subscript requires array or pointer type
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2984) : error C2065: 'search' : undeclared identifier
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2984) : warning C4047: '=' : 'int' differs in levels of indirection from 'searchpath_t *'
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2984) : error C2065: 'search' : undeclared identifier
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2984) : error C2065: 'search' : undeclared identifier
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2984) : error C2065: 'search' : undeclared identifier
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2984) : error C2223: left of '->next' must point to struct/union
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2986) : error C2065: 'search' : undeclared identifier
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2986) : error C2223: left of '->pack' must point to struct/union
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2990) : error C2065: 'info' : undeclared identifier
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2990) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'int'
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2990) : warning C4024: 'Q_strcat' : different types for formal and actual parameter 1
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2990) : error C2065: 'info' : undeclared identifier
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2990) : error C2065: 'search' : undeclared identifier
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2990) : error C2223: left of '->pack' must point to struct/union
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2993) : error C2065: 'info' : undeclared identifier
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(2993) : warning C4098: 'FS_CheckPak0' : 'void' function returning a value
1>c:\openarena-engine-0.8.1\code\qcommon\files.c(3004) : error C2059: syntax error : 'const'
1>c:\openarena-engine-0.8.1\code\client\cl_curl.h(44) : fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory
1>cl_scrn.c
1>c:\openarena-engine-0.8.1\code\client\cl_curl.h(44) : fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory
1>cl_parse.c
1>c:\openarena-engine-0.8.1\code\client\cl_curl.h(44) : fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory
1>cl_net_chan.c
1>c:\openarena-engine-0.8.1\code\client\cl_curl.h(44) : fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory
1>cl_main.c
1>c:\openarena-engine-0.8.1\code\client\cl_curl.h(44) : fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory
1>cl_keys.c
1>c:\openarena-engine-0.8.1\code\client\cl_curl.h(44) : fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory
1>cl_input.c
1>c:\openarena-engine-0.8.1\code\client\cl_curl.h(44) : fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory
1>cl_curl.c
1>c:\openarena-engine-0.8.1\code\client\cl_curl.h(44) : fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory
1>cl_console.c
1>c:\openarena-engine-0.8.1\code\client\cl_curl.h(44) : fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory
1>cl_cin.c
1>c:\openarena-engine-0.8.1\code\client\cl_curl.h(44) : fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory
1>cl_cgame.c
1>c:\openarena-engine-0.8.1\code\client\cl_curl.h(44) : fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory
1>cl_avi.c
1>c:\openarena-engine-0.8.1\code\client\cl_curl.h(44) : fatal error C1083: Cannot open include file: 'curl/curl.h': No such file or directory
1>BSCMAKE: error BK1506 : cannot open file '..\..\build\quake3_debug\cl_cgame.sbr': No such file or directory
1>Build log was saved at "file://c:\openarena-engine-0.8.1\build\quake3_debug\BuildLog.htm"
1>quake3 - 75 error(s), 5 warning(s)
Logged
eezstreet
Nub


Cakes 0
Posts: 10


« Reply #3 on: October 27, 2009, 03:56:56 PM »

Nobody knows the solution to this problem?
Logged
andrewj
Member


Cakes 24
Posts: 584



« Reply #4 on: October 27, 2009, 09:40:27 PM »

Unfortunately compiling programs is not easy, especially complex programs like ioquake3.

How you compiled other programs before?



Logged
eezstreet
Nub


Cakes 0
Posts: 10


« Reply #5 on: October 28, 2009, 03:19:36 PM »

I just open the misc/msvc/ioq3.sln with MSVC and set it on Release and build the whole shebangbang.

Before ioquake3 I was working on some stuff for Jedi Academy, which is an evolved q3 to say the least. But all I needed to do there was comment out the powf() declarations in q_shared.c/q_math.h

I haven't gotten a successful build yet using ioquake3, I know how to code the q3 engine and stuff, I just can't get the binaries to compile.
Logged
kit89
Member


Cakes 6
Posts: 636


Shoot him..


« Reply #6 on: October 29, 2009, 01:56:23 PM »

From the error messages it would seem you don't have SDL & libcurl installed or the compiler can't find them.
Logged
eezstreet
Nub


Cakes 0
Posts: 10


« Reply #7 on: October 29, 2009, 05:52:05 PM »

Where can I get SDL and curls library?
Logged
Falkland
Member


Cakes 6
Posts: 590


« Reply #8 on: October 29, 2009, 08:13:50 PM »

Why don't you use MINGW + MYSYS instead of that S**T
Logged
eezstreet
Nub


Cakes 0
Posts: 10


« Reply #9 on: November 01, 2009, 11:21:00 AM »

I don't understand how to use MINGW + MSYS ...
Don't post unless you have something useful to add to this conversation...
Logged
Falkland
Member


Cakes 6
Posts: 590


« Reply #10 on: November 01, 2009, 11:38:35 AM »

I don't understand how to use MINGW + MSYS ...
Don't post unless you have something useful to add to this conversation...

It was useful indeed because setting up MINGW+MYSYS is easier ... anyway , if you don't understand how to setup MINGW+MYSYS environment you will be able for sure to setup MSVC environment.
Logged
eezstreet
Nub


Cakes 0
Posts: 10


« Reply #11 on: November 02, 2009, 07:24:16 PM »

I could understand how to set up the MinGW setup if somebody could give me some pointers or some guides, however I find MSVC's code completion function to be useful (not necessarily needed, but it is helpful)
I can't do either setup until somebody could point me to where I can find the curls lib, a google search comes up inconclusive.
Logged
andrewj
Member


Cakes 24
Posts: 584



« Reply #12 on: November 03, 2009, 04:51:13 AM »

I can't do either setup until somebody could point me to where I can find the curls lib, a google search comes up inconclusive.
Google "libcurl".
Logged
eezstreet
Nub


Cakes 0
Posts: 10


« Reply #13 on: November 05, 2009, 08:11:52 PM »

Okay good, we're making progress here. I've fixed all the errors about SDL, curls and OpenAL. Now I just need to fix the error messages that say "cannot locate stuff that's supposed to be in the VMs"
Logged
eezstreet
Nub


Cakes 0
Posts: 10


« Reply #14 on: November 07, 2009, 09:26:49 PM »

Okay, I've fixed everything and got a successful compile.
However, upon running the .exe, it says:

"
The procedure point alcIsExtensionPresent could not be located in the dynamic link library OpenAL32.dll
"
Logged
SharpestTool
Lesser Nub


Cakes -27
Posts: 143


« Reply #15 on: November 14, 2009, 11:53:32 PM »

eezstreet,

It looks like you are using a very poor source to be compiling with Visual Studio 2008.  

1.  The "solution" files aren't worth a flip since all OpenArena releases are built with MinGW.
2.  The code is outdated.
3.  The code for the VM's aren't contained in that tarball.

My questions from here are:

Do you know the basics of C programming?
Do you know how Visual Studio actually utilizes "project" and "solution" files to compile software? or do you just use the "build solution" menu option?

If you know the basics, I can suggest a much better way that utilizes much better maintained source code.  From a MSVC user...

CHEERS!!!

Also the code completion support for Visual Studio 2008 using plain old 'C' is virtually 0.  VS2008, like VS2005 does however provide enormous benefit in trying to navigate the source code by being able to one-click navigate to both definitions and declarations, and find all instances of basically any "c" programming construct.

« Last Edit: November 15, 2009, 12:06:56 AM by SharpestTool » Logged
Pages: [1]
  Print  
 
Jump to: