appersonlabs / MakeTi

This repo is no longer supported and exists only for the sake of reference. Please use the new Titanium CLI
http://blog.mattapperson.com
186 stars 35 forks source link

Titanium SDK 1.8.1 not found #22

Closed nddery closed 12 years ago

nddery commented 12 years ago

Hi,

first, thank you so much for this, once I get it working, I'll be really pleased not to have to use TiStudio anymore!

When I run "make run", it tells me that it cannot find the Titanium SDK. Here is the output from the CLI (plus some directory listing - because it does make some directory)..

Nicolas@nddery-imac.local /Users/Nicolas/Sites/titanium/ti [master+] ->ls MakeTi.sublime-package Makefile bin MakeTi.tmbundle README.textile tiapp.xml

Nicolas@nddery-imac.local /Users/Nicolas/Sites/titanium/ti [master+] ->make run No platform selected... running as iphone. Building with Titanium... as PROJECT_ROOT='/Users/Nicolas/Sites/titanium/ti' DEVICE_TYPE= bash './/bin/titanium.sh' [DEBUG] Titanium not found... Testing another directory [DEBUG] Titanium found... [ERROR] Titanium SDK 1.8.1 not found... make: *\ [run] Error 1

Nicolas@nddery-imac.local /Users/Nicolas/Sites/titanium/ti [master+] ->ls MakeTi.sublime-package Makefile bin tiapp.xml MakeTi.tmbundle README.textile build

So it does create some folder but that's about it.. I have modified the Android SDK path in the make file to reflect to where it is.

Also, is there a way to auto-generate the tiapp.xml file or should I be manually adding it to my project each time ?

Finally, I was wondering if I should be using the generated "MakeTi" (after cloning the repo) folder and changing the name or put this folder inside my project folder. Currently I am using the MakeTi folder and changing the name.

Thanks a lot!

mattapperson commented 12 years ago

the contents of the MakeTi directory need to be placed in your project root

Also are you 100% sure you have Titanium installed in just one location?

nddery commented 12 years ago

Hi,

thank you for the fast reply!

I had TiDeveloper installed before but thought I had completely removed it.. Apparently not. I removed the Titanium folder in /Library/Application Support and the "make run" now works!

Only one small problem now, when trying to run the Android emulator (make clean && make run platform=android), here is what I get:

[ERROR] Could not find a running emulator. [ERROR] Run this command in a separate terminal session: ~/Android/tools/emulator-arm -avd 10

I've set the path to my Android SDK in the "Makefile" file to point to "/Android/android-sdk-mac-x86".

I've look around "/bin/titanium.sh" and changed the ANDROID_SDK_PATH to reflect the good location and it works, I don't know if there's a way to have this changed in only one location ?

Thanks a lot,

Nicolas

mattapperson commented 12 years ago

So basically that error message needs to be changed.

MakeTi does not currently launch an emulator... so you have to do do manually.

nddery commented 12 years ago

Cool! Thanks a lot, this is great!