Page 1 of 1

compiling error

Posted: 2012-02-23, 18:28
by modified001
when i compile the engine i get this:

scons: done reading SConscript files.
scons: building Targets...
scons: building associated VariantDir targets: build\win32\vc10\x86\debug build\
win32\vc10\x86\release
scons: *** [build\win32\vc10\x86\release\Ca3DE\AppCafu.obj] Source `Ca3DE\AppCaf
u.cpp' not found, needed by target `build\win32\vc10\x86\release\Ca3DE\AppCafu.o
bj'.
scons: building terminated because of errors.


what do i do to fix this?

Re: compiling error

Posted: 2012-02-24, 03:15
by modified001
well i fixed it ... kinda... it didn't create an .exe for anything tho... so what now

Re: compiling error

Posted: 2012-02-24, 11:34
by Carsten
Hi modified001,
welcome to the Cafu forums! :welcome:
modified001 wrote: scons: *** [build\win32\vc10\x86\release\Ca3DE\AppCafu.obj] Source `Ca3DE\AppCafu.cpp' not found, needed by target `build\win32\vc10\x86\release\Ca3DE\AppCafu.obj'.
scons: building terminated because of errors.

what do i do to fix this?
Well, the error message is pretty clear, isn't it?
The question is why it couldn't find the Ca3DE\AppCafu.cpp source file. You didn't provide any information about that, but did you download the proper compressed source code archive, and did you un-zip it properly (preserving directory hierarchy)? Running from the right working directory?
well i fixed it ... kinda... it didn't create an .exe for anything tho... so what now
How did you "fix" it?
What is the output?

Re: compiling error

Posted: 2012-02-24, 17:29
by modified001
well i ended up having to copy everything into the folder that contained scons.
currently im completely reinstalling to fix the hierarchy that i ended up creating in the process. it was a travesty. basically, i was stumbling around in the dark until i figured out that everything was out of place. now i kinda have an idea of what to do. should all files have to be in the same dir as scons? because that was how i got it to compile.... finally.

Re: compiling error

Posted: 2012-02-24, 23:21
by Carsten
If you unzip the downloaded archive file correctly (most programs do this right by default these days), your directory structure should like like this:
http://trac.cafu.de/browser/cafu/trunk

It should not be necessary to move around any files manually.

Once you got that, you should be able to proceed exactly as described at Getting Started with the Cafu Source Code.