CogDroid VMMaker issues

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

CogDroid VMMaker issues

Dimitry Golubovsky
 
Hi,

I have spotted this in the VM mailing list (I only read it via web
occasionally these days, so please cc me for faster response if there
is a problem, or file an issue in the squeakvm-tablet project).

Here are the instructions (still inexact, but someone followed them,
and succeeded).

# clone the repo

git clone https://git.gitorious.org/~golubovsky/cogvm/dmg-blessed.git

# go to the build scripts directory

cd <repo/root>/codegen-scripts

# create the base Pharo image

export SQUEAKVM=<path/to/precompiled/squeak/vm/executable>; sh
./buildImage.sh -headless

# make sure there is no PharoDebug.log in <repo/root>/build, and there
is generator.image (or there may be PharoDebug.log containing
unrelated warnings, e. g. about AbstractLauncher - use -nosound
instead of -headless if you would like to inspect the problem)

# generate the VM and plugins from VMMaker

sh ./generate.sh -headless StackEvtAndroidConfig

# build the native VM

cd <repo/root>/platforms/android/project

./ndk-build

This only builds the native VM. It is now librarified: to build actual
Android project, see under
<repo/root>/platforms/android/derived/generic - this should build an
actual apk

ant clean && ant debug   (reference to the native library is already
in project.properties)

PS Some time ago I requested access to Jenkins to allow me set up
Cogdroid build jobs - has there been any progress?

Thanks.

--
Dmitry Golubovsky

Anywhere on the Web
Reply | Threaded
Open this post in threaded view
|

Re: CogDroid VMMaker issues

Jeremy Kajikawa

What does "generator.image" contain?

and does anyone have a reference document or suggested location in
"the blue book" where I can find object formatting information?

On Thu, May 17, 2012 at 7:10 AM, Dmitry Golubovsky <[hidden email]> wrote:

>
> Hi,
>
> I have spotted this in the VM mailing list (I only read it via web
> occasionally these days, so please cc me for faster response if there
> is a problem, or file an issue in the squeakvm-tablet project).
>
> Here are the instructions (still inexact, but someone followed them,
> and succeeded).
>
> # clone the repo
>
> git clone https://git.gitorious.org/~golubovsky/cogvm/dmg-blessed.git
>
> # go to the build scripts directory
>
> cd <repo/root>/codegen-scripts
>
> # create the base Pharo image
>
> export SQUEAKVM=<path/to/precompiled/squeak/vm/executable>; sh
> ./buildImage.sh -headless
>
> # make sure there is no PharoDebug.log in <repo/root>/build, and there
> is generator.image (or there may be PharoDebug.log containing
> unrelated warnings, e. g. about AbstractLauncher - use -nosound
> instead of -headless if you would like to inspect the problem)
>
> # generate the VM and plugins from VMMaker
>
> sh ./generate.sh -headless StackEvtAndroidConfig
>
> # build the native VM
>
> cd <repo/root>/platforms/android/project
>
> ./ndk-build
>
> This only builds the native VM. It is now librarified: to build actual
> Android project, see under
> <repo/root>/platforms/android/derived/generic - this should build an
> actual apk
>
> ant clean && ant debug   (reference to the native library is already
> in project.properties)
>
> PS Some time ago I requested access to Jenkins to allow me set up
> Cogdroid build jobs - has there been any progress?
>
> Thanks.
>
> --
> Dmitry Golubovsky
>
> Anywhere on the Web
Reply | Threaded
Open this post in threaded view
|

Re: CogDroid VMMaker issues

Igor Stasenko
In reply to this post by Dimitry Golubovsky

On 16 May 2012 21:10, Dmitry Golubovsky <[hidden email]> wrote:

>
> Hi,
>
> I have spotted this in the VM mailing list (I only read it via web
> occasionally these days, so please cc me for faster response if there
> is a problem, or file an issue in the squeakvm-tablet project).
>
> Here are the instructions (still inexact, but someone followed them,
> and succeeded).
>
> # clone the repo
>
> git clone https://git.gitorious.org/~golubovsky/cogvm/dmg-blessed.git
>
> # go to the build scripts directory
>
> cd <repo/root>/codegen-scripts
>
> # create the base Pharo image
>
> export SQUEAKVM=<path/to/precompiled/squeak/vm/executable>; sh
> ./buildImage.sh -headless
>
> # make sure there is no PharoDebug.log in <repo/root>/build, and there
> is generator.image (or there may be PharoDebug.log containing
> unrelated warnings, e. g. about AbstractLauncher - use -nosound
> instead of -headless if you would like to inspect the problem)
>
> # generate the VM and plugins from VMMaker
>
> sh ./generate.sh -headless StackEvtAndroidConfig
>
> # build the native VM
>
> cd <repo/root>/platforms/android/project
>
> ./ndk-build
>
> This only builds the native VM. It is now librarified: to build actual
> Android project, see under
> <repo/root>/platforms/android/derived/generic - this should build an
> actual apk
>
> ant clean && ant debug   (reference to the native library is already
> in project.properties)
>
Dmirty, i added you as member to cog project on
http://code.google.com/p/cog/
please put this valuable information to wiki, for the good of us all :)

