[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet] Portable.NET on Nokia 770
From: |
Radek Polak |
Subject: |
[Dotgnu-pnet] Portable.NET on Nokia 770 |
Date: |
Thu, 17 Apr 2008 09:55:11 +0200 |
User-agent: |
Thunderbird 2.0.0.12 (Windows/20080213) |
Hi all,
i just wanted to let you know that Portable.NET from CVS now runs on
Nokia 770 2006 OS. All unit tests in pnetlib pass and winforms work too.
You can use scratchbox for compiling, Nokia or Qemu for running and
PortableStudio for remote debugging. The architecture is ARMEL and it
needed just two small fixes in unroller.
If you need your application to be launched from Nokia's startup menu,
you'll have to create .service and .desktop files as descibed here [1].
In both of these files, you'll have to specify D-BUS service name as
"org.dotgnu.ilrun". Your application then should register on startup
with the dbus name like this [2]. If you dont do this, the application
will be terminated by the OS in 2 or 3 seconds.
I hope this information will be useful to someone.
Debian packages - anyone interested?
See you
Radek
[1]
http://maemo.org/development/documentation/tutorials/maemo_2_2_tutorial.html#integration
[2]
[DllImport("libosso.so.1")]
private static extern IntPtr osso_initialize
(string application, string version, int activation, IntPtr
context);
[DllImport("libosso.so.1")]
private static extern IntPtr osso_deinitialize(IntPtr context);
private static IntPtr OssoInitialize()
{
if(File.Exists("/usr/lib/libosso.so.1"))
{
return osso_initialize("org.dotgnu.ilrun", "1.0", 1,
IntPtr.Zero);
}
else
{
return IntPtr.Zero;
}
}
private static void OssoDeinitialize(IntPtr context)
{
if(context != IntPtr.Zero)
{
osso_deinitialize(context);
}
}
[STAThread]
private static void Main(string[] args)
{
IntPtr context = OssoInitialize();
try
{
Application.Run(new MainForm());
}
finally
{
OssoDeinitialize(context);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet] Portable.NET on Nokia 770,
Radek Polak <=