Author Topic: Paul - Want to help, having problem  (Read 10981 times)

Offline zack

  • Developer
  • byte
  • *****
  • Posts: 36
    • View Profile
    • InfuseDreams
Paul - Want to help, having problem
« on: January 01, 2012, 12:32:47 PM »
Hey Paul. Let me introduce myself. My name is Zack and I have been developing in C/C++ for over 6 years. I have previous experience in Emulation projects, including Snes9X euphoria and daedalus x64.

I want to help with the mupen project. However, despite having programmed in Java before, i have not yet used the android SDK. I have set up my android sdk and set the required path variables but am having this compile error :


mupen64plus-SDL1.3/build.xml:49: taskdef class com.android.ant.SetupTask cannot be found
 using the classloader AntClassLoader[]


If you can help me get set up, I can send you some patches so you can validate my work and then maybe we can collaborate on this perhaps.

Please send me a pm, or email me and i can provide you with my skype handle etc

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3495
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Paul - Want to help, having problem
« Reply #1 on: January 01, 2012, 12:51:44 PM »
Welcome, glad to have you!  I've heard about this error from a couple other people before, although I've not had it myself.  Both causes involved problems with the sdk.dir path in local.properties, so that might be a good place to start looking.  The causes I've heard about are:

1) Developing on Windows, with home folder not in the normal location (for example, symbolic links set up to a network folder).  I don't use Windows myself, so I can't recall how to fix this (I'll see if google brings up anything useful if you think this sounds like a possible cause in your case).

2) Home folder has diacritics or non-standard letters (for example /home/ren?/).  I believe fixing this one just involves editing local.properties and replacing the diacritic letters with normal ones.  For example, change sdk.dir=/home/ren?/android-sdk-linux_x86 to sdk.dir=/home/rene/android-sdk-linux_x86.

Let me know if that doesn't help.  I can do a little googling to see if there are other causes for this error.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline zack

  • Developer
  • byte
  • *****
  • Posts: 36
    • View Profile
    • InfuseDreams
Re: Paul - Want to help, having problem
« Reply #2 on: January 01, 2012, 01:03:43 PM »
Hey Paul, thanks and thanks for the reply!

Right that got me one step closer. I am now receiving this (android compiling naivety on my part im sure)

mupen64plus-SDL1.3/build.xml:65:

Error. You are using an obsolete build.xml
You need to delete it and regenerate it using
   android update project
   

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3495
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Paul - Want to help, having problem
« Reply #3 on: January 01, 2012, 01:08:15 PM »
I think that means you have a different version of the SDK than I am using.  Anyway, to fix that, you can probably just run the android update project command from the command line:

Code: [Select]
android update project --name <project_name> --target <target_ID>
--path <path_to_your_project>

target is the "build target" for your application. It corresponds to an Android platform library (including any add-ons, such as Google APIs) that you would like to build your project against. To see a list of available targets and their corresponding IDs, execute: android list targets

path is the location of your project directory.

name is the name for the project. This is optional?if you're not changing the project name, you don't need this.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline zack

  • Developer
  • byte
  • *****
  • Posts: 36
    • View Profile
    • InfuseDreams
Re: Paul - Want to help, having problem
« Reply #4 on: January 01, 2012, 01:15:15 PM »
Thanks, the error seems to persist.

Here is the command i ran (i presume its  correct)

android update project --target 2 --path ../mupen64plus-SDL1.3


The output ...

Updated project.properties
Updated local.properties
----------
build.xml: Failed to find version-tag string. File must be updated.
In order to not erase potential customizations, the file will not be automatically regenerated.
If no changes have been made to the file, delete it manually and run the command again.
If you have made customizations to the build process, the file must be manually updated.
It is recommended to:
   * Copy current file to a safe location.
   * Delete original file.
   * Run command again to generate a new file.
   * Port customizations to the new file, by looking at the new rules file
     located at <SDK>/tools/ant/build.xml
   * Update file to contain
         version-tag: custom
     to prevent file from being rewritten automatically by the SDK tools.
----------
Updated file ../mupen64plus-SDL1.3/proguard.cf

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3495
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Paul - Want to help, having problem
« Reply #5 on: January 01, 2012, 01:16:49 PM »
Try deleting the build.xml file entirely, and using target 9 instead of 2.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline zack

  • Developer
  • byte
  • *****
  • Posts: 36
    • View Profile
    • InfuseDreams
Re: Paul - Want to help, having problem
« Reply #6 on: January 01, 2012, 01:21:53 PM »
Apparently I have only two targets.


id: 1 or "android-15"
     Name: Android 4.0.3
     Type: Platform
     API level: 15
     Revision: 1
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800
     ABIs : armeabi-v7a
----------
id: 2 or "Google Inc.:Google APIs:15"
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Revision: 1
     Description: Android + Google APIs
     Based on Android 4.0.3 (API level 15)
     Libraries:
      * com.google.android.media.effects (effects.jar)
          Collection of video effects
      * com.android.future.usb.accessory (usb.jar)
          API for USB Accessories
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: WVGA854, WQVGA400, WSVGA, WXGA720, HVGA, WQVGA432, WVGA800 (default), QVGA, WXGA800
     ABIs : armeabi-v7a

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3495
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Paul - Want to help, having problem
« Reply #7 on: January 01, 2012, 01:53:01 PM »
You seem to have only added ICS targets.  You need to be able to target android-9 (version 2.3, which is the target SDK version for this project).  And you're right the id for android-9 doesn't necessarily have to be 9 (sorry about that).

Anyway, you'll need to add more targets using the SDK Manager (you are probably already familiar with using it to add those targets you have on there now, unless the SDK shipped with them already added).  I'd recommend adding everything back to android-4 (version 1.6, which is the min SDK version for this project).
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline zack

  • Developer
  • byte
  • *****
  • Posts: 36
    • View Profile
    • InfuseDreams
Re: Paul - Want to help, having problem
« Reply #8 on: January 01, 2012, 02:01:42 PM »
Great :) I'm on it, i will report back!

Thanks for your assistance so far

Offline zack

  • Developer
  • byte
  • *****
  • Posts: 36
    • View Profile
    • InfuseDreams
Re: Paul - Want to help, having problem
« Reply #9 on: January 01, 2012, 03:58:50 PM »
Ok done all that.

I now have the following available targets :

Code: [Select]
Available Android targets:
----------
id: 1 or "android-3"
     Name: Android 1.5
     Type: Platform
     API level: 3
     Revision: 4
     Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P
     ABIs : armeabi
----------
id: 2 or "Google Inc.:Google APIs:3"
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Revision: 3
     Description: Android + Google APIs
     Based on Android 1.5 (API level 3)
     Libraries:
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: QVGA-P, HVGA-L, HVGA (default), QVGA-L, HVGA-P
     ABIs : armeabi
----------
id: 3 or "android-4"
     Name: Android 1.6
     Type: Platform
     API level: 4
     Revision: 3
     Skins: HVGA, QVGA, WVGA800 (default), WVGA854
     ABIs : armeabi
----------
id: 4 or "Google Inc.:Google APIs:4"
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Revision: 2
     Description: Android + Google APIs
     Based on Android 1.6 (API level 4)
     Libraries:
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: WVGA854, HVGA, WVGA800 (default), QVGA
     ABIs : armeabi
----------
id: 5 or "android-7"
     Name: Android 2.1
     Type: Platform
     API level: 7
     Revision: 3
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854
     ABIs : armeabi
----------
id: 6 or "Google Inc.:Google APIs:7"
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Revision: 1
     Description: Android + Google APIs
     Based on Android 2.1 (API level 7)
     Libraries:
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA
     ABIs : armeabi
----------
id: 7 or "android-8"
     Name: Android 2.2
     Type: Platform
     API level: 8
     Revision: 3
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854
     ABIs : armeabi
----------
id: 8 or "Google Inc.:Google APIs:8"
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Revision: 2
     Description: Android + Google APIs
     Based on Android 2.2 (API level 8)
     Libraries:
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA
     ABIs : armeabi
----------
id: 9 or "KYOCERA Corporation:DTS Add-On:8"
     Name: DTS Add-On
     Type: Add-On
     Vendor: KYOCERA Corporation
     Revision: 1
     Description: DTS Add-On
     Based on Android 2.2 (API level 8)
     Libraries:
      * com.kyocera.dualscreen (dualscreen.jar)
          Dual Screen optional platform library
     Skins: DTS400 (default), WVGA854, WQVGA400, HVGA, DTS800, WQVGA432, WVGA800, QVGA
     ABIs : armeabi
