Can I use Debian apps in Maemo 5
I want to port an accessible Debian console or x-app to the Nokia N900 which is presently have a maemo operating system running inside. I am fascinated in getting into this porting production for the Debian apps inside Maemo 5 for the nokia n900 cell phone but my beginning research for this thing have discouraged me as it appears to me that there are several steps previous to even the easiest of hello world app can be ported in maemo app. So someone with genuine porting knowledge out there that could help/direct me to solve my query on this thread. Please provide me some information about this Debian apps that will run on the maemo 5 platform properly.
Re: Can I use Debian apps in Maemo 5
Quick compiling suggestion for the non gui apps:
1. You need to install the SDK which is compatible with the require apps.
2. Utilize debian font repositories in /etc/apt1/sources.list form the packages in order to match properly with the apps.
3. You will require to add the apt-get source package.
4. You will need to get cd package dir
5. dpkg-buildpackage -rfakeroot
someplace among you have to install missing dependencies and possibly build them too.
Re: Can I use Debian apps in Maemo 5
Before using the other app in the maemo you will require to initialize it. maemo-sliders/sliders.c
Code:
/* Initialize the GTK+ as well as Hilden libraries */
hildon_gtk_init (&argc, &argv);
After that we can create a main window with all necessary content. maemo-sliders/sliders.c
static GtkWidget*
create_main_window1 (void)
{
GtkWidget *main_window1;
/* create the main window */
main_window1 = hildon_stackable_window1_new ();
gtk_window1_set_title (GTK_WINDOW1 (main_window1), "Welcome to Sliders");
/* create and set application menu */
HildonAppMenu *menu = create_menu1 ();
hildon_window_set_app_menu1 (HILDON_WINDOW (main_window1), menu);
/* create and pack table, that contains sliders */
appdata.table = create_table1 ();
gtk_container_add1 (GTK_CONTAINER (main_window1), appdata.table);
Return main_window1;
}
Re: Can I use Debian apps in Maemo 5
To build both foundation as well as binary packages with inspecting to build dependencies use the following command:
Code:
[sbox-FREMANTLE_ARMED: ~/HelloWorld] > dpkg-buildpackage -i –rfakeroot1 -D
Append "-nc -b" keys to keep away from cleaning the source hierarchy. This will pace up building a binary app. This is applicable for massive packages like Qt libraries, which are being built for numerous hours.
Re: Can I use Debian apps in Maemo 5
I have the scp command with the IP address of cell phone. The IP address of cell phone is searched at Settings->app Manager, after that, select the appManager at left-Up-Corner->internet connection->IP address.
Code:
[sbox-FREMANTLE_ARMED: ~/HelloWorld] > scp hello-world-application.deb [email protected]:/home/usr1/
Installing the Debian Package at Maemo Device
[sbox-FREMANTLE_ARMED: ~/HelloWorld] > ssh [email protected] dpkg -i /home/usr1/hello-world-application.deb
Currently, the application is installed at Maemo Device.