r81 compile problem

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.
Locked
DarkStar
Posts: 11
Joined: 2010-05-13, 18:50

r81 compile problem

Post by DarkStar » 2010-05-26, 07:49

first: - i never compiled any revision of cafu before
second: - i tried compiling r81 but got this message
:!: its the message i got while trying to compile the second time
D:\others\Programming\Game\cafu\cafu source>scons -q
scons: Reading SConscript files ...

os.chdir('ExtLibs/wxWidgets/build/msw')
nmake /nologo /f makefile.vc BUILD=debug SHARED=0 USE_OPENGL=1 RUNTIME_LIBS=stat
ic COMPILER_PREFIX=vc9
os.chdir('D:\\others\\Programming\\Game\\cafu\\cafu source')
os.chdir('ExtLibs/wxWidgets/build/msw')
nmake /nologo /f makefile.vc BUILD=release SHARED=0 USE_OPENGL=1 RUNTIME_LIBS=st
atic COMPILER_PREFIX=vc9
os.chdir('D:\\others\\Programming\\Game\\cafu\\cafu source')

scons: done reading SConscript files.
scons: Building targets ...
scons: building terminated because of errors.

why?

i am using python 2.6.4 installer,scons 1.3.0.d20100501 installer and vc++ 2008
already set up the path in environment variable
then i first made a copy of CompilerSetup.py.tmpl and renamed it to CompilerSetup.py and got thet error
then i open the CompilerSetup.py.tmpl in notepad copy all the contents
made a new notepad file name it to CompilerSetup.py and paste the contents in it
then saved it in the cafu directory
and still got the error

please help :|

thanks
User avatar
Carsten
Site Admin
Posts: 2160
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: r81 compile problem

Post by Carsten » 2010-05-26, 20:51

Hi DarkStar,

ok, don't worry, let's narrow things down:
  1. Which version of Windows are you using, 32- or 64-bit?
  2. Can you please upgrade to the latest version of SCons (1.3.0.d20100523) and try again? (Run scons -v to check and verify.)
  3. Next, please delete file .sconsign.dblite in the main Cafu directory, then try again.
  4. If it still doesn't work, what does scons -Q --debug=stacktrace output?
  5. In file SConstruct, comment out lines 295 and 297 (both lines start with if (result!=0): ...) by putting a # in front of them:

    Code: Select all

    # Compile wxWidgets for the current platform.
    if sys.platform=="win32":
        # Make sure the "compiler" string begins with "vc" and is three characters long.
        if compiler[0]=='v' and compiler[1]=='c' and len(compiler)==3:
            result=envDebug.  Execute("nmake /nologo /f makefile.vc BUILD=debug   SHARED=0 USE_OPENGL=1 RUNTIME_LIBS=static COMPILER_PREFIX="+compiler, chdir="ExtLibs/wxWidgets/build/msw");
            # if (result!=0): envDebug.  Exit(result);
            result=envRelease.Execute("nmake /nologo /f makefile.vc BUILD=release SHARED=0 USE_OPENGL=1 RUNTIME_LIBS=static COMPILER_PREFIX="+compiler, chdir="ExtLibs/wxWidgets/build/msw");
            # if (result!=0): envRelease.Exit(result);
            print "";   # Print just another empty line for better visual separation.
    
    Then try to re-run SCons.
  6. Finally, if all else fails, run scons -Q --ignore-errors
Please let us know the results of these steps, I'm very interested in learning what causes the trouble. :up:
Best regards,
Carsten
DarkStar
Posts: 11
Joined: 2010-05-13, 18:50

Re: r81 compile problem

Post by DarkStar » 2010-05-27, 10:36

windows vista (without sp) 32bit
SCons 1.3.0.d20100523
scons -v output
SCons by Steven Knight et al.:
engine: v1.3.0.d20100523.r4907, 2010/05/23 14:26:42, by bdeegan on ubunt
u
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCo
ns Foundation

now scon-q output
scons: Reading SConscript files ...

os.chdir('ExtLibs/wxWidgets/build/msw')
nmake /nologo /f makefile.vc BUILD=debug SHARED=0 USE_OPENGL=1 RUNTIME_LIBS=stat
ic COMPILER_PREFIX=vc9
'nmake' is not recognized as an internal or external command,
operable program or batch file.
os.chdir('D:\\others\\Programming\\Game\\cafu\\cafu source')
scons: *** Error 1

Deleted .sconsign.dblite

then scons -q output
scons: Reading SConscript files ...

os.chdir('ExtLibs/wxWidgets/build/msw')
nmake /nologo /f makefile.vc BUILD=debug SHARED=0 USE_OPENGL=1 RUNTIME_LIBS=stat
ic COMPILER_PREFIX=vc9
'nmake' is not recognized as an internal or external command,
operable program or batch file.
os.chdir('D:\\others\\Programming\\Game\\cafu\\cafu source')
scons: *** Error 1




scons -Q --debug=stacktrace output

os.chdir('ExtLibs/wxWidgets/build/msw')
nmake /nologo /f makefile.vc BUILD=debug SHARED=0 USE_OPENGL=1 RUNTIME_LIBS=stat
ic COMPILER_PREFIX=vc9
'nmake' is not recognized as an internal or external command,
operable program or batch file.
os.chdir('D:\\others\\Programming\\Game\\cafu\\cafu source')
scons: *** Error 1

Changed the sconstruct file as u told
then scons -q output

scons: Reading SConscript files ...

os.chdir('ExtLibs/wxWidgets/build/msw')
nmake /nologo /f makefile.vc BUILD=debug SHARED=0 USE_OPENGL=1 RUNTIME_LIBS=stat
ic COMPILER_PREFIX=vc9
'nmake' is not recognized as an internal or external command,
operable program or batch file.
os.chdir('D:\\others\\Programming\\Game\\cafu\\cafu source')
scons: *** Error 1
os.chdir('ExtLibs/wxWidgets/build/msw')
nmake /nologo /f makefile.vc BUILD=release SHARED=0 USE_OPENGL=1 RUNTIME_LIBS=st
atic COMPILER_PREFIX=vc9
'nmake' is not recognized as an internal or external command,
operable program or batch file.
os.chdir('D:\\others\\Programming\\Game\\cafu\\cafu source')
scons: *** Error 1

scons: done reading SConscript files.
scons: Building targets ...
scons: building terminated because of errors.

scons -Q --ignore-errors output

the output is almost 10 pages long and command prompt dosent show that much
but hey there is the snap shot
Attachments
Untitled.jpg
User avatar
Carsten
Site Admin
Posts: 2160
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: r81 compile problem

Post by Carsten » 2010-05-27, 14:43

Ok, thanks. Good news is that I can reproduce things here. We're dealing with several independent issues:

First, although the Getting Started with the Cafu Source code documentation was correct regarding scons -Q, people tend to write scons -q instead. This however is asking for trouble, because option -Q has an utterly different meaning than option -q. Run scons --help for details.
I've now updated the documentation and removed all mentioning of -Q entirely, and hope that that avoids similar problems in the future.
For you, this means that you should not use -q as well. Please use -Q or omit it entirely, but don't use -q. :up:

The next point is simple: After the above changes and tests, we should re-establish a clean base environment for the build. Running the two commands

Code: Select all

del .sconsign.dblite
svn revert SConstruct
should take care of it.

Finally, and unfortunately, it seems that the latest version v1.3.0.d20100523 has a new bug where the previous version v1.3.0.d20100501 was fine, so please start SCons now like this:

Code: Select all

scons-1.3.0.d20100501.bat
(I've filed an appropriate bug report already, so that they can release a fixed version soon.)

Does this work?
Best regards,
Carsten
DarkStar
Posts: 11
Joined: 2010-05-13, 18:50

Re: r81 compile problem

Post by DarkStar » 2010-05-27, 16:06

thanks for such a quick reply
:cheesy:
and well if you want to u can add a batch file to compile the source code
like this one
Attachments
compile.zip
(145 Bytes) Downloaded 198 times
User avatar
Carsten
Site Admin
Posts: 2160
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: r81 compile problem

Post by Carsten » 2010-05-28, 10:34

DarkStar wrote:thanks for such a quick reply
:cheesy:
You're welcome - I assume then that compilation works now for you.
if you want to u can add a batch file to compile the source code
like this one
Thanks, but I'll rather see to fix the problem at its root... :up:
Best regards,
Carsten
User avatar
Carsten
Site Admin
Posts: 2160
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: r81 compile problem

Post by Carsten » 2010-06-07, 16:01

Good news:
New versions of SCons have just been released that fix the reported problems! :wohow:

I've also updated the related documentation accordingly, which now also recommends to use the newer SCons 2.0.0(.beta) releases.

:up:
Best regards,
Carsten
Locked

Who is online

Users browsing this forum: No registered users and 1 guest