Start a new topic

Android Module build fails.

Android Module build fails.


Hello, i'm trying to build the Android Module, but it fails.

This is the log:

Buildfile: /Users/Migue/Downloads/Wikitude_Titanium_Android_beta/build.xml
python.set.exec:
python.check:
     Testing for Python
     Python 2.7.2
init:
    Created dir: /Users/Migue/Downloads/Wikitude_Titanium_Android_beta/build/classes
    Created dir: /Users/Migue/Downloads/Wikitude_Titanium_Android_beta/build/generated
process.annotations:
    Created dir: /Users/Migue/Downloads/Wikitude_Titanium_Android_beta/build/generated/json
    Compiling 5 source files to /Users/Migue/Downloads/Wikitude_Titanium_Android_beta/build/classes
    /Users/Migue/Downloads/Wikitude_Titanium_Android_beta/src/com/wikitude/ti/VuforiaServiceImplementation.java:5: package com.qualcomm.QCAR does not exist
    import com.qualcomm.QCAR.QCAR;
                             ^
    Note: Running Kroll binding generator.
    Note: No binding data found, creating new data file: org.appcelerator.titanium.bindings/wikitudeand.json
    Note: Found binding for proxy WikitudeView
    Note: Found binding for module Wikitudeand
    Note: Generating JSON: /Users/Migue/Downloads/Wikitude_Titanium_Android_beta/build/generated/json/org/appcelerator/titanium/bindings/wikitudeand.json
    warning: The following options were not recognized by any processor: ''
    /Users/Migue/Downloads/Wikitude_Titanium_Android_beta/src/com/wikitude/ti/VuforiaServiceImplementation.java:5: package com.qualcomm.QCAR does not exist
    import com.qualcomm.QCAR.QCAR;
                             ^
    /Users/Migue/Downloads/Wikitude_Titanium_Android_beta/src/com/wikitude/ti/VuforiaServiceImplementation.java:28: cannot find symbol
    symbol  : variable QCAR
    location: class com.wikitude.ti.VuforiaServiceImplementation
            QCAR.deinit();
            ^
    /Users/Migue/Downloads/Wikitude_Titanium_Android_beta/src/com/wikitude/ti/VuforiaServiceImplementation.java:33: cannot find symbol
    symbol  : variable QCAR
    location: class com.wikitude.ti.VuforiaServiceImplementation
            return QCAR.init();
                   ^
    /Users/Migue/Downloads/Wikitude_Titanium_Android_beta/src/com/wikitude/ti/VuforiaServiceImplementation.java:38: cannot find symbol
    symbol  : variable QCAR
    location: class com.wikitude.ti.VuforiaServiceImplementation
            QCAR.onPause();
            ^
    /Users/Migue/Downloads/Wikitude_Titanium_Android_beta/src/com/wikitude/ti/VuforiaServiceImplementation.java:43: cannot find symbol
    symbol  : variable QCAR
    location: class com.wikitude.ti.VuforiaServiceImplementation
            QCAR.onResume();
            ^
    /Users/Migue/Downloads/Wikitude_Titanium_Android_beta/src/com/wikitude/ti/VuforiaServiceImplementation.java:48: cannot find symbol
    symbol  : variable QCAR
    location: class com.wikitude.ti.VuforiaServiceImplementation
            QCAR.onSurfaceChanged(width, height);
            ^
    /Users/Migue/Downloads/Wikitude_Titanium_Android_beta/src/com/wikitude/ti/VuforiaServiceImplementation.java:53: cannot find symbol
    symbol  : variable QCAR
    location: class com.wikitude.ti.VuforiaServiceImplementation
            QCAR.onSurfaceCreated();
            ^
    /Users/Migue/Downloads/Wikitude_Titanium_Android_beta/src/com/wikitude/ti/VuforiaServiceImplementation.java:58: cannot find symbol
    symbol  : variable QCAR
    location: class com.wikitude.ti.VuforiaServiceImplementation
            QCAR.setInitParameters(activity, nFlags);
            ^
    Note: /Users/Migue/Downloads/Wikitude_Titanium_Android_beta/src/com/wikitude/ti/WikitudeViewProxy.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    8 errors

BUILD FAILED
/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/module/android/build.xml:166: Compile failed; see the compiler error output for details.

 

-----

It seems than com.qualcomm.QCAR does not exist, but I can't find this package al the SDK. Where is it? 

 

Any help? Thanks.

Great! I'll try it!

Thanks.
 

Hi Miguel!

Thanks for your interest in closed beta of the Titanium module

You need to adjust the Java Build path to import the required libs properly. In Titanium Studio right click Module project and adjust the Java Build path according to the screenshots below. Of course adapted to your local environment.


Upfront please ensure


you installed Java Development Tools as described in the Titanium documentation

download the latest Wikitude SDK

download the latest version of Vuforia SDK (if ImageRecognition is part of your project)

paste the required files in module's lib(s)-folder.


 

To display markers in your vicinity you need to adjust the latitude and longitude values


in the module's assetfolder (assets/ar/geo.html)

testproject's MainWindow.js (WikitudeTestApp/Resources/ui/windows/)


Just use latitude/longitude values near you

 

Quite complex at this stage, but we'll work on an easier way in the release candidate.

Hope that helps.

Kind regards,
Andi

A bit complicated to repeat this procedure, still at the end of the day in made it work following the tips from wikitude and here.

thanks

Login or Signup to post a comment