----------
id: 10 or "LGE:Real3D Add-On:8"
     Name: Real3D Add-On
     Type: Add-On
     Vendor: LGE
     Revision: 1
     Description: Real3D add-on
     Based on Android 2.2 (API level 8)
     Libraries:
      * com.lge.real3d (real3d.jar)
          Real3D library
     Skins: WVGA854, WQVGA400, Optimus3D (default), HVGA, WQVGA432, WVGA800, QVGA
     ABIs : armeabi
----------
id: 11 or "Samsung Electronics Co., Ltd.:GALAXY Tab Addon:8"
     Name: GALAXY Tab Addon
     Type: Add-On
     Vendor: Samsung Electronics Co., Ltd.
     Revision: 1
     Based on Android 2.2 (API level 8)
     Skins: WVGA854, WQVGA400, GALAXY Tab (default), HVGA, WQVGA432, WVGA800, QVGA
     ABIs : armeabi
----------
id: 12 or "android-10"
     Name: Android 2.3.3
     Type: Platform
     API level: 10
     Revision: 2
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854
     ABIs : armeabi
----------
id: 13 or "Google Inc.:Google APIs:10"
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Revision: 2
     Description: Android + Google APIs
     Based on Android 2.3.3 (API level 10)
     Libraries:
      * com.android.future.usb.accessory (usb.jar)
          API for USB Accessories
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA
     ABIs : armeabi
----------
id: 14 or "KYOCERA Corporation:DTS Add-On:10"
     Name: DTS Add-On
     Type: Add-On
     Vendor: KYOCERA Corporation
     Revision: 1
     Description: DTS Add-On
     Based on Android 2.3.3 (API level 10)
     Libraries:
      * com.kyocera.dualscreen (dualscreen.jar)
          Dual Screen optional platform library
     Skins: DTS400 (default), WVGA854, WQVGA400, HVGA, DTS800, WQVGA432, WVGA800, QVGA
     ABIs : armeabi
----------
id: 15 or "LGE:Real3D Add-On:10"
     Name: Real3D Add-On
     Type: Add-On
     Vendor: LGE
     Revision: 1
     Description: Real3D add-on
     Based on Android 2.3.3 (API level 10)
     Libraries:
      * com.lge.real3d (real3d.jar)
          Real3D library
     Skins: WVGA854, WQVGA400, Optimus3D (default), HVGA, WQVGA432, WVGA800, QVGA
     ABIs : armeabi
----------
id: 16 or "Sony Ericsson Mobile Communications AB:EDK 1.2:10"
     Name: EDK 1.2
     Type: Add-On
     Vendor: Sony Ericsson Mobile Communications AB
     Revision: 1
     Description: XPERIA Device
     Based on Android 2.3.3 (API level 10)
     Libraries:
      * com.sonyericsson.media.infinite.extension_1 (com.sonyericsson.media.infinite.extension_1.jar)
          Library for Android Market filtering
      * com.sonyericsson.eventstream_1 (com.sonyericsson.eventstream.jar)
          Library for Android Market filtering
      * com.sonyericsson.eventstream_2 (com.sonyericsson.eventstream.jar)
          Library for Android Market filtering
     Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800, QVGA, HVGA_XPERIA, WVGA_XPERIA (default)
     ABIs : armeabi
----------
id: 17 or "android-11"
     Name: Android 3.0
     Type: Platform
     API level: 11
     Revision: 2
     Skins: WXGA (default)
     ABIs : armeabi
----------
id: 18 or "Google Inc.:Google APIs:11"
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Revision: 1
     Description: Android + Google APIs
     Based on Android 3.0 (API level 11)
     Libraries:
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: WXGA (default)
     ABIs : armeabi
----------
id: 19 or "android-12"
     Name: Android 3.1
     Type: Platform
     API level: 12
     Revision: 3
     Skins: WXGA (default)
     ABIs : armeabi
----------
id: 20 or "Google Inc.:Google APIs:12"
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Revision: 1
     Description: Android + Google APIs
     Based on Android 3.1 (API level 12)
     Libraries:
      * com.android.future.usb.accessory (usb.jar)
          API for USB Accessories
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: WXGA (default)
     ABIs : armeabi
----------
id: 21 or "android-13"
     Name: Android 3.2
     Type: Platform
     API level: 13
     Revision: 1
     Skins: WXGA (default)
     ABIs : armeabi
----------
id: 22 or "Google Inc.:Google APIs:13"
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Revision: 1
     Description: Android + Google APIs
     Based on Android 3.2 (API level 13)
     Libraries:
      * com.android.future.usb.accessory (usb.jar)
          API for USB Accessories
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: WXGA (default)
     ABIs : armeabi
----------
id: 23 or "android-14"
     Name: Android 4.0
     Type: Platform
     API level: 14
     Revision: 3
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800
     ABIs : armeabi-v7a
----------
id: 24 or "Google Inc.:Google APIs:14"
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Revision: 2
     Description: Android + Google APIs
     Based on Android 4.0 (API level 14)
     Libraries:
      * com.android.future.usb.accessory (usb.jar)
          API for USB Accessories
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: WVGA854, WQVGA400, WSVGA, WXGA720, HVGA, WQVGA432, WVGA800 (default), QVGA, WXGA800
     ABIs : armeabi-v7a
----------
id: 25 or "android-15"
     Name: Android 4.0.3
     Type: Platform
     API level: 15
     Revision: 1
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800
     ABIs : armeabi-v7a
----------
id: 26 or "Google Inc.:Google APIs:15"
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Revision: 1
     Description: Android + Google APIs
     Based on Android 4.0.3 (API level 15)
     Libraries:
      * com.google.android.media.effects (effects.jar)
          Collection of video effects
      * com.android.future.usb.accessory (usb.jar)
          API for USB Accessories
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: WVGA854, WQVGA400, WSVGA, WXGA720, HVGA, WQVGA432, WVGA800 (default), QVGA, WXGA800
     ABIs : armeabi-v7a

I run :

Code: [Select]

android update project --target 12 --path ../mupen64plus-SDL1.3

Which outputs :

Code: [Select]
Updated project.properties
Updated local.properties
Updated file ../mupen64plus-SDL1.3/proguard.cfg
dannys-macbook:mupen64plus-SDL1.3 Danny$ ant debugBuildfile: /Users/Danny/mupen64plus-SDL1.3/build.xml

Which looks a lot better

I run

Code: [Select]
ant debug

Still not compiling (but closer than before) I get this output :

Code: [Select]
Buildfile: /Users/Danny/mupen64plus-SDL1.3/build.xml

-set-mode-check:

-set-debug-files:

-set-debug-mode:

-debug-obfuscation-check:

-setup:
     [echo] Gathering info for MainActivity...
    [setup] Android SDK Tools Revision 16

BUILD FAILED
/Users/Danny/androidsdk/tools/ant/build.xml:440: Unable to resolve target 'android-9'

Any more ideas? Must be close now :)

Sounds like perhaps the custom build.xml is being ignored by the overall android build file ?

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3495
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Paul - Want to help, having problem
« Reply #10 on: January 01, 2012, 04:18:06 PM »
It looks like you are still missing API level 9 from that list (target id 12 is api level 10 in your list).  You probably just missed it when you were adding targets through the SDK Manager.  If it is not available at all, then it is possible to change the target SDK version of course (I think there are a couple places that would need changing).  I'll figure out where those are after you check to make sure API level 9 is not available to add through the SDK Manager.

--EDIT-- It looks like the places where you would need to change are in AndroidManifest.xml, near the bottom where it says 'targetSdkVersion="9"' (you could just change that to "10").  The other place where it lists the target is in build.properties ('target=android-9' would be changed to 10).  I don't think that would break anything else, but I haven't tried it.  It would of course be preferable to leave the target as 9 if possible, but if it isn't available, then there isn't any way around it.
« Last Edit: January 01, 2012, 04:30:06 PM by Paul »
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline zack

  • Developer
  • byte
  • *****
  • Posts: 36
    • View Profile
    • InfuseDreams
Re: Paul - Want to help, having problem
« Reply #11 on: January 02, 2012, 10:22:49 AM »
I had to enable "show obsoleta packages", 9 showed up, installed...

I can now build :)

Thanks for all the help. When i am ready to submit changes to you, would you prefer publicly posting them in the forum, private message or email ?

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3495
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Paul - Want to help, having problem
« Reply #12 on: January 02, 2012, 11:48:05 AM »
Anyway you prefer.  I'll work on fixing the "RAM full of zeros" bug, and set up a git hub, which will make collaboration a lot easer.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline zack

  • Developer
  • byte
  • *****
  • Posts: 36
    • View Profile
    • InfuseDreams
Re: Paul - Want to help, having problem
« Reply #13 on: January 02, 2012, 12:55:45 PM »
Sure sounds good :)