Error while building the SDK

Get help with installing and running the Cafu Engine here. This forum is also for general questions and discussion of all aspects regarding the Cafu Engine.
Post Reply
Rekire
Posts:3
Joined:2011-08-12, 14:49
Error while building the SDK

Post by Rekire » 2011-08-12, 14:54

Hello,

I try to build your SDK files but it fails at the beginning.
I made the steps from here.

That is what I get:
D:\SDKs\Cafu r210>python -V
Python 2.7

D:\SDKs\Cafu r210>scons -v
SCons by Steven Knight et al.:
engine: v2.0.1.r5134, 2010/08/16 23:02:40, by bdeegan on cooldog
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation

D:\SDKs\Cafu r210>scons
scons: Reading SConscript files ...

scons: *** Visual Studio version '10.0' is not supported
File "D:\SDKs\Cafu r210\SConstruct", line 131, in <module>

I'm using Windows 7 x64 Professional and Visual Studio 2010 Ultimate.

Edit:
Depending on Line 131 "envCommon.Tool('mssdk')" i beleve it could be something with other installed SDKs. I've installed the Windows SDK (v7.0) and DirectX SDK (June 2010) too.
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Re: Error while building the SDK

Post by Carsten » 2011-08-12, 20:17

Hi Rekire,
welcome to the Cafu forums! :welcome:

Please open file CompilerSetup.py in the top directory, and replace line

Code: Select all

envCommon=Environment();
with

Code: Select all

envCommon=Environment(TARGET_ARCH="x86");
Does re-running scons work then?

Cafu itself compiles as 64-bit software, but unfortunately, SCons still has trouble with properly supporting 64-bit builds with VC10.
We are however actively looking into and working with Premake, in order to soon provide an alternative to SCons that makes building Cafu possible in the native IDEs, including 64-bit Visual Studio.
Best regards,
Carsten
Rekire
Posts:3
Joined:2011-08-12, 14:49

Re: Error while building the SDK

Post by Rekire » 2011-08-13, 13:21

I edited line 45. No changes.
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Re: Error while building the SDK

Post by Carsten » 2011-08-14, 11:13

Ah, sorry, only now I realize that you use SCons 2.0.1.
Could you please re-try with SCons 2.1 (alpha)?
As the Getting Started with the Cafu Source Code documentation says, version 2.1-alpha is needed for VS10.

It may then be possible to undo the change that I suggested in my earlier post: best you try both, starting with the original line. (And please report any compile errors -- our 32-bit builds are frequently tested on Windows and Linux, but our 64-bit builds are primarily tested on Linux, so it's well possible that the 64-bit Windows build brings up a few related issues (that are easy to fix though)).
:up:
Best regards,
Carsten
Rekire
Posts:3
Joined:2011-08-12, 14:49

Re: Error while building the SDK

Post by Rekire » 2011-08-14, 15:36

I rode that i need the alpha... There are to many links :D
Now it's compeiling thank you.
User avatar
Carsten
Site Admin
Posts:2170
Joined:2004-08-19, 13:46
Location:Germany
Contact:

Re: Error while building the SDK

Post by Carsten » 2011-08-15, 14:47

Thanks for the feed-back, good to hear that it's working now! :-)
Did you compile as 64- or 32-bit? (I.e., with or without the TARGET_ARCH="x86" statement?)
Best regards,
Carsten
Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests