maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Mono 2.4.3 on Maemo (https://talk.maemo.org/showthread.php?t=47400)

mk8 2010-03-15 08:15

Mono 2.4.3 on Maemo
 
After long long time I find some freetime to spend to update mono for maemo devices. After a lots of work, at the end I able to compile mono 2.4.3 for the maemo devices. Here you can find the instruction to compile mono for maemo. This instruction are refered by Maemo5 but work also on maemo4 and maemo4.1. I test it only on maemo4.1 device (I have N810 device but unfortunally not a N900 one). Here a the output of "mono --version" from a terminal:

Quote:

Nokia-N810-23-14:~# mono --version
Mono JIT compiler version 2.4.3 (tarball Sat Feb 27 22:09:03 CET 2010)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
TLS: normal
GC: Included Boehm (with typed GC)
SIGSEGV: normal
Notifications: epoll
Architecture: armel,soft-float
Disabled: debug,large_code,logging,com


Texrat 2010-03-15 08:19

Re: Mono 2.4.3 on Maemo
 
Great to hear! Now, can Qt work with this?

mk8 2010-03-15 08:32

Re: Mono 2.4.3 on Maemo
 
I not test it jet, but works with GTK# and Winform even if the winform application are not hildonized at the moment.

About the WinForm I'm making some test

About the GTK# you can try this application

http://code.google.com/p/monkeysmemory-n800/

that was developed a lots of time ago.

Best Regards

johnel 2010-03-15 08:39

Re: Mono 2.4.3 on Maemo
 
There seems to be a grey area with QT support.

I think there was two rival bindings for QT. I think one was "discontinued".

I think Qyoto bindings is still active.

The bindings are based on a system called Smoke.

BTW: What is the performance like (e.g. cpu utilisation and memory use)?

mk8 2010-03-15 08:47

Re: Mono 2.4.3 on Maemo
 
johel, do you talk about mono performance in general or using a specific environment?

I not make speed test, but I can say that using GTK# with maemo-sharp for hildon integration, the application seems to be fast. Using winform the startup of application is very slow ...

I will try to make some test, but unfortunally I have only a N810 device so I not able to see if the behaviour on N900 device.

johnel 2010-03-15 10:33

Re: Mono 2.4.3 on Maemo
 
I've used mono on the desktop and subjectively compared it to Java.

As a runtime mono seems usable on a "low powered" cpu (e.g. 450mhz) and memory consumption seems lower compared to Java.

I just wondered how usable this "arm" version of mono is on your n810.

You know - maybe I shloud just install it myself and try it myself.

It's great there is another programming option for maemo. It would be nice to develop stuff for mono and then use the same binary on n900 & n8x0 devices.

shiny 2010-03-15 11:08

Re: Mono 2.4.3 on Maemo
 
I'd definitely be interested in using this, actually - is there any N900-specific documentation anywhere?

mk8 2010-03-15 11:13

Re: Mono 2.4.3 on Maemo
 
For normal application seems to be fast enought.
Moreover this version is a complete stack of mono, is not a reduced version.

I already try to "port" (simply copy from my desktop) a winform testing application created using Visual Studio and works. The problem is:
- slow to startup the application
- is not integrated in the Hildon environment so you not see in the task list, and so on
- unfortunally some winform action caused the crash of the application because is not supported by hildon (example you cannot ask to the window to go maximized )

Regards the compatibility from N810 and N900 there is a specific assemby - maemo-sharp that is automatic generated by hildon include file that can be different between N810 and N900. If anyone not use N900 specific function I think that you can build the application for one device and run on the other.

Obviously the runtime need to be the right version, FREMANTLE use glib 2.30.3 while DIABLO use glib2.12.12 and so on ...

mk8 2010-03-23 10:53

Re: Mono 2.4.3 on Maemo
 
3 Attachment(s)
Finally, today I spend some time to make some test using a real winform application on my N810 device.

This application use a config file, a socket and a nontrivial winform interface to show the status of specific software server. This interface use tab pane dock to the full window, a detaililed list, and change the color of the row when a specific process is in running.

I simply copy the binary from the windows server to my OpenSuSE linux machine and on my N810 maemo device. On OpenSuSE I have no problem with the latest version of mono. On Maemo device I not able to run the release version of application, so I try to run the Debug version with the "--debug" option. Now the application start perfectly. Here there is some screenshot taken from Windows, OpenSuSE and N810 :)

Here there is some screenshot from Windows platform, linux platform and Maemo4 platform.

petibub 2010-03-23 10:58

Re: Mono 2.4.3 on Maemo
 
@mk8: I'm very interested in Mono on Maemo. Thanks for you work.
Could you update you last posting, the links seem to be gone...

thanks

eitama 2010-03-23 11:00

Re: Mono 2.4.3 on Maemo
 
Quote:

Originally Posted by mk8 (Post 578450)
Finally, today I spend some time to make some test using a real winform application on my N810 device.

This application use a config file, a socket and a nontrivial winform interface to show the status of specific software server. This interface use tab pane dock to the full window, a detaililed list, and change the color of the row when a specific process is in running.

I simply copy the binary from the windows server to my OpenSuSE linux machine and on my N810 maemo device. On OpenSuSE I have no problem with the latest version of mono. On Maemo device I not able to run the release version of application, so I try to run the Debug version with the "--debug" option. Now the application start perfectly. Here there is some screenshot taken from Windows, OpenSuSE and N810 :)

Here there is some screenshot from Windows platform, linux platform and Maemo4 platform.

I can't see the pics.

mk8 2010-03-23 11:04

Re: Mono 2.4.3 on Maemo
 
Which link?

I try http://code.google.com/p/tomboy-maem...onoSbDevKit243 now and seems to work.

I not see other link

mk8 2010-03-23 11:08

Re: Mono 2.4.3 on Maemo
 
@eitama:
sorry, the post uses external image but not works. I put this image inside the post. Now I hope that you can see it.

Cheers

eitama 2010-03-23 11:28

Re: Mono 2.4.3 on Maemo
 
Quote:

Originally Posted by mk8 (Post 578469)
@eitama:
sorry, the post uses external image but not works. I put this image inside the post. Now I hope that you can see it.

Cheers

Cheers, they work now.

tomaszrybak 2010-03-24 20:03

Re: Mono 2.4.3 on Maemo
 
Thanks for the work.

This might be a stupid question (and sorry for my ignorance) but is there possibility of running MonoTouch on Maemo? This would allow easy running of iPhone apps written using Mono. It might be even interesting GSoC project?

Patola 2010-03-25 05:33

Re: Mono 2.4.3 on Maemo
 
Sorry, couldn't resist.

This thread is very interesting (it really is!), but where is the obligatory rant about Microsoft patents and the like?

mk8 2010-03-25 08:30

Re: Mono 2.4.3 on Maemo
 
Quote:

Originally Posted by tomaszrybak (Post 580916)
Thanks for the work.

This might be a stupid question (and sorry for my ignorance) but is there possibility of running MonoTouch on Maemo? This would allow easy running of iPhone apps written using Mono. It might be even interesting GSoC project?

I suppose that is not possibile to use monotouch because the user interface library user in the two device it is different. Moreover there are other differences like the need to compile the code using AOT time compiler.

So if you want to write a multiplatform application, at the moment, you need to develop several UI for all devices that you want to support.

In a future probably you will use moonlight interface for standalone interface that can be run on all the device, but, for now, this choice is not suitable.


Cheers, Mk8

mk8 2010-03-25 08:42

Re: Mono 2.4.3 on Maemo
 
Quote:

Originally Posted by Patola (Post 581371)
Sorry, couldn't resist.

This thread is very interesting (it really is!), but where is the obligatory rant about Microsoft patents and the like?

You can decide to use C# or not in you application, of course, but to have this capability, I suppose, improve the capability to use this device. I know a lots of developer that use only MS tool, so for they is not an option.
About legal question there is the public promise and the decision to apply it to ECMA 334 and 335.
I suppose that there are other technologies that have the same problem and are accepted.

If Nokia think that this can be a problem I stop this thread here and continue it on my blog outside maemo community.

johnel 2010-03-25 09:02

Re: Mono 2.4.3 on Maemo
 
Quote:

Originally Posted by Patola (Post 581371)
Sorry, couldn't resist.

This thread is very interesting (it really is!), but where is the obligatory rant about Microsoft patents and the like?


This might explain a few things?

Rant:

(*Adopts voice of Leo Getz from Lethal Weapon*)..
"Don't you hate it when you write some software and then get sued for patent infringement? Big corporations wait until you start making money and then they f*** you! They f*** you when you implement embedded filesystems and then f*** you when you write that nice shiney GUI. Even if you don't infringe on a software patent they still f*** you because you spend your life savings and sell your house to pay for the f***ing lawyers - and when you're f***ed they f*** you some more because you now have no home, no job and the big corporations have your f***ing money and your software!"

Venemo 2010-03-30 00:17

Re: Mono 2.4.3 on Maemo
 
Hi,
Could you make an installable .deb package for the N900?

mk8 2010-03-30 16:20

Re: Mono 2.4.3 on Maemo
 
Quote:

Originally Posted by Venemo (Post 587489)
Hi,
Could you make an installable .deb package for the N900?

Hi Venemo,

you can find a .deb package here:

deb http://www.torosoft.com/mono-maemo5 fremantle binary

NOTE: THIS PACKAGES ARE NOT "OPTIFY" SO BE CAREFULL.
I hope that an optified version will be release as soon.

Unfortunally I not have a device where try they.

Cheers, Mk8.

manavs 2010-04-06 18:38

Re: Mono 2.4.3 on Maemo
 
This is great and will encourage windows developers to target the maemo platform. Definitely interesting!!!

goranach 2010-04-14 12:23

Re: Mono 2.4.3 on Maemo
 
I test it on n900.
It works, but only in console, there no any bindings to GUI.
And there were some problem with instalation. In your repository there no mono-runtime in Packages. I instal it manually from it.

Great work!

goranach 2010-04-20 13:46

Re: Mono 2.4.3 on Maemo
 
Oh, really System.Windows.Forms work!
But when I compile i do it so, for example:
mcs -r:System.Drawing -r:System.Windows.Forms programm.cs

And there must be dpkg-config installation!

What about Gtk, I can not find how install it, it dependes of broken package libxml-libxml-perl.