> PS Some time ago I requested access to Jenkins to allow me set up
> Cogdroid build jobs - has there been any progress?
>
i don't remember.
There is no problem with giving the account, looks like we just forgot.
I will discuss it with Christophe tomorrow.

> Thanks.
>
> --
> Dmitry Golubovsky
>
> Anywhere on the Web



--
Best regards,
Igor Stasenko.
Reply | Threaded
Open this post in threaded view
|

Re: CogDroid VMMaker issues

Phil B
In reply to this post by Dimitry Golubovsky

Dmitry,

The updated build instructions are greatly appreciated.  I had figured out enough to get a working vm, but these instructions make the process simpler than what I went through.  I'm working on a few modifications that might be of interest to other Android users when they're done... is email a good way to submit patches for review?  Also, are you looking to keep CogDroid running on as many versions of Android as possible or would 3.x+ specific (phone and tablet) mods be of interest?

Thanks,
Phil

On May 16, 2012, at 3:10 PM, Dmitry Golubovsky wrote:

>
> Hi,
>
> I have spotted this in the VM mailing list (I only read it via web
> occasionally these days, so please cc me for faster response if there
> is a problem, or file an issue in the squeakvm-tablet project).
>
> Here are the instructions (still inexact, but someone followed them,
> and succeeded).

Reply | Threaded
Open this post in threaded view
|

Re: CogDroid VMMaker issues

Hilaire Fernandes
 
DrGeo runs fine on from Android 1.x to 4.x series. So far, no
compatibility problem with cogdroid

Hilaire



On 17/05/2012 06:14, Phil (list) wrote:

>  
> Dmitry,
>
> The updated build instructions are greatly appreciated.  I had figured out enough to get a working vm, but these instructions make the process simpler than what I went through.  I'm working on a few modifications that might be of interest to other Android users when they're done... is email a good way to submit patches for review?  Also, are you looking to keep CogDroid running on as many versions of Android as possible or would 3.x+ specific (phone and tablet) mods be of interest?
>
> Thanks,
> Phil
>
> On May 16, 2012, at 3:10 PM, Dmitry Golubovsky wrote:
>
>>
>> Hi,
>>
>> I have spotted this in the VM mailing list (I only read it via web
>> occasionally these days, so please cc me for faster response if there
>> is a problem, or file an issue in the squeakvm-tablet project).
>>
>> Here are the instructions (still inexact, but someone followed them,
>> and succeeded).
>
>


--
Dr. Geo -- http://www.drgeo.eu

Reply | Threaded
Open this post in threaded view
|

Re: CogDroid VMMaker issues

Phil B

Hilaire,

My question was more related to adding features going forward.  There are some things I'm thinking of adding that to make CogDroid a better experience on 3.x+ devices but would break compatibility with 2.x and prior.  (I'm totally fine if the goal is maximum compatibility with older devices, I just need to know if I should be thinking about contributing mods that would do so or just maintain them for my needs)

Thanks,
Phil

On May 17, 2012, at 4:29 AM, Hilaire Fernandes wrote:

>
> DrGeo runs fine on from Android 1.x to 4.x series. So far, no
> compatibility problem with cogdroid
>
> Hilaire

Reply | Threaded
Open this post in threaded view
|

Re: CogDroid VMMaker issues

Dimitry Golubovsky
In reply to this post by Phil B

Phil,

On Thu, May 17, 2012 at 12:27 AM, Phil (list) <[hidden email]> wrote:

> The updated build instructions are greatly appreciated.  I had figured out
> enough to get a working vm, but these instructions make the process simpler
> than what I went through.  I'm working on a few modifications that might be

Great.

> of interest to other Android users when they're done... is email a good way
> to submit patches for review?  Also, are you looking to keep CogDroid

I think, just fork a repo on Gitorious and use pull request later to
submit changes.

> running on as many versions of Android as possible or would 3.x+ specific
> (phone and tablet) mods be of interest?

It can run (expected at least) on anything with API >= 4. I just do
not have any newer Android on hand to test. It will be of great
interest to have multitouch events (something I was requested, but
have no capability to test).

Also, widget-based derived VM instances would be also interesting: to
have them coexist on the home screen rather than to be fullscreen.

Thanks for your ideas.

--
Dmitry Golubovsky

Anywhere on the Web