Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6315] Android: SDK cannot be built (scons'd) on windows since V8-branch merge

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2012-02-14T23:29:01.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2012-03, Release 2.0.0, Release 1.8.2
ComponentsAndroid
Labelsbranch-v8, release-note-1.8.0
ReporterBill Dawson
AssigneeAllen Yeung
Created2011-11-28T11:50:08.000+0000
Updated2012-02-14T23:29:01.000+0000

Description

Cygwin is required

Comments

  1. Allen Yeung 2012-02-03

    Cygwin is not required for this. Here are some things you will need to install: Install android ndk and set it as an environment variable ANDROID_NDK Install android sdk and set it as an environment variable ANDROID_SDK Install gperf (http://gnuwin32.sourceforge.net/packages/gperf.htm) and add it to your path Install Ant (http://ant.apache.org/) and add it to your path Install scons and add it to your path. Once your environment has been set up, run 'scons' in the titanium_mobile root, and an sdk should be generated under the dist directory.
  2. Michael Pettiford 2012-02-07

    Reopening issue Windows 7 and XP Scons reports it builds successfully, however I then am unable to open the zipped SDK. I grabbed this output at the end of scons:
       BUILD SUCCESSFUL
       Total time: 1 minute 2 seconds
       scons: done reading SConscript files.
       scons: Building targets ...
       package_sdk(["dummy-sdk-target"], [])
       Packaging MobileSDK (1.9.0)...
       Generating JSCA...
       C:\Python27\python.exe C:\Documents and Settings\Administrator\Desktop\fromGit\titanium_mobile\apidoc\docgen.py -f jsca --stdout
       scons: *** [dummy-sdk-target] C:\Documents and Settings\Administrator\Desktop\fromGit\titanium_mobile\dist\android\libs/*.*: The system cannot find the path specified
       scons: building terminated because of errors.
       
  3. Allen Yeung 2012-02-08

    NOTE: This should be run from windows command prompt, not cygwin.
  4. Allen Yeung 2012-02-09

    Looks like this was resulting from JAVA_HOME being in a path with spaces in it. Michael- Could you verify that it works now?
  5. Eric Merriman 2012-02-10

    Verified fixed with latest master on Win 7 and Win XP. Scons was successful and resulting build was able to build Studio projects and run in the emulator. Also verified scons on Mac with same steps (plus iOS) to ensure no harm has come to the other side of the fence.

JSON Source