Sorry of my English, I have not got expirience enough :(

Venemo 2010-04-21 15:26

Re: Mono 2.4.3 on Maemo
 
Quote:

Originally Posted by mk8 (Post 588462)
Hi Venemo,

you can find a .deb package here:

deb http://www.torosoft.com/mono-maemo5 fremantle binary

NOTE: THIS PACKAGES ARE NOT "OPTIFY" SO BE CAREFULL.
I hope that an optified version will be release as soon.

Unfortunally I not have a device where try they.

Cheers, Mk8.

Marvellous.
I was able to run a console app on it, and now I'm trying to get started with GTK#.

I have several problems with it, though.

First of all, why are the various parts of Mono are made as separate packages?
At least the core functionality should be provided as one package, but I would be glad to see the entire framework (not the developer tools, of course) to be in one package, to avoid unnecessary complexity.

And of course, it is a quite an old version of Mono, and it isn't optified, which is also bad.

goranach 2010-04-26 17:01

Re: Mono 2.4.3 on Maemo
 
I can't install gtk# too, so I use Windows.Forms.

manavs 2010-05-17 19:47

Re: Mono 2.4.3 on Maemo
 
Anything new with this?

unique 2010-05-27 10:25

Re: Mono 2.4.3 on Maemo
 
I'm interested in the current state of that project. Are there any news?

unique 2010-09-01 18:57

Re: Mono 2.4.3 on Maemo
 
I wanted to try the mono packages, but not all of the debs, like mono-runtime, are listet in my package manager? any idea what I have to do to make them appear, so that I can install them

ahynes1 2010-10-09 00:47

Re: Mono 2.4.3 on Maemo
 
Well, I've sort of got Mono running on my N900. What I did was pulled down the mono-runtime deb file using wget:
wget http://www.torosoft.com/mono-maemo5/....3-1_armel.deb
Then I used
dpkg --install mono-runtime_2.4.3-1_armel.deb
to install it.

At this point, I then did an apt-get install for all of the libmono* files

Mono comes up and runs for me, but the application I'm testing relies on the some MySQL libraries that don't seem to be around, so my program blows up half way through.

For more on this check out
Building Virtual Worlds on the #N900

If anyone else is doing stuff with Mono, especially with MySQL and/or OpenSim, please let me know.

As an aside, I'm also curious about building ASP pages using Lighttpd. Anyone have any luck with that?

Necc 2010-10-29 09:37

Re: Mono 2.4.3 on Maemo
 
Quote:

Originally Posted by ahynes1 (Post 836855)
For more on this check out
Building Virtual Worlds on the #N900

I did a look at it and i say don't give up :) . I'm looking for a secondlife/opensim viewer for mobile devices long time ago now, and i know i'm not alone with this.
BTW why did you not tried a simple text based viewer first?

Necc 2010-11-01 23:02

Re: Mono 2.4.3 on Maemo
 
Sorry for double posting and making off post but i did not wanted to start a new topic for this.

Today i just found a mobile grid client witch works with both secondlife and opensim:

http://www.mobilegridclient.com/

It is made for android, and it hopefully runs under nitdroid (not tested personally).

The only disadvantage is that you need to pay 250L$ per month to use it (that's approx 1USD per month).

Youtube video link:
http://www.youtube.com/watch?v=Z98Tl...layer_embedded

aligatro 2011-04-25 22:04

Re: Mono 2.4.3 on Maemo
 
1 Attachment(s)
Just tried to launch one of my old assignment c# apps just for fun. xD

Had to recompile for 3.5 framework + there is a problem with graphics redraw.

azkay 2011-04-25 22:19

Re: Mono 2.4.3 on Maemo
 
Quote:

Originally Posted by aligatro (Post 995254)
Just tried to launch one of my old assignment c# apps just for fun. xD

Had to recompile for 3.5 framework + there is a problem with graphics redraw.

I wrote my first Smartcam M5 version in C#/Mono, moved over to C++ to save 25mb worth of dependencies, though.

aligatro 2011-04-25 22:27

Re: Mono 2.4.3 on Maemo
 
Quote:

Originally Posted by azkay (Post 995260)
I wrote my first Smartcam M5 version in C#/Mono, moved over to C++ to save 25mb worth of dependencies, though.

and c++ is faster.

memson 2011-07-21 13:17

Re: Mono 2.4.3 on Maemo
 
Is there any chance this might be made to work on the N8x0? I can see there's a diablo folder, but those debs depend on libs of a version that are later than the current diablo distro has available:


mono-runtime: Depends: libgcc1 (>= 1:4.2.1) but 1:3.4.4cs2005q3.2-5.osso8 is installed
Depends: libglib2.0-0 (>= 2.20.0) but 2.12.12-1osso13 is installed

impeham 2011-11-12 02:04

Re: Mono 2.4.3 on Maemo
 
I'm trying to create a very simple client-server application using WCF on mono framework.
I created a server application with a single echo method that prints a message to the console and a client with a reference to the server that calls the method.

If both client and server applications are on the N900, everything is fine, but if the client application runs from my laptop (after changing the IP address to point to the n900's ip address of course) I get the following exception in the client:
System.ServiceModel.EndpointNotFoundException was unhandled
Message=Could not connect to net.tcp://192.168.1.100:4050/AgentServices. The connection attempt lasted for a time span of 00:00:01.6630951. TCP error code 10061: No connection could be made because the target machine actively refused it 192.168.1.100:4050.

If the server however is on the laptop, a client from the n900 can call it and it works fine.

Using remoting it works fine.

[update] it seems that when both client an server applications are on the n900 they work fine if the client is set to endpoint "localhost" but not if it is set to the n900's ip address - then I get:

Unhandled Exception: System.Net.Sockets.SocketException: Connection refused
at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x00000] in <filename unknown>:0
at System.Net.Sockets.TcpClient.Connect (System.Net.IPEndPoint remote_end_point) [0x00000] in <filename unknown>:0
at System.Net.Sockets.TcpClient.Connect (System.Net.IPAddress[] ipAddresses, Int32 port) [0x00000] in <filename unknown>:0


Is there an issue with mono that prevents incoming TCP connections to a WCF service?


All times are GMT. The time now is 07:01.

vBulletin® Version 3.8.8