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

BlackBerry: Build fails after updating to 10.2 as it can't find bbndk-env.sh file

    Details

      Description

      Description:
      1. Download the new BB 10.2 momentics on your machine
      2. From the momentics preferences download the desired BB NDK

      On MAC OSX:

      1. The new BB NDK will get downloaded in the packaged contents of the momentics app.
      2. Point both appcel studio & titanium studio to the path '/Applications/Momentics.app/'
      3. Build/Run an app for BB simulator/device

      Actual results:
      1. We get the following errors in the console:

      Titanium Command-Line Interface, CLI version 3.1.2, Titanium SDK version 3.1.2.GA
      Copyright (c) 2012-2013, Appcelerator, Inc.  All Rights Reserved.
      Please report bugs to http://jira.appcelerator.org/
      [INFO] :   No Titanium Modules required, continuing
      [Command] :source /Applications/Momentics.app/bbndk-env.sh && make TIAPP_NAME=ActivityIndicator CPULIST=x86 BB_ROOT=/var/folders/35/nwgw558n55951fnpxmxkjqmr0000gp/T/113726-1432-1wnamrf-ActivityIndicator VARIANTLIST=g 
      [LiveView] No active servers
      Path to BlackBerry NDK is: /Applications/Momentics.app
      [INFO] :   No Titanium Modules required, continuing
      [Command] :source /Applications/Momentics.app/bbndk-env.sh && blackberry-nativepackager -package "/Users/lokeshchoudhary/Desktop/BB_test_workspace/ActivityIndicator/build/blackberry/x86/o-g/ActivityIndicator.bar" bar-descriptor.xml -e "/Users/lokeshchoudhary/Desktop/BB_test_workspace/ActivityIndicator/build/blackberry/x86/o-g/ActivityIndicator" "ActivityIndicator" -buildID 1 assets framework -devMode 
      Error: Command failed: /bin/sh: /Applications/Momentics.app/bbndk-env.sh: No such file or directory
      /bin/sh: /Applications/Momentics.app/bbndk-env.sh: No such file or directory
      [Command] :source /Applications/Momentics.app/bbndk-env.sh && blackberry-deploy -installApp -launchApp -device 192.168.145.133 -package "/Users/lokeshchoudhary/Desktop/BB_test_workspace/ActivityIndicator/build/blackberry/x86/o-g/ActivityIndicator.bar" 
      Error: Command failed: /bin/sh: /Applications/Momentics.app/bbndk-env.sh: No such file or directory
      /bin/sh: /Applications/Momentics.app/bbndk-env.sh: No such file or directory
      Error: Command failed: /bin/sh: /Applications/Momentics.app/bbndk-env.sh: No such file or directory
      /bin/sh: /Applications/Momentics.app/bbndk-env.sh: No such file or directory
      

      Expected Result:
      1. The build/run should happen successfully

      On Win 7 & 8:

      1. The new BB NDK will get downloaded in 'C:/bbndk'
      2. Point both appcel studio & titanium studio to the path 'C:/bbndk'
      3. Build/Run an app for BB simulator/device

      Actual results:
      1. We get the following errors in the console:

      Titanium Command-Line Interface, CLI version 3.1.2, Titanium SDK version 3.1.2.GA
      Copyright (c) 2012-2013, Appcelerator, Inc.  All Rights Reserved.
      [INFO] :   Searching for 3 Titanium Modules
      [INFO] :   Found Titanium module id=ti.cloud version=latest platform=commonjs deploy-type=development
      [INFO] :   Bundling Titanium Mobile Module ti.cloud
      [Command] :C:\bbndk\bbndk-env.bat && make TIAPP_NAME=BB-test CPULIST=x86 BB_ROOT=C:\Users\tester\AppData\Local\Temp\113726-2848-dqbb9v-BB-test VARIANTLIST=g 
      [INFO] :   Searching for 3 Titanium Modules
      [INFO] :   Found Titanium module id=ti.cloud version=latest platform=commonjs deploy-type=development
      [INFO] :   Bundling Titanium Mobile Module ti.cloud
      [Command] :C:\bbndk\bbndk-env.bat && blackberry-nativepackager.bat -package "C:\Users\tester\Desktop\Appcelerator_Studio\workspace\BB-test\build\blackberry\x86\o-g\BB-test.bar" bar-descriptor.xml -e "C:\Users\tester\Desktop\Appcelerator_Studio\workspace\BB-test\build\blackberry\x86\o-g\BB-test" "BB-test" -buildID 1 assets framework -devMode 
      Error: Command failed: 'C:\bbndk\bbndk-env.bat' is not recognized as an internal or external command,
      operable program or batch file.
      'C:\bbndk\bbndk-env.bat' is not recognized as an internal or external command,
      operable program or batch file.
      [Command] :C:\bbndk\bbndk-env.bat && blackberry-deploy.bat -installApp -launchApp -device 192.168.145.133 -package "C:\Users\tester\Desktop\Appcelerator_Studio\workspace\BB-test\build\blackberry\x86\o-g\BB-test.bar" 
      Error: Command failed: 'C:\bbndk\bbndk-env.bat' is not recognized as an internal or external command,
      operable program or batch file.
      'C:\bbndk\bbndk-env.bat' is not recognized as an internal or external command,
      operable program or batch file.
      Error: Command failed: 'C:\bbndk\bbndk-env.bat' is not recognized as an internal or external command,
      operable program or batch file.
      'C:\bbndk\bbndk-env.bat' is not recognized as an internal or external command,
      operable program or batch file.
      

      Expected Result:
      1. The build/run should happen successfully

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rmcmahon Russell McMahon
                Reporter:
                lokeshchdhry Lokesh Choudhary (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-17270
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration