Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

scons compile options for Android

Does anyone know the correct compilation options for scons to compile the android source?
Much appreciated.

— asked March 17th 2010 by Gregor Munro
  • andriod
  • compile
  • scons
0 Comments

2 Answers

  • scons android=1 should just build the android sdk

    scons iphone=1 should just build the iphone sdk

    — answered March 17th 2010 by Kosso
    permalink
    0 Comments
  • Thanks I thought that was right. I must have a different problem then. I think it is telling me that if cant find the Titanium.jar file.

    scons: Reading SConscript files ...
    java -cp buildlibant-launcher.jar:buildlibant.jar:buildlibxercesImpl.jar:buildlibxml-apis.jar:buildlibant-nodeps.jar org.
    pache.tools.ant.launch.Launcher -Dant.home=build -Dbuild.version=1.1.0 -Dandroid.sdk=C:android-sdk -Dandroid.platform=C:android-s
    kplatformsandroid-1.6 -Dgoogle.apis=C:android-sdkadd-onsgoogle_apis-4_r02
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher
    Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
    Could not find the main class: org.apache.tools.ant.launch.Launcher.  Program will exit.
    scons: done reading SConscript files.
    scons: Building targets ...
    package_sdk(["dummy-sdk-target"], [])
    Packaging MobileSDK (1.1.0)...
    scons: *** [dummy-sdk-target] C:/Users/appc/titanium_mobile/dist/android/titanium.jar: The system cannot find the path specified
    scons: building terminated because of errors.
    
    — answered March 17th 2010 by Gregor Munro
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.