{ "id": "153362", "key": "TIMOB-20117", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-07-29T14:10:22.000+0000", "created": "2015-11-21T19:58:26.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "build", "scons", "sdk" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-22T17:48:03.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10207", "name": "Tooling" } ], "description": "Steps to success build:\r\n\r\n{code}\r\n$ cd ~/Documents/work/titanium/titanium_mobile/\r\n$ scons\r\nscons: Reading SConscript files ...\r\nInstalling npm packages...\r\nnpm WARN package.json doctools@0.0.0 license should be a valid SPDX license expression\r\nBuilding MobileSDK version 5.2.0, githash 94c017f\r\nException: No Android SDK directory found:\r\n File \"/Users/falko/Documents/work/titanium/titanium_mobile/SConstruct\", line 119:\r\n sdk = AndroidSDK(ARGUMENTS.get(\"android_sdk\", None), 23)\r\n File \"/Users/falko/Documents/work/titanium/titanium_mobile/support/android/androidsdk.py\", line 48:\r\n raise Exception('No Android SDK directory found')\r\n{code}\r\n\r\n{code}\r\n$ echo $ANDROID_HOME\r\n/Users/falko/Library/android-sdk-macosx/\r\n{code}\r\n\r\n{code}\r\n$ scons android_sdk=$ANDROID_HOME\r\nscons: Reading SConscript files ...\r\nInstalling npm packages...\r\nnpm WARN package.json doctools@0.0.0 license should be a valid SPDX license expression\r\nBuilding MobileSDK version 5.2.0, githash 94c017f\r\njava -cp /Users/falko/Documents/work/titanium/titanium_mobile/android/build/lib/ant.jar:/Users/falko/Documents/work/titanium/titanium_mobile/android/build/lib/ant-launcher.jar:/Users/falko/Documents/work/titanium/titanium_mobile/android/build/lib/xercesImpl.jar:/Users/falko/Documents/work/titanium/titanium_mobile/android/build/lib/xml-apis.jar:/Users/falko/Documents/work/titanium/titanium_mobile/android/build/lib/ant-nodeps.jar org.apache.tools.ant.launch.Launcher -Dant.home=build -Dkroll.v8.build.x86=1 -Dandroid.sdk=/Users/falko/Library/android-sdk-macosx/ -Dandroid.platform=/Users/falko/Library/android-sdk-macosx/platforms/android-23 -Dndk.build.args=JAVAH=javah -Dbuild.githash=94c017f -Dgoogle.apis=/Users/falko/Library/android-sdk-macosx/add-ons/addon-google_apis-google-23 -Dbuild.version=5.2.0 -buildfile build.xml full.build\r\nBuildfile: /Users/falko/Documents/work/titanium/titanium_mobile/android/build.xml\r\n\r\nclean.all:\r\n [mkdir] Created dir: /Users/falko/Documents/work/titanium/titanium_mobile/dist/android/classes/ant-tasks\r\n [javac] Compiling 8 source files to /Users/falko/Documents/work/titanium/titanium_mobile/dist/android/classes/ant-tasks\r\n\r\nBUILD FAILED\r\n/Users/falko/Documents/work/titanium/titanium_mobile/android/build/common.xml:618: The following error occurred while executing this line:\r\n/Users/falko/Documents/work/titanium/titanium_mobile/android/build/common.xml:651: Unable to find a javac compiler;\r\ncom.sun.tools.javac.Main is not on the classpath.\r\nPerhaps JAVA_HOME does not point to the JDK.\r\nIt is currently set to \"/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre\"\r\n\r\nTotal time: 0 seconds\r\n{code}\r\n\r\n{code}\r\n$ /usr/libexec/java_home\r\n/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home\r\n{code}\r\n\r\n{code}\r\n$ JAVA_HOME=/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/ scons android_sdk=$ANDROID_HOME\r\n{code}\r\n\r\n*Success!*\r\n", "attachment": [], "flagged": false, "summary": "scons not sees env variables", "creator": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "subtasks": [], "reporter": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "environment": "Mac OS Yosemite 10.10.5", "comment": { "comments": [ { "id": "391950", "author": { "name": "isseium", "key": "isseium", "displayName": "Issei Komatsu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FYI: http://www.smorgasbork.com/2015/05/15/compiling-titanium-mobile-sdk-from-scratch/", "updateAuthor": { "name": "isseium", "key": "isseium", "displayName": "Issei Komatsu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-29T06:26:15.000+0000", "updated": "2016-07-29T06:26:15.000+0000" }, { "id": "391983", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "We have removed scons and replaced it with a Node script. View Titanium SDK's readme for how to build.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-07-29T14:10:22.000+0000", "updated": "2016-07-29T14:10:22.000+0000" }, { "id": "414805", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix and with reference to the above comments. ", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T17:48:03.000+0000", "updated": "2017-03-22T17:48:03.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }