Switch language

Default language

 
Random picture
gallery
 
   On 06/21/11 at 08h28 Quote      

Member

Group: Contributors

Sex:
Signed up since: 06/20/11
Messages: 11
Place: US
I've never compiled an Android Application and I'm trying to figure it out.

Anyone knows how to compile the Android Application or what command should I use?
Anything that can get me started is always welcome.

Thank you.

pm http://    
   On 06/22/11 at 01h23 Quote      

Member

Group: Contributors

Sex:
Signed up since: 06/20/11
Messages: 11
Place: US
I figured some stuff out but I'm having over 58 errors when I try to compile and that's because eclipse is looking for the files in the wrong folder.

This is what I do:

File > New > Project... > Android > Android Project > Click Next > Create Project From Existing Source

Project Name: Warmux
Location: D:\SourceCodes\Wormux\build\android

Build Target: Auto Selected (Sometimes 1.5 or 2.2

Application Name: Warmux
Package Name: org.warmux
Min SDK Version: 4

Click Finish.

While in Package Explorer...

Right click Warmux > Build Project

Here are the errors I encounter.

Hide:

Description Resource Path Location Type
R cannot be resolved to a variable DataDownloader.java /Warmux/src line 212 Java Problem
R cannot be resolved to a variable DataDownloader.java /Warmux/src line 250 Java Problem
R cannot be resolved to a variable DataDownloader.java /Warmux/src line 300 Java Problem
R cannot be resolved to a variable DataDownloader.java /Warmux/src line 309 Java Problem
R cannot be resolved to a variable DataDownloader.java /Warmux/src line 313 Java Problem
R cannot be resolved to a variable DataDownloader.java /Warmux/src line 318 Java Problem
R cannot be resolved to a variable DataDownloader.java /Warmux/src line 342 Java Problem
R cannot be resolved to a variable DataDownloader.java /Warmux/src line 358 Java Problem
R cannot be resolved to a variable DataDownloader.java /Warmux/src line 364 Java Problem
R cannot be resolved to a variable DataDownloader.java /Warmux/src line 383 Java Problem
R cannot be resolved to a variable DataDownloader.java /Warmux/src line 437 Java Problem
R cannot be resolved to a variable DataDownloader.java /Warmux/src line 445 Java Problem
R cannot be resolved to a variable DataDownloader.java /Warmux/src line 458 Java Problem
R cannot be resolved to a variable DataDownloader.java /Warmux/src line 464 Java Problem
R cannot be resolved to a variable DataDownloader.java /Warmux/src line 501 Java Problem
R cannot be resolved to a variable DataDownloader.java /Warmux/src line 504 Java Problem
R cannot be resolved to a variable MainActivity.java /Warmux/src line 63 Java Problem
R cannot be resolved to a variable MainActivity.java /Warmux/src line 90 Java Problem
R cannot be resolved to a variable MainActivity.java /Warmux/src line 92 Java Problem
R cannot be resolved to a variable MainActivity.java /Warmux/src line 146 Java Problem
R cannot be resolved to a variable MainActivity.java /Warmux/src line 292 Java Problem
R cannot be resolved to a variable MainActivity.java /Warmux/src line 394 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 331 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 355 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 357 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 360 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 607 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 608 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 609 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 611 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 645 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 653 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 677 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 685 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 1318 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 1319 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 1320 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 1323 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 1356 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 1357 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 1358 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 1359 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 1362 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 2022 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 2045 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 2064 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 2191 Java Problem
R cannot be resolved to a variable Settings.java /Warmux/src line 2195 Java Problem
The declared package "org.warmux" does not match the expected package "" Accelerometer.java /Warmux/src line 3 Java Problem
The declared package "org.warmux" does not match the expected package "" Audio.java /Warmux/src line 3 Java Problem
The declared package "org.warmux" does not match the expected package "" DataDownloader.java /Warmux/src line 3 Java Problem
The declared package "org.warmux" does not match the expected package "" GLSurfaceView_SDL.java /Warmux/src line 21 Java Problem
The declared package "org.warmux" does not match the expected package "" Globals.java /Warmux/src line 3 Java Problem
The declared package "org.warmux" does not match the expected package "" Keycodes.java /Warmux/src line 3 Java Problem
The declared package "org.warmux" does not match the expected package "" MainActivity.java /Warmux/src line 2 Java Problem
The declared package "org.warmux" does not match the expected package "" Settings.java /Warmux/src line 3 Java Problem
The declared package "org.warmux" does not match the expected package "" URLDownloader.java /Warmux/src line 1 Java Problem
The declared package "org.warmux" does not match the expected package "" Video.java /Warmux/src line 2 Java Problem


Please let me know how to fix this errors.

Thank you.

pm http://    
   On 06/22/11 at 07h52 Quote      

Administrator

Group: WarMUX Team

Signed up since: 09/16/09
Messages: 233
Place: France
I'm not using eclipse to develop or compile WarMUX, just plain ndk build system.

This means you'll need to install the Android SDK, the Android NDK, ant, and a minimal Cygwin install (make must also be installed iirc). Setup your cygwin env so that it has access to the SDK & NDK tools and also ant.

You need then to enter the build/android folder.

Then I don't remember exactly the initial command to somewhat import the project files for the ndk build system but it should be something like "adb update project -p ." or something.

The application is then built using such command-line as:
ndk-build NDK_TOOLCHAIN=arm-linux-androideabi-4.4.3 LOCAL_ARM_MODE=arm -j2
NDK_TOOLCHAIN and LOCAL_ARM_MODE are described in the ndk documentation, but are pretty well self-explanatory.

I know of 2 other people that went that way, one still reachable via irc. Another one did use eclipse, but he is developing for android regularly as a paid job.
____________________
Whenever reporting a problem, please report the following information:
  • Environment: Windows (XP/2000/Vista/Seven/...), Linux (Ubuntu Karmic/Mandriva/...), ...
  • Context of the game: network/local game, normal/blitz mode, what you were doing, ...
  • Frequency and reproducibility: crashes after 5 minutes of play, only after some action ...

pm http://www.wormux.org    
   On 06/22/11 at 20h07 Quote      

Member

Group: Contributors

Sex:
Signed up since: 06/20/11
Messages: 11
Place: US
I used the ant method to compile, sign and align, works great, I was hoping for a solution to use eclipse thought.

I use ant update project -path .

That creates 2 other files, some folders and then it updates the build.xml

I was checking out the src folder and there are a couple of java files, where exactly is the source code for the android app or should I just convert the jar files into class and then compile them again?



Edit by visaboy On 06/22/11 at 20h15

pm http://    
   On 06/22/11 at 21h11 Quote      

Member

Group: Contributors

Sex:
Signed up since: 06/20/11
Messages: 11
Place: US
Alright, I compiled the app, signed and aligned it. I transferred it to my android phone and I'm able to install the app without issues but when I go to the list of applications installed and click on the Warmux Icon I get an error.



I'm not really sure why this is happening, I installed the Warmux App from the market and it worked perfectly fine and I uninstalled it before installing the App I compiled myself.

Here is the "catlog"



If the Warmux App in the Android Market downloads the data after installing the app, how come it doesn't do it when I install it manually on my phone outside from the Android Market? Shouldn't it work the same way?

To my understanding the application can't find the data required to launch the game, but the download is not starting up by default like it is supposed to.

pm http://    

 |  |

1 User online :: 0 Administrator, 0 Moderator, 0 Member and 1 Visitor
User online: No member online
Answer
You aren't allowed to write in this category