Cant get deathmatch to compile

Get technical support about the C++ source code and about Lua scripts for maps, entities, GUIs, the console, materials, etc. Also covered are the Cafu libraries and APIs, as well as compiling, linking, and the build system.
NGangst
Posts:5
Joined:2006-04-19, 19:13
Cant get deathmatch to compile

Post by NGangst » 2006-04-19, 20:59

8) Hi all im new just like to say i love the engine and the documentation, cant wait to get to work.

But i seem to be having a problem compiling source, first i had an error with the compiler being unable to find the fmod.h file, after searching on the net, i found that it was from the programming api (i feel kinda stupid about that actually), but im still getting errors with undeclaired FSOUND identifiers in DeathMatch.cpp and a

[quote]NMAKE : fatal error U1077: 'cl' : return code '0x2'[/quote]


error


any hope would be greatly appreciated here lads

p.s.
i hate to make my first post like this but i want to get into this engine.

:?

thanks in advance.
Sindwiller
Posts:108
Joined:2006-04-14, 21:11
Location:Zürich, Switzerland

Post by Sindwiller » 2006-04-19, 23:26

Welcome to the Community of CA3DE!

First of all, we need to know what operating system and what compiler/IDE your using. Because CA3DE uses MS Visual C++ (or something like that) for Windows to compile. So DevC++ will not work.

Wfr, Sindwiller

ps. dont ask me about programing questions! Im the biggest n00b in programing :D
Im Working on:
- Some Linux Bash-Scripts for installing stuff. Dont ask further questions, because i can't explain that more simple ^^
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Post by Carsten » 2006-04-20, 11:30

Hi NGangst,

also from me a welcome to the Ca3DE forums! ;)

As Sindwiller also said, more information is required, especially please do not only post the last line of error output, but also all before it.

Btw: I also expect to release a new SDK the latest on Monday, which will assume the use of the new MS VC++ 8 (2005) compiler, rather than VC++ 6...
Best regards,
Carsten
Sindwiller
Posts:108
Joined:2006-04-14, 21:11
Location:Zürich, Switzerland

Post by Sindwiller » 2006-04-21, 12:29

*buhuu* :cry: Why there isnt a DevC++ version :cry:

Wfr, Sindwiller
Im Working on:
- Some Linux Bash-Scripts for installing stuff. Dont ask further questions, because i can't explain that more simple ^^
User avatar
Thrawn
Posts:302
Joined:2004-08-30, 10:38
Location:NRW, Germany
Contact:

Post by Thrawn » 2006-04-21, 12:34

Well as the new Visual C++ compiler is from now on FREE forever and can be easily downloaded, I think that this won't be a problem anymore ;)
Image
Sindwiller
Posts:108
Joined:2006-04-14, 21:11
Location:Zürich, Switzerland

Post by Sindwiller » 2006-04-21, 12:35

Thrawn wrote:Well as the new Visual C++ compiler is from now on FREE forever and can be easily downloaded, I think that this won't be a problem anymore ;)
Hooray!

Wfr, Sindwiller
Im Working on:
- Some Linux Bash-Scripts for installing stuff. Dont ask further questions, because i can't explain that more simple ^^
NGangst
Posts:5
Joined:2006-04-19, 19:13

Thanks

Post by NGangst » 2006-04-21, 14:01

Thanks for the speedy replys and warm welcome,

Im running windows XP Pro with sp1

and im currently trying to use the makefile Makefile.vc60
with nmake from Microsoft Visual C++ 6,
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Post by Carsten » 2006-04-21, 14:55

Okay, but we still need to see more of the compiler output to provide any help.
Best regards,
Carsten
NGangst
Posts:5
Joined:2006-04-19, 19:13

Post by NGangst » 2006-04-22, 15:23

oh sry

this is my output from the batch file ive got



D:\Ca3DE-MDK>set Ca3DE=D:\Ca3DE-MDK\Ca3DE-MDK\Projects

D:\Ca3DE-MDK>d:

D:\Ca3DE-MDK>cd \

D:\>cd D:\Ca3DE-MDK\Ca3DE-MDK\Projects

D:\Ca3DE-MDK\Ca3DE-MDK\Projects>cd Ca3D-Engine\Games\DeathMatch\Code

D:\Ca3DE-MDK\Ca3DE-MDK\Projects\Ca3D-Engine\Games\DeathMatch\Code>nmake /f Makef
ile.vc60

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

cl /nologo /c /J /TP /W3 /WX /GR /GX /Od /Z7 /GZ /MTd /DDEBUG /I D:\Ca3D
E-MDK\Ca3DE-MDK\Projects/Libs /Foobj_win32_vc60_d\ /I D:\Ca3DE-MDK\Ca3DE-MDK\Pro
jects/../ExtLibs/FMod363/api/inc DeathMatch.cpp
DeathMatch.cpp
DeathMatch.cpp(304) : error C2143: syntax error : missing ';' before '*'
DeathMatch.cpp(305) : error C2065: 'Stream' : undeclared identifier
DeathMatch.cpp(305) : error C2100: illegal indirection
DeathMatch.cpp(455) : error C2065: 'FSOUND_Stream_OpenFile' : undeclared identif
ier
DeathMatch.cpp(455) : error C2065: 'FSOUND_2D' : undeclared identifier
DeathMatch.cpp(459) : error C2065: 'FSOUND_Stream_PlayEx' : undeclared identifie
r
DeathMatch.cpp(459) : error C2065: 'FSOUND_FREE' : undeclared identifier
DeathMatch.cpp(463) : error C2065: 'FSOUND_SetVolume' : undeclared identifier
DeathMatch.cpp(464) : error C2065: 'FSOUND_SetPaused' : undeclared identifier
DeathMatch.cpp(475) : error C2065: 'FSOUND_Stream_Stop' : undeclared identifier
DeathMatch.cpp(476) : error C2065: 'FSOUND_Stream_Close' : undeclared identifier

NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

D:\Ca3DE-MDK\Ca3DE-MDK\Projects\Ca3D-Engine\Games\DeathMatch\Code>pause
Press any key to continue . . .




hope that helps
NGangst
Posts:5
Joined:2006-04-19, 19:13

Post by NGangst » 2006-04-22, 15:36

erm im probably sounding like a stupid noob here but any ideas why this is being changed, i am assuming this is what is causing problems:

D:\Ca3DE-MDK\Ca3DE-MDK\Projects/Libs /Foobj_win32_vc60_d\

any ideas why this is being changed

or do i need to change the makefile to include a differant folder?


thanks in advance
Sindwiller
Posts:108
Joined:2006-04-14, 21:11
Location:Zürich, Switzerland

Post by Sindwiller » 2006-04-22, 19:50

DeathMatch.cpp(304) : error C2143: syntax error : missing ';' before '*'
Im an extremely n00b programer but the only thing i know about compilers, that the most important error is the first one. :D

Wfr, Sindwiller
Im Working on:
- Some Linux Bash-Scripts for installing stuff. Dont ask further questions, because i can't explain that more simple ^^
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Post by Carsten » 2006-04-22, 22:06

NGangst wrote:i am assuming this is what is causing problems:

D:\Ca3DE-MDK\Ca3DE-MDK\Projects/Libs /Foobj_win32_vc60_d\

any ideas why this is being changed
What's the problem? I see nothing wrong here.


This rather looks as if you have installed multiple versions of FMOD on your harddrive, and that the "INCLUDE" path is setup so that the other version of FMOD is found before the one that comes with Ca3DE.

Is there any chance that that is so?
If you don't now, could you please search all your harddrives for occurrences of the fmod.h file?
Best regards,
Carsten
NGangst
Posts:5
Joined:2006-04-19, 19:13

Post by NGangst » 2006-04-23, 22:21

Carsten wrote:
NGangst wrote:i am assuming this is what is causing problems:

D:\Ca3DE-MDK\Ca3DE-MDK\Projects/Libs /Foobj_win32_vc60_d\

any ideas why this is being changed
What's the problem? I see nothing wrong here.


This rather looks as if you have installed multiple versions of FMOD on your harddrive, and that the "INCLUDE" path is setup so that the other version of FMOD is found before the one that comes with Ca3DE.

Is there any chance that that is so?
If you don't now, could you please search all your harddrives for occurrences of the fmod.h file?
Ahh yes of course, when i first installed Ca3DE i installed it to my normal modding folder, under program files, there were problems with the enviromental variable having a space in it, so i moved it to another dir, assuming rather stupidly i might add that all of the files had moved, i then deleted the parent dir, so i didnt have all of the files eg the extra libs so fmod wasnt there, i assumed(stupid mong mistake no.2) i needed to install it so i did, and this seems to be where most of my problems are coming from so i have decided to try on another machine. now most of it seems ok, i am now having problems with the linker, i am using the software with same O.S. setup.

the error i am recieving now is like this

LINK : fatal error LNK1146: no argument specified with option "/libpath:"
NMAKE : fatal error U1077: '"F:\Program Files\Microsoft Visual Studio\VC98\bin\link.exe"' : return code '0x47a'

am i correct in assuming that this is another problem with the spaces in the pathname or have i screwed up somewhere else.


thanks again for helping me with this i am unlucky and have problems like this whenever i try to do anything.

-regards ant
User avatar
Thrawn
Posts:302
Joined:2004-08-30, 10:38
Location:NRW, Germany
Contact:

Post by Thrawn » 2006-04-24, 15:48

Just wait some days then there wille be a compiler switch and I'm sure that everything will then work :)
Image
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Post by Carsten » 2006-04-24, 22:06

NGangst wrote:LINK : fatal error LNK1146: no argument specified with option "/libpath:"
NMAKE : fatal error U1077: '"F:\Program Files\Microsoft Visual Studio\VC98\bin\link.exe"' : return code '0x47a'

am i correct in assuming that this is another problem with the spaces in the pathname
Yes, I think so, but again you did not provide sufficient output to say for sure. (This is crucial - I've no crystal ball here, and the above does not help at all!).

So you best try to move the Ca3DE-SDK somewhere where you don't have spaces in your path name, and/or post full compiler/linker output here.
thanks again for helping me with this i am unlucky and have problems like this whenever i try to do anything.
Don't worry. Patience is required, but I'm sure that we'll be able to make it work. :-)

Oh, and there is another option, if you're very courageous:
Today I released a new version of the SDK: http://www.ca3d-engine.de/news.php . However, before you consider upgrading (switching to the latest), I'd highly recommend to read the updated http://www.ca3d-engine.de/wiki/doku.php ... m_mod_code text first...
Last edited by Carsten on 2006-04-25, 09:56, edited 1 time in total.
Best regards,
Carsten
Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests