Hi,

Im trying to build mono for the Nokia 770 2006 software edition (its
just come out in beta).

I know that Mono has been compiled for this device under the old OS.

Im using scratchbox as my cross compile environment.

Im using mono-1.1.15, but ive tried the stable release as well.

--- ATTEMPT 1 - BUILD MONO DIRECTLY IN SCRATCHBOX USING  ./configure && make

If it build it (in scratchbox) with the i386 as the target, it builds
OK, but when I switch to Arm target, I get a compile error:

make[3]: Entering directory `/gold/projects/maemo/mono/mono-1.1.15/mcs'
make profile-do--default--all profile-do--net_2_0--all
make[4]: Entering directory `/gold/projects/maemo/mono/mono-1.1.15/mcs'
make PROFILE=basic all
make[5]: Entering directory `/gold/projects/maemo/mono/mono-1.1.15/mcs'
mono[7777]: GLIB WARNING ** default - _wapi_shm_semaphores_init:
semctl init error: Numerical result out of range - trying again
mono[7777]: GLIB WARNING ** default - _wapi_shm_semaphores_init:
semctl init error: Numerical result out of range - trying again

This loops around (i assume) for ever.

Im not sure if its my configure options - im building on a i386 PC.
Ive tired
./configure --target=arm-linux-linux

and

--host=arm-linux-linux --build=arm-linux-linux --target=arm-linux-linux

but its the same.

Im unsure as to exactly what the 3 options are. configure --help gives me

--build=BUILD     configure for building on BUILD [guessed]
--host=HOST       cross-compile to build programs to run on HOST [BUILD]
--target=TARGET   configure for building compilers for TARGET [HOST]

so Im guessing that --build is the machine on which im building mono,
but im not sure exactly what I should be putting for the others.

Is 7777 and error code, or a line number>?

any clues? I am a bit of an amateur when it comes to c and makefiles /
autoconf etc (im a c# / delphi programmer).

--- ATTEMPT 2 - USING A MONO DEVKIT FOR SCRATCHBOX I FOUND USING GOOGLE

More recently, I found a 'mono devkit' for Scratchbox at

http://www.bat.org/~tomba/sb-mono-devkit.tar.gz

along with some instructions by someone called Tomi (which I copied to
my wiki at
http://wiki.ripnet.co.uk/index.php/Tech_Notes_For_Mono_on_Nokia_770
)

Im trying to work this through, but am hitting problems again.

I switched to host, but when I try to build the devkit, it tries to
download the mono source from the www.scratchbox.org site, which no
longer seems to host the file called something like
mono-1.13...tar.gz.
Ive looked at the scratchbox.org directory listing, and there are no
versions of mono in the scratchbox files site.
I got round that by modifying the dev kit build script to point to my
own web site, on which I hosted the required mono file.
Next it wanted bc, which it also tried to download from the
scratchbox.org site, and wasnt there.
At that point, I decided to ask the mailing list, as obviously im
doing something very wrong...
Is a devkit still needed for building mono?

im confused, as I thought that qemu was providing cpu transparency
(which ive proved does work with a ARM hello world program). I was
expecting to be able to just build mono under the ARM target as easily
as the 386 target.

It seems that the mono compile is building mcs.exe and trying to use
that to compile the c# class library, and its the calling of mono to
run mcs.exe that is causing the error above.
Is it that the qemu cpu transparency is not 100% there yet? is that
why we need a devkit?

help :) im dying to run mono on my 770, and dont really want to
downgrade back to the old OS (for which a compiled mono binary
exists).

thanks in advance for any insight.

George
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to