2. Compile and execute ImageTargats sample app
Sample has NDK and SDK coding, so normally I compile NDK from terminal and SDK using eclipse
Step 1: Open Terminal & go to <vuforia_sdk>/sample/ImageTargats-2-6-7/,
Step 2: Execute “ndk-build” to compile NDK code, make sure you have environment variable which point to Android NDK directory otherwise terminal will give you “comment not found” error
Step 3: Open eclipse and import ImageTargats-2-6-7 project
Step 4: Set class path variable in eclipse
- In Eclipse, go to Window->Preferences.
- Navigate to Java->Build Path->Classpath Variables using the hierarchy browser.
- Create a new variable by selecting New…
- Add: QCAR_SDK_ROOT into the Name: field, and navigate using Folder… to the vuforia-sdk-android-xx-yy-zz directory
Step 5: Right click on “ImageTargats” project -> select run -> Android Application
Step 6: Take Print of target image: https://developer.vuforia.com/sites/default/files/sample-apps/targets/imagetargets_targets.pdf
Step 7: Open ImageTargets Android application in device and place device in front of printed target image, you will see nice 3d teapot
No comments:
Post a Comment