Help compiling

Subforum for discussion and help with ScummVM's Android port

Moderator: ScummVM Team

Post Reply
mac_es
Posts: 145
Joined: Mon Oct 31, 2005 9:37 am

Help compiling

Post by mac_es »

Hi,

I'm trying to compile the port. I can already compile for windows, windows CE and PS2.

My setup is: MSYS+mingw in Windows 7.

I run the configure script and then 'make'

After modifying the android.mk file for the javac line syntax I got stucked in the dx stage:

Code: Select all

UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dx.util.ExceptionWithContext
        at com.android.dx.util.ExceptionWithContext.withContext(ExceptionWithContext.java:46)
        at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:344)
        at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:134)
        at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:87)
        at com.android.dx.command.dexer.Main.processClass(Main.java:483)
        at com.android.dx.command.dexer.Main.processFileBytes(Main.java:455)
        at com.android.dx.command.dexer.Main.access$400(Main.java:67)
        at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:394)
        at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:135)
        at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:191)
        at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:123)
        at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:191)
        at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:123)
        at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:191)
        at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:123)
        at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:191)
        at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:123)
        at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
        at com.android.dx.command.dexer.Main.processOne(Main.java:418)
        at com.android.dx.command.dexer.Main.processAllFiles(Main.java:329)
        at com.android.dx.command.dexer.Main.run(Main.java:206)
        at com.android.dx.command.dexer.Main.main(Main.java:174)
        at com.android.dx.command.Main.main(Main.java:95)
Caused by: java.lang.NullPointerException
        at com.android.dx.cf.code.ConcreteMethod.<init>&#40;ConcreteMethod.java&#58;87&#41;
        at com.android.dx.cf.code.ConcreteMethod.<init>&#40;ConcreteMethod.java&#58;75&#41;
        at com.android.dx.dex.cf.CfTranslator.processMethods&#40;CfTranslator.java&#58;247&#41;
        ... 21 more
...while processing <init> &#40;Lorg/scummvm/scummvm/Unpacker;&#41;V
...while processing org/scummvm/scummvm/Unpacker$1.class

1 error; aborting
make&#58; *** &#91;build.tmp/classes.dex&#93; Error 1
Any help?

cheers
fuzzie
ScummVM Developer
Posts: 178
Joined: Mon May 24, 2010 3:02 pm

Re: Help compiling

Post by fuzzie »

mac_es wrote:Any help?

cheers
At a guess: Maybe you're using the Java 7 SDK? If so, the Android tools don't work with it. If not, any more details about your environment?
mac_es
Posts: 145
Joined: Mon Oct 31, 2005 9:37 am

Post by mac_es »

Thanks for the reply...

Exactly! I have switched to jdk 1.6 and I got the apk!


Great!
Post Reply