Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 941

PeasyCam on Android

$
0
0

Hello

This is my first time to post, I am not sure if I put this in the right section of the form.

After 1 day of searching, reading, testing, finally, I got the Android mode up and running. I can successfully run some test sketch, most of them works perfect. However, when I try to run sketches with PeasyCam lib, the console is giving me errors, saying \ant\build.xml XXX has errors. I looked the build.xml file, the error lines read like this.

 <do-only-if-manifest-hasCode elseText="hasCode = false. Skipping...">
            <!-- only convert to dalvik bytecode is *not* a library -->
            <do-only-if-not-library elseText="Library project: do not convert bytecode..." >
                <!-- special case for instrumented builds: need to use no-locals and need
                     to pass in the emma jar. -->
                <if condition="${build.is.instrumented}">
                    <then>
                        <dex-helper nolocals="true">
                            <external-libs>
                                <fileset file="${emma.dir}/emma_device.jar" />
                            </external-libs>
                        </dex-helper>
                    </then>
                    <else>
                        <dex-helper />
                    </else>
                </if>
            </do-only-if-not-library>
        </do-only-if-manifest-hasCode>


  verbose="${verbose}">
                <path path="${out.dex.input.absolute.dir}"/>
                <path refid="out.dex.jar.input.ref" />
                <external-libs />

I am using Processing 3.2.3 Android SDK API 7.1.1 (25)

Here is the code I am running into problems when I try to run it on my Android device (physical device);

import peasy.*;
PeasyCam cam;

void setup () {
  size (800, 800, P3D);
  cam = new PeasyCam(this, 200);
}

void draw () {
  background(80);
  box(90);
}

Could someone possibily please help?


Viewing all articles
Browse latest Browse all 941

Trending Articles