Import the ScummVM source code to Eclipse developer tool

Subforum for discussion and help with ScummVM's Android port

Moderator: ScummVM Team

Post Reply
User avatar
arieljce
Posts: 7
Joined: Sat Jan 08, 2011 2:48 pm

Import the ScummVM source code to Eclipse developer tool

Post by arieljce »

Hi,
Can someone please explain to me how can i import the ScummVM
source code to the Eclipse developer enviorment tool ???
-A
User avatar
sev
ScummVM Lead
Posts: 2304
Joined: Wed Sep 21, 2005 1:06 pm
Contact:

Post by sev »

Nobody ever did that, so you will have to start from the scratch.

But may I ask you, what's the point?


Eugene
User avatar
arieljce
Posts: 7
Joined: Sat Jan 08, 2011 2:48 pm

Post by arieljce »

I'm looking for a developer environment that will contain a step by step debug options,
for any future change in the source code (like the AVD / ADT) plugins that existing in Eclipse,
and also a place that will show clearly syntax or compilation bugs / errors.
Recently I came across the following blog:http://www.ibm.com/developerworks/aix/l ... index.html.
I am looking for something specific, like a step by step tutorial.
-A
User avatar
tsoliman
ScummVM Developer
Posts: 404
Joined: Wed Jan 19, 2011 3:47 pm
Location: USA

EclipseCDT is bad

Post by tsoliman »

I was using EclipseCDT for ScummVM development and while the debugger is decent (it is a frontend to gdb), the compile errors are as obscure as ever. Eclipse just parses out the line numbers that have the errors and highlights them in the code.

If you are expecting the experience you get with eclipse that you get when developing java with eclipse, look elsewhere. EclipseCDT is horrible and has all the disadvantages of eclipse with none of the advantages.
User avatar
arieljce
Posts: 7
Joined: Sat Jan 08, 2011 2:48 pm

Step by step tutorial for decent develop environment

Post by arieljce »

OK,
so someone please will give me a mini tutorial to create a decent develop environment
-A
User avatar
tsoliman
ScummVM Developer
Posts: 404
Joined: Wed Jan 19, 2011 3:47 pm
Location: USA

Post by tsoliman »

What platform are you developing on?
User avatar
arieljce
Posts: 7
Joined: Sat Jan 08, 2011 2:48 pm

Post by arieljce »

I have both OS (Win 7, Ubuntu last version).
Which one is easier to work with?
I prefer Win 7 or the easier one to work with.
-A
P.S
if you could give me both OS tutorial it will be perfect.
thanks a lot.
User avatar
tsoliman
ScummVM Developer
Posts: 404
Joined: Wed Jan 19, 2011 3:47 pm
Location: USA

Post by tsoliman »

http://wiki.scummvm.org/index.php/Compi ... ual_Studio

Here is the generic "How to compile ScummVM"
http://wiki.scummvm.org/index.php/Compiling_ScummVM

It is kind of assumed that you're familiar with C++.
User avatar
LordHoto
ScummVM Developer
Posts: 1029
Joined: Sun Oct 30, 2005 3:58 pm
Location: Germany

Post by LordHoto »

tsoliman wrote:http://wiki.scummvm.org/index.php/Compi ... ual_Studio

Here is the generic "How to compile ScummVM"
http://wiki.scummvm.org/index.php/Compiling_ScummVM

It is kind of assumed that you're familiar with C++.
Since this is in the Android sub-forum I am not sure whether Visual Studio is really the best idea. I don't think one can easily setup Visual Studio to compile ScummVM for Android.
User avatar
arieljce
Posts: 7
Joined: Sat Jan 08, 2011 2:48 pm

Android development environment

Post by arieljce »

Can you explain to me how these development environments are relevance for develop to Android environment?
I mean (my wish is) to get the final product (ScummVM emulator as an apk file) as an android application.

What is the preferred development environment?
and how to create it?
User avatar
TomFrost
Posts: 178
Joined: Mon Apr 23, 2007 4:53 pm

Post by TomFrost »

You can do that with a terminal window and any basic text editor. Get that rolling first, then move to whatever you prefer using for development.
User avatar
md5
ScummVM Developer
Posts: 2250
Joined: Thu Nov 03, 2005 9:31 pm
Location: Athens, Greece

Post by md5 »

How about Code::Blocks?
http://www.codeblocks.org/

Our create_project tool supports the creation of Code::Blocks projects (though Code::Blocks can import MSVC projects). Try that, since it supports gcc as a compiler, it should theoretically work with Android (though I haven't tried it myself).

Dev-CPP is another option:
http://www.bloodshed.net/dev/devcpp.html
User avatar
arieljce
Posts: 7
Joined: Sat Jan 08, 2011 2:48 pm

How to develop the source code

Post by arieljce »

There is a way to integrate Java & C++ ?
like JNI (Java Native Interface) to create an apk app for Android ?
User avatar
TomFrost
Posts: 178
Joined: Mon Apr 23, 2007 4:53 pm

Post by TomFrost »

The Android SDK is Java, the NDK is C/C++. The Android app structure is modular so that you can use both in the same program. As such, there's a very (very) small part of ScummVM for Android that is Java, but the rest is the same C++ backed by the NDK.
Post Reply