[TIMOB-23576] scons: *** No SConstruct file found.
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2016-08-25T20:33:42.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | build,, error,, scons,, sdk |
| Reporter | Benjamin Allison |
| Assignee | Chee Kiat Ng |
| Created | 2016-06-28T07:00:46.000+0000 |
| Updated | 2018-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.
We have replaced scons on master branch. There will be a blog post soon.
Cool. In the mean time... how can I build the SDK?
Try this:
SDK built! Thanks.
You should update the docs with this http://docs.appcelerator.com/platform/latest/#!/guide/Building_the_Titanium_SDK_From_Source
@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)Fixed by setting $ANDROID_NDK and $ANDROID_SDK