Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-10724

Android: Modules: remove gperf as a build dependency

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 2.1.1, Release 2.1.2, Release 6.1.2
    • Fix Version/s: Release 7.0.0
    • Component/s: Android, Tooling
    • Environment:

      Titanium Studio: 2.1.1, 2.1.2
      Titanium SDK: 2.1.1, 2.1.2
      OS: Windows 7
      Android SDK: r20.0.3
      Android NDK: r8b

    • Story Points:
      8
    • Sprint:
      2017 Sprint 15 SDK

      Description

      When trying to build an android module on windows 7, there was an uninformative failure/error.

      C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\2.1.2.v20120824144611\module\android\build.xml:362: The following error occurred while executing this line:
      C:\Users\tester\AppData\Roaming\Titanium\mobilesdk\win32\2.1.2.v20120824144611\module\android\build.xml:317: exec returned: 2
      

      Upon further investigation (using titanium studio > android module project > build.xml > right click > run as ant) it was found that gperf was somehow removed from the path or uninstalled from that machine, and it needed to be reinstalled and added to the system path.

      This does not occur on a fresh studio/sdk install on windows 7.

      It is suggested to remove gperf as a dependency to build android modules.

      Note that gperf is not documented as a dependency.

      Android Module Documentation (wiki.appcelerator.org):

      https://wiki.appcelerator.org/display/guides2/Android+Module+Development+Guide#AndroidModuleDevelopmentGuide-Step0%3AInstallingtheNecessaryComponents

      Steps to Reproduce:

      1. Install Titanium Studio and Titanium SDK on Windows 7.
      2. Install Android SDK and Android NDK.
      3. Uninstall gperf or remove from the system path.
      4. Create an Android Module and build the module (i.e., Publish > Package Module > to Titanium Project).

      Actual Result:

      Build failure if gperf is not installed.

      Expected Result:

      Success (no gperf dependency), or a meaningful error message.

      Note that the inclusion of gperf causes overhead for Titanium Studio to include built-in software prerequisites.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                dhyde Dustin Hyde
                Reviewer:
                Christopher Williams
                Tester:
                Lokesh Choudhary
              • Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code