At first we need to set up Titanium:
The main parts are installed using the node.js package manager 'npm'. Check https://nodejs.org/ if you need to install it.
If you are using Fedora 23 you can run the following commands to get the needed libraries:
# install tools and libraries needed for android sdk dnf install nodejs npm git gcc glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686 # intall npm version 4.2.2 npm install -g npm npm install n -g n 4.2.2 # install cli tools npm install -g titanium alloy appcelerator tisdk
echo " PATH=$PATH:$HOME/.local/bin:$HOME/android-sdk-linux/tools:$HOME/android-sdk-linux/platform-tools:/usr/java/latest/bin" echo " export ANDROID_SDK=$HOME/android-sdk-linux" echo " export JAVA_HOME=/usr/java/latest" echo "export PATH"
TODO: install node/npm on Windows / OSX
Open a console and run the following command to install the tools:
npm install -g titanium alloy tisdk
After that we need to install the SDK. To do this we will the cli tool tisdk from David Bankier (https://github.com/dbankier/tisdk):
# list available titanium sdks tisdk list
The output will be something like this
4.1.0.GA
4.1.0.Beta
4.0.0.RC5
4.0.0.RC4
4.0.0.RC3
4.0.0.RC2
4.0.0.RC
4.0.0.GA
...
From this list we select the latest GA (4.1.0) and install it
tisdk install 4.1.0.GA
with this command you can check if titanium found the sdk:
ti sdk list
and with
ti info
you can see if something is missing (How to install JDK and the Android SDK will follow)
You are ready to create titanium/alloy projects now and compile them! Time to set up the editor
The newest SDK is not available as a binary with tisdk. You have to compile it with:
tisdk build 5.0.0.GA
For more information, visit https://github.com/dbankier/tisdk and have a look at "Manual builds"
other methodssource: https://github.com/m1ga/titanium_with_atom#installing-appcelerator-titanium