7 May 2012 9:32 PM #1
Linux: Cannot build with SenchaSDKTools-2.0.0-beta3
I have installed SenchaSDKTools-2.0.0-beta3 on Linux Mint 12 (it's basically Ubuntu 12.04) and I can successfully run most SDK functions. However I cannot build anything. Unfortunately I do not get any descriptive error message either. I have tried swapping out different Java JDKs to see if that helped (it didn't).
This same app builds correctly with the same SDK version on a Mac OSX. You can get the app from github and try it yourself: https://github.com/gregrobbins/ldg-sencha (if you do download it, you have to create an empty resources/images directory. Git ignores empty directories).
Here's the output:
greg:ldg-sencha/ (master) $ sencha app build production /home/greg/dev/ldg-build /home/greg/dev/ldg-sencha [7:06:08] [INFO] Deploying your application to /home/greg/dev/ldg-build [INFO] Copied sdk/sencha-touch.js [INFO] Copied app.js [INFO] Copied resources/css/app.css [INFO] Copied resources/images [INFO] Copied resources/icons [INFO] Copied resources/loading [INFO] Resolving your application dependencies... [ERROR]
7 May 2012 10:48 PM #2
I was able to build the application after upgrading my app to the 2.0.1 sdk. (It had been done using 2.0.0.)
To do so, I went to my downloaded 2.0.1 sdk directory and ran:
sencha app upgrade ~/dev/ldg-sencha
Hope this helps someone!
6 Jun 2012 5:55 AM #3
Error: Unable to access jarfile /opt/SenchaSDKTools-2.0.0-beta3
@gregrobbins, perfect worked like a charm.
I also had to solve the userrights to complete the building.
[INFO] Generated app.json [ERROR] Error: Command failed: Error: Unable to access jarfile /opt/SenchaSDKTools-2.0.0-beta3/bin/closurecompiler.jar [ERROR] Error: Unable to access jarfile /opt/SenchaSDKTools-2.0.0-beta3/bin/closurecompiler.jar
sudo chmod 755 -R /opt/SenchaSDKTools-2.0.0-beta3/bin/*.jar #check: ls -ltr /opt/SenchaSDKTools-2.0.0-beta3/bin/
8 Jul 2012 8:09 PM #4
Thanks gregrobbins, this helped me!
Wish sencha would add some more verbose error messages as "[Error]" is not very helpful at all.