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

Android: Modules: remove gperf as a build dependency


    • 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:
    • Sprint:
      2017 Sprint 15 SDK


      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):


      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.


          Issue Links



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


                • Created:

                  Backbone Issue Sync

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

                    Git Integration