Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23576] scons: *** No SConstruct file found.

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2016-08-25T20:33:42.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsbuild,, error,, scons,, sdk
ReporterBenjamin Allison
AssigneeChee Kiat Ng
Created2016-06-28T07:00:46.000+0000
Updated2018-02-13T17:16:02.000+0000

Description

Trying to build the SDK and it's failing immediately. I'm cloning https://github.com/appcelerator/titanium_mobile.git then running scons in the project root, and it spits out the following error: scons: *** No SConstruct file found.

Comments

  1. Chee Kiat Ng 2016-06-29

    We have replaced scons on master branch. There will be a blog post soon.
  2. Benjamin Allison 2016-06-30

    Cool. In the mean time... how can I build the SDK?
  3. Chee Kiat Ng 2016-06-30

    Try this:
       cd build
       npm install
       node scons.js build
       node scons.js package
       node scons.js install
       
  4. Benjamin Allison 2016-06-30

    SDK built! Thanks.
  5. Manuel Lehner 2017-07-29

    You should update the docs with this http://docs.appcelerator.com/platform/latest/#!/guide/Building_the_Titanium_SDK_From_Source
  6. ebrahim sayed abd el-moaty 2018-02-11

    @chee kiat Ng cant build with this way , this error log showed up
       user:titanium_mobile user$ node scons.js build
       module.js:540
           throw err;
           ^
       
       Error: Cannot find module '/Users/user/Desktop/gihub TI/titanium_mobile/scons.js'
           at Function.Module._resolveFilename (module.js:538:15)
           at Function.Module._load (module.js:468:25)
           at Function.Module.runMain (module.js:684:10)
           at startup (bootstrap_node.js:187:16)
           at bootstrap_node.js:608:3
       user:titanium_mobile user$ cd build
       user:build user$ node scons.js build
       Building MobileSDK version 7.0.3, githash fb078dc66d
       path.js:28
           throw new TypeError('Path must be a string. Received ' + inspect(path));
           ^
       
       TypeError: Path must be a string. Received null
           at assertPath (path.js:28:11)
           at Object.join (path.js:1246:7)
           at AndroidSDK.getPlatformDir (/Users/user/Desktop/gihub TI/titanium_mobile/build/androidsdk.js:64:24)
           at Android.build (/Users/user/Desktop/gihub TI/titanium_mobile/build/android.js:52:28)
           at /Users/user/Desktop/gihub TI/titanium_mobile/build/scons-build.js:43:25
           at /Users/user/Desktop/gihub TI/titanium_mobile/node_modules/async/dist/async.js:3047:16
           at replenish (/Users/user/Desktop/gihub TI/titanium_mobile/node_modules/async/dist/async.js:982:17)
           at iterateeCallback (/Users/user/Desktop/gihub TI/titanium_mobile/node_modules/async/dist/async.js:967:17)
           at /Users/user/Desktop/gihub TI/titanium_mobile/node_modules/async/dist/async.js:944:16
           at IOS.fetchLibTiCore (/Users/user/Desktop/gihub TI/titanium_mobile/build/ios.js:52:10)
       
  7. ebrahim sayed abd el-moaty 2018-02-13

    Fixed by setting $ANDROID_NDK and $ANDROID_SDK

JSON Source