Windows7 x86 2005 - LemontechSA/TideSDK GitHub Wiki

Prerequisites

OS

Compiler

As well as

Install Prerequisites

When installing scons, if you get the error: "No Python installation found in memory" or "No Python installation found in registry", please make sure the python you got was 32 bits.

Extra Steps

  • Register Platform SDK 2003 with Visual Studio: Start > Programs > Microsoft Platform SDK for Windows Server 2003 R2 > Visual Studio Registration > Register PSDK Directories with Visual Studio
  • Add the following to your PATH environment variable: C:\Python25;C:\Python25\Scripts

Checkout the Sources

git clone git://github.com/TideSDK/TideSDK
cd TideSDK

Build with Installer

Start > Programs > Visual C++ 2005 Express Edition -> Visual Studio Tools -> Visual Studio 2005 Command Prompt

scons debug=1 sdkinstaller run=1

Build and Run Unit Tests

scons debug=1 drillbit run=1

Tracebacks/Notes

  • If you get 'rc', 'cl' or 'mt.exe' is not recognized as an internal or external command, operable program or batch file, then something in your tool-chain is not set-up properly. This could be caused by having multiple versions of Visual Studio installed Side-by-side or any other reason. The only real way to solve this is to start from scratch with a clean virtual machine. http://stackoverflow.com/questions/13520563/scons-rc-is-not-recognized-as-an-internal-or-external-command-operable-prog

  • Compilation successful Windows 7 x64 on v1.2-windows June 9, 2012: (nazcasistemas)

    • The information for this is on the above instructions.
  • Compilation failed Windows 7 x64 on master June 8, 2012: (nazcasistemas) This was the error shown before getting the right way to compile:

cl /Fobuild\win32\objs\modules\tiui\win\UIWin.obj /c modules\ti.UI\win\UIWin.cpp
 /nologo /Z7 /EHsc /GR /MD /MD /DUNICODE /D_UNICODE /TP /nologo /Z7 /EHsc /GR /M
D /MD /DUNICODE /D_UNICODE /DOS_WIN32=1 /D_OS_NAME=win32 /D_PRODUCT_VERSION=1.2.
0.RC6e /D_PRODUCT_NAME=Titanium /D_GLOBAL_NS_VARNAME=Titanium /D_CONFIG_FILENAME
=tiapp.xml /D_BOOT_RUNTIME_FLAG= /D_BOOT_HOME_FLAG= /D_DISTRIBUTION_URL=api.appc
elerator.net /D_CRASH_REPORT_URL=api.appcelerator.net/p/v1/app-crash-report /DOS
_32=1 /DDEBUG=1 /DWIN32_CONSOLE=1 /DMODULE_NAME=tiui /DMODULE_VERSION=1.2.0.RC6e
 "/IC:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include" "/IC:\Program
Files\Microsoft Platform SDK for Windows Server 2003 R2\include" /I. /Ikroll /Ib
uild\win32\sdk\include /Imodules\ti.App /Ikroll\thirdparty-win32-i386-r43\poco\i
nclude /Ikroll\thirdparty-win32-i386-r43\webkit\include /Ikroll\thirdparty-win32
-i386-r43\webkit\include /Ikroll\thirdparty-win32-i386-r43\icu\include
UIWin.cpp

modules\ti.UI\win\UIWin.cpp(66) : error C2275: 'CanPreprocessURLCallback' : illegal use of this type as an expression
        kroll\thirdparty-win32-i386-r43\webkit\include\WebKit/WebKitTitanium.h(24) : see declaration of 'CanPreprocessURLCallback'
modules\ti.UI\win\UIWin.cpp(67) : error C2275: 'PreprocessURLCallback' : illegal use of this type as an expression
        kroll\thirdparty-win32-i386-r43\webkit\include\WebKit/WebKitTitanium.h(25) : see declaration of 'PreprocessURLCallback'
scons: *** [build\win32\objs\modules\tiui\win\UIWin.obj] Error 2
scons: building terminated because of errors.
  • Compilation failed Windows 7 x64 on Windows 1.2 branch June 8, 2012: (nazcasistemas)

    cl /Fobuild\win32\objs\modules\tiui\UIModule.obj /c modules\ti.UI\UIModule.cpp /nologo /Z7 /EHsc /GR /MD /MD /DUNICODE /D_UNICODE /TP /nologo /Z7 /EHsc /GR /MD /MD /DUNICODE /D_UNICODE /DOS_WIN32=1 /D_OS_NAME=win32 /D_PRODUCT_VERSION=1.2.0.RC6d /D_PRODUCT_NAME=Titanium /D_GLOBAL_NS_VARNAME=Titanium /D_CONFIG_FILENAME=tiapp.xml /D_BOOT_RUNTIME_FLAG= /D_BOOT_HOME_FLAG= /D_DISTRIBUTION_URL=api.appcelerator.net /D_CRASH_REPORT_URL=api.appcelerator.net/p/v1/app-crash-report /DOS_32=1 /DDEBUG=1 /DWIN32_CONSOLE=1 /DMODULE_NAME=tiui /DMODULE_VERSION=1.2.0.RC6d "/IC:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include" "/IC:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\include" /I. /Ikroll /Ibuild\win32\sdk\include /Imodules\ti.App /Ikroll\thirdparty-win32-i386-r43\poco\include /Ikroll\thirdparty-win32-i386-r43\webkit\include /Ikroll\thirdparty-win32-i386-r43\webkit\include /Ikroll\thirdparty-win32-i386-r43\icu\include
    

UIModule.cpp c:\nazca proyectos\tidesdk\titanium_desktop\modules\ti.ui\ScriptEvaluator.h(83) : error C3083: 'Script': the symbol to the left of a '::' must be a type c:\nazca proyectos\tidesdk\titanium_desktop\modules\ti.ui\ScriptEvaluator.h(83) : error C2039: 'GetInstance' : is not a member of 'kroll' c:\nazca proyectos\tidesdk\titanium_desktop\modules\ti.ui\ScriptEvaluator.h(83) : error C2227: left of '->CanEvaluate' must point to class/struct/union/generic type type is ''unknown-type'' c:\nazca proyectos\tidesdk\titanium_desktop\modules\ti.ui\ScriptEvaluator.h(83) : error C3861: 'GetInstance': identifier not found c:\nazca proyectos\tidesdk\titanium_desktop\modules\ti.ui\ScriptEvaluator.h(90) : error C3083: 'Script': the symbol to the left of a '::' must be a type c:\nazca proyectos\tidesdk\titanium_desktop\modules\ti.ui\ScriptEvaluator.h(90) : error C2039: 'GetInstance' : is not a member of 'kroll' c:\nazca proyectos\tidesdk\titanium_desktop\modules\ti.ui\ScriptEvaluator.h(90) : error C2227: left of '->Evaluate' must point to class/struct/union/generic type type is ''unknown-type'' c:\nazca proyectos\tidesdk\titanium_desktop\modules\ti.ui\ScriptEvaluator.h(90) : error C3861: 'GetInstance': identifier not found scons: *** [build\win32\objs\modules\tiui\UIModule.obj] Error 2 scons: building terminated because of errors.


* If you get the error:
"No Python installation found in memory" or "No Python installation found in registry"
when installing scons, please make sure the python you got was 32 bits.


## Copyright and Attribution

The following copyright and attribution applies to this document:

* Copyright © 2012 David Pratt (for TideSDK). All rights reserved.
* Original sources of build documentation copyright (c) Appcelerator Inc.

CONTRIBUTORS:
* David Pratt
* Francisco Zarate