[HELP] Can't find the compiler

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.
GoldNotch
Posts: 4
Joined: 2016-02-08, 06:23

[HELP] Can't find the compiler

Postby GoldNotch » 2016-02-08, 09:16

Hi. Scons can't find the compiler.

This log

Code: Select all

D:\Engines\cafu>scons.py
scons: Reading SConscript files ...

Unknown compiler on platform win32.
NameError: name 'envDebug' is not defined:
  File "D:\Engines\cafu\SConstruct", line 422:
    envDebug  .Append(CPPDEFINES=["DEBUG"]);

D:\Engines\cafu>scons.py -v
SCons by Steven Knight et al.:
        script: v2.4.1.rel_2.4.1:3453:73fefd3ea0b0, 2015/11/09 03:25:05, by bdba
ddog on ubuntu1404-32bit
        engine: v2.4.1.rel_2.4.1:3453:73fefd3ea0b0, 2015/11/09 03:25:05, by bdba
ddog on ubuntu1404-32bit
        engine path: ['C:\\Python27\\Lib\\site-packages\\scons-2.4.1\\SCons']
Copyright (c) 2001 - 2015 The SCons Foundation


In the CompilerSetup.py I entered

Code: Select all

envCommon = Environment(MSVC_VERSION="12.0", TARGET_ARCH="x86")


P.S. I have Windows 8.1 x64. Python version - 2.7.11

How I can repair this mistake?
GoldNotch
Posts: 4
Joined: 2016-02-08, 06:23

Re: [HELP] Can't find the compiler

Postby GoldNotch » 2016-02-08, 09:21

Also if I change from

Code: Select all

envCommon = Environment(MSVC_VERSION="12.0", TARGET_ARCH="x86")

to

Code: Select all

envCommon = Environment(MSVC_VERSION="11.0", TARGET_ARCH="x86")

then I get 2 errors.

Code: Select all

D:\Engines\cafu>scons.py
scons: Reading SConscript files ...

os.chdir('ExtLibs/wxWidgets/build/msw')
nmake /nologo /f makefile.vc BUILD=debug SHARED=0 COMPILER_PREFIX=vc11
        cl /c /nologo /TP /Fovc11_mswud\baselib_dummy.obj /MDd /DWIN32  /Zi  /Fd
..\..\lib\vc11_lib\wxbase30ud.pdb  /D_DEBUG /Od /D_CRT_SECURE_NO_DEPRECATE=1  /D
_CRT_NON_CONFORMING_SWPRINTFS=1 /D_SCL_SECURE_NO_WARNINGS=1   /D__WXMSW__
  /D_UNICODE   /I..\..\lib\vc11_lib\mswud /I..\..\include  /W4  /DWXBUILDING /I.
.\..\src\tiff\libtiff /I..\..\src\jpeg /I..\..\src\png  /I..\..\src\zlib /I..\..
\src\regex /I..\..\src\expat\lib /DwxUSE_GUI=0  /DwxUSE_BASE=1 /GR /EHsc /Yu"wx/
wxprec.h"  /Fp"vc11_mswud\wxprec_baselib.pch"   /Ycwx/wxprec.h ..\..\src\common\
dummy.cpp
dummy.cpp
D:\Engines\cafu\ExtLibs\wxWidgets\include\wx/msw/wrapwin.h(62) : fatal error C10
83: No such file or directory: winsock2.h: No such file or directory
NMAKE : fatal error U1077: "C:\Program Files (x86)\Microsoft Visual Studio 11.0\
VC\BIN\cl.EXE" : return code "0x2"
Stop.
os.chdir('D:\\Engines\\cafu')
scons: *** Error 2
User avatar
Carsten
Site Admin
Posts: 2130
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: [HELP] Can't find the compiler

Postby Carsten » 2016-02-08, 11:55

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

The error in your first message is because our SCons script doesn't support Visual Studio 2013 / 12.0 yet (but this can easily be fixed).

The error in your second message is because with Visual Studio 2012 / 11.0, something seems wrong with your configuration, so that the Windows SDK cannot be found. This might be a consequence of having VS 12.0 installed next to 11.0.

Which editions of Visual Studio do you have? Express or "full"?

Right now, I'm downloading and insalling Visual Studio 12.0, will fix the support in our build scripts, then post here again, later today.
(And I consider support for Visual Studio 2015 next, but first we'll fix your issue. :wink: )
Best regards,
Carsten
GoldNotch
Posts: 4
Joined: 2016-02-08, 06:23

Re: [HELP] Can't find the compiler

Postby GoldNotch » 2016-02-08, 12:22

I have full version of VS2013.
I installed windowsSDK
Ok, I'll be waiting for you
User avatar
Carsten
Site Admin
Posts: 2130
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: [HELP] Can't find the compiler

Postby Carsten » 2016-02-08, 17:51

Hi GoldNotch,

ok, I made the promised changes, please pull from the Git repository. Using Visual C++ 2013 (12.0) Express Edition, I've been able to run clean builds both for 32- and 64-bit targets.

Before you start, please do the following:
In CompilerSetup.py, use

Code: Select all

envCommon = Environment(MSVC_VERSION="11.0")

then run

Code: Select all

scons -Q -c

in order to clean fragments from previous builds using Visual C++ 11.0.

Then change CompilerSetup.py to use

Code: Select all

envCommon = Environment(TARGET_ARCH="x86")

and run

Code: Select all

scons -Q -c

in order to clean fragments from previous builds using Visual C++ 12.0 (which should be auto-detected, as no value for MSVC_VERSION is provided).

Then,

Code: Select all

scons -Q

should compile everything, using 32-bit targets (recommended).

You may also use

Code: Select all

scons -Q -j 4

if you have at least a Quad-Core. This is much faster than without -j 4, but may fail. If it fails, you can still re-run without -j 4.

Please let me know if this works! :up:
Best regards,
Carsten
GoldNotch
Posts: 4
Joined: 2016-02-08, 06:23

Re: [HELP] Can't find the compiler

Postby GoldNotch » 2016-02-08, 19:21

oohh thanks.
All compiled, but then I trying to launch the Cafu.exe in the debug version, I get

https://pp.vk.me/c633617/v633617521/116 ... 9v9Q1k.jpg

and if I press on No (Second Button), then I get

https://pp.vk.me/c633617/v633617521/116 ... cccl-Q.jpg


And if do this in release version then I get only second message.

What is it?
User avatar
Carsten
Site Admin
Posts: 2130
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: [HELP] Can't find the compiler

Postby Carsten » 2016-02-08, 21:25

Are you running Cafu.exe from the right working directory?

Please see
Best regards,
Carsten

Return to “Cafu Engine Support and Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest