Site Navigation
My Social Web

Entries in Dissertation (3)

Friday
Jan062012

How to compile the Qualcomm Augmented Reality Samples

While Qualcomm do offer some instructions on how to compile their samples for the Augmented Reality SDK I find them to be a little too concise. I'd written this How To as reference for myself because I kept forgetting at least one step every time and it seemed a shame to confine it to myself. This was written for version 106 of QCAR with Eclipse Indigo on the Mac with OSX Lion. You'll also need Xcode installed to build with GNU Make and an Android device thats happy with apps for 2.1 also known as API level 7.


  1. Hopefully you have everything installed correctly. To make things easier I recommend you use the same folder structure that I do. I have Eclipse installed as standard. The Android SDK, Android NDK, and the QCAR SDK installed inside the Eclipse folder to keep everything tidy and to a certain extent portable.
    If your getting an error at any stage read your file locations VERY CAREFULLY if your install differs from mine you will have to change them and I imagine this is where most people will run into issues.

  2. Navigate to where you've installed the Qualcomm SDK (QCAR) in the terminal

  3. Then run the relevant ndk-build for your operating system. On the Mac I use:
    /Applications/eclipse/android-ndk-r7/ndk-build


    If you get the error:
    "ERROR: Cannot find 'make' program. Please install Cygwin make package or define the GNUMAKE variable to point to it.
    "
    It's likely you didn't follow my earlier advice and install Xcode or your equivalent GNU make utility.

  4. Now head over to Eclipse and create a new Android Project, select the "From Existing Source" radio button and select the root of the folder of the sample you want to compile.
    I'm doing the Dominoes one:

  5. Click next and you'll be given the following options:

    Make sure to select Android 2.1 (At the present time it works best).


  6. If you selected the the existing source correctly the next interface should be populated automatically like so:

  7. Click finish and that's the wizzard done.

Now for some reason running the newly created app doesn't always work. If you get the error:
Unbound classpath variable: 'QCAR_SDK_ROOT/build/java/QCAR/QCAR.jar' I can help you.


  1. Get to the project properties by right clicking on the top level folder in your Package Explorer and click on Properties right at the bottom of the menu.

  2. Select Java Build Path on the left and then the offending QCAR_SK_ROOT build path then edit to fix the problem.

  3. Now click Variable

  4. Remove the current QCAR class path

  5. Create a new one and call it "QCAR"

  6. Click file and browse to where you installed the QCAR SDK. QCAR.java is located in Build->Java->QCAR

  7. Click OK and then OK again

  8. Now type QCAR into the text field like so:

    It seems that by default the Qualcomm SDK creates the path wrong at this stage in the process.

  9. Then Click OK and OK again

  10. Enjoy


I'll do my best to answer any questions but hopefully this will work for you like it did for me.

Saturday
Sep102011

Dissertation

I've managed to decide what I'm going to do for my dissertation project this year.

With Professor Ruth Aylett I'm going to do an Augmented Reality game of battleships on Android.

Currently it will work like this:

  • Players stand at opposite ends of the same clear table
  • Markers at the corners of the table show the app where the playable area is
  • The players point their phone cameras at the table and each is shown their own grid and can place their ships on it as they wish
  • The players take it in turns to guess the location of each others battleships with 3D models shown to be "floating" on the table
  • When a player hits an opponent's ship the 3D model will be shown to "sink" into the table

I chose the project because I felt It was a good way to gain a wide skill base as it involves:

  • Android programming
  • Augmented reality
  • Networking (over bluetooth or Wifi perhaps)
  • 3D Modelling
  • AI for the computer player

I have a friend working on a dissertation which uses the Microsoft Kinnect camera and Open Scene graph, It might be possible for us to work together and get a PC version working.

The project might be scaled back or changed as I progress as there are still a few decisions to be made.

 

Friday
Aug262011

The next few months

I've had to make a few decisions lately so I thought I'd write about them here.

I've picked my modules for my 4th and final year at Heriot Watt.

For semester 1 I've picked:

The fourth module is for my dissertation which I'll be deciding in the next few weeks.

In semester 2 I'm going to do:

E-Commerce Technology and Computer Games Programming with two modules for my dissertation.

 

I'm looking forward to getting back into it!