28 Dec 2012 8:47 AM #1
Unanswered: Can't get it to work from the install
I have run "SenchaSDKTools-2.0.0-beta3-osx" and downloaded the SDK folders "sencha-touch-2.1.0-gpl"
I have a folder in my root folder named "sencha" which contains the tools app and the sdk folder.
I cd into the folder in terminal and run the "sencha" command and I get this error.
"[WARN] The current working directory (/Applications/MAMP/htdocs/sencha/sencha-touch-210) is not a recognized Sencha SDK or application folder. Running in backwards compatible mode."
Can someone help with this? I can't find any real info that I can comprehend. This is so frustrating.
30 Dec 2012 9:01 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
For Sencha Touch 2.1.0+ you should be using Sencha Cmd 3 as said in the blog: http://www.sencha.com/blog/introduci...-2-1-and-more/Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
30 Dec 2012 11:55 AM #3
Thanks Mitchell, the Getting Started Guide should be updated to reflect this. I was completely led astray by the documentation, not good.
I tried installing it and it seems to want to install the files in Users/jaymorgan/bin , that doesn't seem right. Does it need to go into the usr/bin directory?
14 Apr 2013 8:29 PM #4
I'm left in the same spot as jaymorgan - it's asking if I want to install in Users/lorkel/bin, but I'm using MAMP on a Mac so I thought it would go in Applications/MAMP/htdocs.
At this point in terminal I can run:
sencha generate app GS ../GS (note: Getting Started still lists the command as sencha app create MyApp ../MyApp which appears to be depreciated)
And it seems to run until it hits a "Unable to locate 'framework.dir' property from sencha.cfg // Please ensure this command was executed from a valid framework"
Am I using the wrong SDK in combination with the cmd? Please point me in the right direction - and update the documentation!
15 Apr 2013 5:00 AM #5
Is this of any help for you? http://senchatouchdev.com/wordpress/2013/03/04/sencha-touch-2-1-1-getting-started/
You need to make sure you execute the generate app command from the touch-2.1.1 directory you downloaded. You need sencha cmd 3+ for 2.1.1 and sencha cmd 3.1+ for 2.2. Note sencha cmd != sencha sdk tools. Those are the two most common gotchas!
I agree the getting started docs could do with an update for sure. Scares me to think how many potential developers for sencha touch might have been scared away by these issues.I blog about Sencha Touch at www.senchatouchdev.com
15 Apr 2013 5:41 AM #6
Thank you for the reply shepsii! I found the answer in the documentation here:
The link you posted sounds correct too, although it doesn't include needing a Java Run-Time Environment or Compass, which the documentation cites as requirements for Cmd to run. Even with the step by step instructions there was still a missing piece, restarting Terminal after installing Cmd so the "sencha" command will run. Super frustrating!
Anyway thank you for your reply!