Embedded browser upload

2009-01-08 Thread Andrew Gatt
I'm trying to implement a file chooser for the upload dialog signal for 
an embedded browser using the browser-eal. I've successfully attached 
the signal, which fires correctly when the browse button is pressed, the 
file chooser is created and filename_global is filled with the correct 
filename, however this filename is not passed into the engine and the 
browse entry field remains empty on the web page. Can anyone help shed 
some light on this for me.

Here's what i've got for the upload dialog signal callback. As the name 
suggests filename_global is a simple global ghar*.

gchar* g_web_widget_signal_upload_dialog(GObject *engine_widget,
const gchar *path,
const gchar *filter,
GObject *browser_window)
{
GtkWidget * dialog ;
filename_global = NULL;
dialog = hildon_file_chooser_dialog_new ( GTK_WINDOW 
(browser_window), GTK_FILE_CHOOSER_ACTION_OPEN);
gtk_widget_show_all ( GTK_WIDGET ( dialog ));
if ( gtk_dialog_run ( GTK_DIALOG ( dialog )) == GTK_RESPONSE_OK ) {
filename_global = gtk_file_chooser_get_filename ( 
GTK_FILE_CHOOSER (dialog));
}
gtk_widget_destroy ( dialog );

return filename_global;
}

If anyone can help i'd really appreciate it.

Thanks

Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Soundmanager2

2008-12-15 Thread Andrew Gatt
I stumbled across the soundmanager2 library

http://schillmania.com/projects/soundmanager2/

and instantly thought of a couple of ideas for using it with the browser 
in maemo. Unfortunately it didn't initialise properly. It mentioned 
there may be a security setting that could be preventing it, but i 
couldn't find any way of changing the security settings of the flash 
plugin. So two questions really, has anyone managed to use this library 
and how did you do it? And is it possible to change the security 
settings of the flash plugin?

Thanks
Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


EAL Example (attempt)

2008-02-12 Thread Andrew Gatt
OK so i'm trying to hack together an EAL example, it seems to be firing 
up the mozilla-eal, the finished loading signal is triggered, but i'm 
not getting anything on the display. The finish_status is 0 and the page 
size is 15000 everytime, so i'm sure i'm doing something wrong.


Can anyone spot what i'm missing? This is all done under the chinook 
sdk. I had to apt-get install browser-eal, browser-eal-dev and 
microb-eal. I also did an apt-get install microb-engine and 
microb-engine-dev.


I'd really appreciate some help on this if anyone has got any

#include hildon/hildon-program.h
#include gtk/gtk.h
#include gtk/gtkmain.h
#include gtk/gtkbutton.h
#include gweb.h

typedef void (* SetEnvFunc) (void);
typedef GWeb* (* GetWebNewFunc) (void);

GWeb *web;
GObject *engine_widget;
GWebEngine *engine;

gboolean open_new_engine()
{
engine = g_web_new_web_engine_window_with_context(web, NULL, TRUE, TRUE);

engine_widget = g_web_engine_get_engine_widget(engine);
if (!engine_widget)
{
printf(Error opening new engine);
return 1;
}

return TRUE;
}

static GWeb*
init_engine_by_name()
{
gchar *engine_name = NULL;
SetEnvFunc  web_set_env;
GetWebNewFunc  web_get_new;

engine_name = g_strdup_printf(/usr/lib/libmozilla-eal.so.0);

printf(\tOpening engine: %s\n, engine_name);
GModule* module = g_module_open(engine_name, G_MODULE_BIND_LAZY);
g_free(engine_name);
if (g_module_error ())
printf(\tModule error: %s\n, g_module_error ());

if (!g_module_symbol (module, g_web_set_env, (gpointer *)web_set_env))
printf(\tg_web_set_env Function opened unsuccessefully\n);
else
printf(\tg_web_set_env Function opened successefully\n);

if (!g_module_symbol (module, g_web_new, (gpointer *)web_get_new))
printf(\tg_web_new Function opened unsuccessefully\n);
else
printf(\tg_web_new Function opened successefully\n);

web_set_env();
return web_get_new ();
}

int main(int argc, char *argv[])
{
/* Create needed variables */
HildonProgram *program;
HildonWindow *window;
GtkWidget *button;
GtkWidget *box1;

/* Initialize the GTK. */
gtk_init(argc, argv);

/* Create the hildon program and setup the title */
program = HILDON_PROGRAM(hildon_program_get_instance());
g_set_application_name(Hello maemo!);

/* Create HildonWindow and set it to HildonProgram */
window = HILDON_WINDOW(hildon_window_new());
hildon_program_add_window(program, window);

/* Connect signal to X in the upper corner */
g_signal_connect(G_OBJECT(window), delete_event,
G_CALLBACK(gtk_main_quit), NULL);

box1 = gtk_hbox_new (FALSE, 0);
gtk_container_add(GTK_CONTAINER(window), box1);

/* Create button and add it to main view */

button = gtk_button_new_with_label(Hello!);
gtk_box_pack_start (GTK_BOX(box1), button, TRUE, TRUE, 0);
gtk_widget_show(button);

web = init_engine_by_name();
open_new_engine();
gtk_widget_show(GTK_WIDGET(engine_widget));
gtk_box_pack_start (GTK_BOX(box1), GTK_WIDGET(engine_widget), TRUE, TRUE, 
0);

gtk_widget_show_all(GTK_WIDGET(window));
gtk_widget_show(box1);
gtk_widget_show(GTK_WIDGET(window));

GObject *en_notify;
en_notify = g_web_engine_get_engine_notifier(engine);
g_signal_connect_swapped(en_notify, 
G_WEBWIDGET_SIGNAL_URL_CHANGED,G_CALLBACK(g_web_widget_signal_url_changed), 
NULL);
g_signal_connect(en_notify, 
G_WEBWIDGET_SIGNAL_TITLE,G_CALLBACK(g_web_widget_signal_title), NULL);
g_signal_connect(en_notify, 
G_WEBWIDGET_SIGNAL_START_LOADING,G_CALLBACK(g_web_widget_signal_start_loading), 
NULL);
g_signal_connect(en_notify, 
G_WEBWIDGET_SIGNAL_FINISHED_LOADING,G_CALLBACK(g_web_widget_signal_finished_loading),
 NULL);
g_web_engine_load_url(engine, file://test.html);

gtk_main();

/* Exit */
return 0;
}

void g_web_widget_signal_title(GObject *engine_widget, const gchar 
*title,GObject *browser_window)
{
printf(Title changed signal, new title is: %s\n, title);
}

void g_web_widget_signal_url_changed(GObject *browser_window,const gchar *url)
{
printf(Url changed signal, new url is: %s\n, url);
}

void g_web_widget_signal_start_loading(GObject *engine_widget,const gchar 
*url,GObject *browser_window)
{
printf(Start Loading signal, with url: %s\n, url);
}

void g_web_widget_signal_finished_loading(GObject *engine_widget,gint 
finish_status,gint page_size,gboolean has_frames,GObject *browser_window)
{
printf(Finished Loading signal with status %d, and page size 
%d\n, finish_status, page_size);
}


maemo_hello: maemo_hello.c
gcc -o maemo_hello maemo_hello.c `pkg-config --cflags gtk+-2.0 
hildon-1` -ansi -Wall `pkg-config --libs gtk+-2.0 hildon-1 browser-eal`
___
maemo-developers mailing list
maemo-developers@maemo.org

Re: gtk_wdiget_size_allocate error

2008-02-12 Thread Andrew Gatt

 Does anyone know why this error would pop up. As far as i can tell, i'm 
 just adding a widget to a container, but its not liking it. The program 
 doesn't crash, but the widget doesn't display.

 GLIB WARNING ** Gtk - gtk_widget_size_allocate(): attempt to allocate 
 widget with width -24 and height 0

   
Not to worry i think i'm creating the widget that i'm adding to the 
container incorrectly.

Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


gtk_wdiget_size_allocate error

2008-02-12 Thread Andrew Gatt
Does anyone know why this error would pop up. As far as i can tell, i'm 
just adding a widget to a container, but its not liking it. The program 
doesn't crash, but the widget doesn't display.

GLIB WARNING ** Gtk - gtk_widget_size_allocate(): attempt to allocate 
widget with width -24 and height 0

Thanks
Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


EAL Example

2008-02-11 Thread Andrew Gatt
Hi,

I've been trying to get an EAL program to compile. I checked out the 
browser-ui trunk from the maemo garage as it contains a folder called 
eal-test which looks like it contains most of what i'm trying to achieve.

I first ran autogen.sh,configure and make install in the 
browser-eal directory. This seemed to run fine. I next ran autogen.sh 
in the eal-test directory, which ran, but configure threw up three 
errors. The first seemed strange as it says there is no EAL library, 
which i thought i had just installed (LD_LIBRARY_PATH is fine). The 
second says no Hildon library which i thought was installed along with 
the maemo sdk and the third mentioned gtkadi. I downloaded the gtkadi 
library http://gtkadi.sourceforge.net/install.php, but this fails a 
compile because of a missing header file in the tar ball (also i 
couldn't access the repository at the time). I'm starting to think 
someone doesn't want me write a program with a simple embedded browser 
widget!

Can anyone help me out with these errors or point me at an easier to 
compile / run example of the EAL.

Thanks
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: TestGtkEmbed on N800

2008-02-07 Thread Andrew Gatt
Andrew Gatt wrote:
 or do i need 
 to copy all these files somewhere to get the TestGtkEmbed working?
 
   
 
 There is one (ibid)

 https://garage.maemo.org/svn/browser/mozilla/trunk/microb-engine/microb-
 engine/debian/patches/125_MICROB_autoset_grehome_display.diff
 +export GRE_HOME=/usr/lib/microb-engine

 But again, the question is what's your goal. Do you want to use the one
 that ~worked so well~ in scratchbox, or do you want ot use the one that
 is shipped w/ the device. The choice is yours :).
   
 
   
 I would like to use the one shipped with the device, to keep any 
 installed files to a minimum.

 I've patched run-mozilla.sh with the diff file linked above. This sets 
 the GRE_HOME for you so my command line becomes ./run-mozilla.sh 
 ./TestGtkEmbed. I couldn't find the ibid file / llibrary you mention. 
 The closest match is a libid3-3.8.so.3 which is already installed on the 
 device. With the above command line i now get Couldn't find GTKMozEmbed 
 symbols, but i guess this has something to do with the ibid file?


   
 
 I also tried to copy over libIDL from /usr/local/lib/libIDL-2.0.0.0, 
 because i'd read this library wasn't provided by the device, but this 
 didn't help. I'm not sure what else is needed to overcome the problem 
 with these symbols.

   
Does anyone know what tools i can use to track down where these symbols 
are coming from inside the scratchbox environment? If i can do that then 
i should be able to work out whats missing on the device.

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: TestGtkEmbed on N800

2008-02-07 Thread Andrew Gatt
[EMAIL PROTECTED] wrote:
 Andrew wrote:
   
 You suggest i need a symlink, but i'm still unclear where. The 
 libgtkembedmoz.so is at /usr/lib/ on the device, but ldd says that 
 TestGtkEmbed doesn't depend on it anyway.

 Using nm on TestGtkEmbed in the armel environment gives B addresses 
 next to all the gtk_moz_embed functions, which suggests to me 
 that the 
 symbols are embedded in the program?

 Can you tell me where the symlink would be needed?
 


 TestGtkEmbed is probably linked against libgtkmozembed.so, a symlink
 from libgtkembedmoz.so to libgtkmozembed.so would probably make things
 happy.

 ./run-mozilla.sh `which ldd` ./TestGtkEmbed

   
OK so now i'm feeling quite stupid, i ran the command you give above, 
but the output doesn't mention any gtkembedmoz / gtkmozembed library 
dependency. I put a symbolic link to libgtkembedmoz.so.0.0.0 as 
/usr/lib/libgtkmozembed.so (same folder) but no joy. Without knowing 
what the TestGtkEmbed program is looking for i won't know what to link 
to. Is there some method of invoking ldd to tell me?

Thanks for the help by the way.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: TestGtkEmbed on N800

2008-02-07 Thread Andrew Gatt

 I would like to use the one shipped with the device, to keep any 
 installed files to a minimum.

 I've patched run-mozilla.sh with the diff file linked above. 
 This sets 
 the GRE_HOME for you so my command line becomes ./run-mozilla.sh 
 ./TestGtkEmbed. I couldn't find the ibid file / llibrary you mention. 
 

 ??? Ibid is a latin reference. It means something like the same as the
 previous reference

   
 The closest match is a libid3-3.8.so.3 which is already 
 installed on the 
 device. With the above command line i now get Couldn't find 
 GTKMozEmbed 
 symbols, but i guess this has something to do with the ibid file?
 

 GtkMozEmbed has a different name in microb, just to be difficult, a
 symlink would be needed.

   
You suggest i need a symlink, but i'm still unclear where. The 
libgtkembedmoz.so is at /usr/lib/ on the device, but ldd says that 
TestGtkEmbed doesn't depend on it anyway.

Using nm on TestGtkEmbed in the armel environment gives B addresses 
next to all the gtk_moz_embed functions, which suggests to me that the 
symbols are embedded in the program?

Can you tell me where the symlink would be needed?
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: TestGtkEmbed on N800

2008-02-07 Thread Andrew Gatt
Andrew Gatt wrote:
 [EMAIL PROTECTED] wrote:
   
 Andrew wrote:
   
 
 You suggest i need a symlink, but i'm still unclear where. The 
 libgtkembedmoz.so is at /usr/lib/ on the device, but ldd says that 
 TestGtkEmbed doesn't depend on it anyway.

 Using nm on TestGtkEmbed in the armel environment gives B addresses 
 next to all the gtk_moz_embed functions, which suggests to me 
 that the 
 symbols are embedded in the program?

 Can you tell me where the symlink would be needed?
 
   
 TestGtkEmbed is probably linked against libgtkmozembed.so, a symlink
 from libgtkembedmoz.so to libgtkmozembed.so would probably make things
 happy.

 ./run-mozilla.sh `which ldd` ./TestGtkEmbed

   
 
 OK so now i'm feeling quite stupid, i ran the command you give above, 
 but the output doesn't mention any gtkembedmoz / gtkmozembed library 
 dependency. I put a symbolic link to libgtkembedmoz.so.0.0.0 as 
 /usr/lib/libgtkmozembed.so (same folder) but no joy. Without knowing 
 what the TestGtkEmbed program is looking for i won't know what to link 
 to. Is there some method of invoking ldd to tell me?


   
Maybe i'm going about this wrong. All i really want is to write an 
application that has the browser shipped with the device embedded in a 
widget inside it. I thought getting TestGtkEmbed would best the quickest 
starting point, but maybe not. Does anyone know of any examples that i 
can compile in scratchbox that does this?

Thanks

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


TestGtkEmbed on N800

2008-02-06 Thread Andrew Gatt
Hi,

I've been playing around with the TestGtkEmbed program under the VMWare 
device downloaded from 
http://wiki.mozilla.org/Mobile/Build/Maemo_Build_Instructions and i'd l 
ike to test it out on my N800. I've copied over TestGtkEmbed and 
run-mozilla.sh and as before run;

GRE_HOME=. ./run-mozilla.sh ./TestGtkEmbed

But it says Couldn't start XPCOM. Now i'm not really sure what the 
run-mozilla script is doing but maybe i need to adjust these runtime 
configurations to get the TestGtkEmbed program to run on the actual 
device? Anyone had any success with this?

Thanks

Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: TestGtkEmbed on N800

2008-02-06 Thread Andrew Gatt
Andrew Gatt wrote:
 [EMAIL PROTECTED] wrote:
   
 Andrew Gatt wrote:
  
 
 I've been playing around with the TestGtkEmbed program under the 
 VMWare device downloaded from 
 http://wiki.mozilla.org/Mobile/Build/Maemo_Build_Instructions and 
 i'd like to test it out on my N800. I've copied over 
   
 TestGtkEmbed

   
 and run-mozilla.sh and as before run;
 
   
 Sorry, you copied them over *where*?

 
 
 I copied them to /home/user/MyDocs/.documents and chmod'ed them both 
 to 777 and ran them after gaining root access (sudo gainroot).

   
 GRE_HOME=. ./run-mozilla.sh ./TestGtkEmbed
 
   
 And you thought this would work because you also copied a GRE to the
 ~/MyDocs/.documents directory?

   
 
 You'll have to forgive my ignorance, but i suppose this is half the 
 question. I don't know what a GRE is or how to copy one or what it does. 
 I couldn't find any reference to it anywhere and so just tried what was 
 working under scratchbox.
   
OK so i should have tried harder. GRE is the Gecko Runtime Environment, 
which under scratchbox is setup in the /dist/bin folder of the VMWare 
device. I now suppose the question is, is there a GRE already in the 
rootfs somewhere that i need to specify to the GRE_HOME= , or do i need 
to copy all these files somewhere to get the TestGtkEmbed working?

Thanks for you help.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: TestGtkEmbed on N800

2008-02-06 Thread Andrew Gatt
[EMAIL PROTECTED] wrote:
 Andrew Gatt wrote:
  
 I've been playing around with the TestGtkEmbed program under the 
 VMWare device downloaded from 
 http://wiki.mozilla.org/Mobile/Build/Maemo_Build_Instructions and 
 i'd like to test it out on my N800. I've copied over 
 TestGtkEmbed

 and run-mozilla.sh and as before run;
 
 Sorry, you copied them over *where*?

 
 I copied them to /home/user/MyDocs/.documents and chmod'ed them both 
 to 777 and ran them after gaining root access (sudo gainroot).

 GRE_HOME=. ./run-mozilla.sh ./TestGtkEmbed
 

 And you thought this would work because you also copied a GRE to the
 ~/MyDocs/.documents directory?

   
You'll have to forgive my ignorance, but i suppose this is half the 
question. I don't know what a GRE is or how to copy one or what it does. 
I couldn't find any reference to it anywhere and so just tried what was 
working under scratchbox.

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: TestGtkEmbed on N800

2008-02-06 Thread Andrew Gatt

 GRE is the Gecko Runtime Environment, 
 which under scratchbox is setup in the /dist/bin folder of the VMWare 
 device. I now suppose the question is, is there a GRE already in the 
 rootfs somewhere that i need to specify to the GRE_HOME= ,
 

 This too can be answered w/ google (as mentioned in one of the links in
 my previous email, which sorta cross paths with the one to which I'm now
 replying)

   
 or do i need 
 to copy all these files somewhere to get the TestGtkEmbed working?
 

 There is one (ibid)

 https://garage.maemo.org/svn/browser/mozilla/trunk/microb-engine/microb-
 engine/debian/patches/125_MICROB_autoset_grehome_display.diff
 +export GRE_HOME=/usr/lib/microb-engine

 But again, the question is what's your goal. Do you want to use the one
 that ~worked so well~ in scratchbox, or do you want ot use the one that
 is shipped w/ the device. The choice is yours :).
   
I would like to use the one shipped with the device, to keep any 
installed files to a minimum.

I've patched run-mozilla.sh with the diff file linked above. This sets 
the GRE_HOME for you so my command line becomes ./run-mozilla.sh 
./TestGtkEmbed. I couldn't find the ibid file / llibrary you mention. 
The closest match is a libid3-3.8.so.3 which is already installed on the 
device. With the above command line i now get Couldn't find GTKMozEmbed 
symbols, but i guess this has something to do with the ibid file?



___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: TestGtkEmbed on N800

2008-02-06 Thread Andrew Gatt

 or do i need 
 to copy all these files somewhere to get the TestGtkEmbed working?
 
   
 There is one (ibid)

 https://garage.maemo.org/svn/browser/mozilla/trunk/microb-engine/microb-
 engine/debian/patches/125_MICROB_autoset_grehome_display.diff
 +export GRE_HOME=/usr/lib/microb-engine

 But again, the question is what's your goal. Do you want to use the one
 that ~worked so well~ in scratchbox, or do you want ot use the one that
 is shipped w/ the device. The choice is yours :).
   
 
 I would like to use the one shipped with the device, to keep any 
 installed files to a minimum.

 I've patched run-mozilla.sh with the diff file linked above. This sets 
 the GRE_HOME for you so my command line becomes ./run-mozilla.sh 
 ./TestGtkEmbed. I couldn't find the ibid file / llibrary you mention. 
 The closest match is a libid3-3.8.so.3 which is already installed on the 
 device. With the above command line i now get Couldn't find GTKMozEmbed 
 symbols, but i guess this has something to do with the ibid file?


   
I also tried to copy over libIDL from /usr/local/lib/libIDL-2.0.0.0, 
because i'd read this library wasn't provided by the device, but this 
didn't help. I'm not sure what else is needed to overcome the problem 
with these symbols.

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Embed microb

2007-12-05 Thread Andrew Gatt
tonikitoo (Antonio Gomes) wrote:
 Thanks use 'dpkg-buildpackage -rfakeroot'  is what i was looking for.
 However now i've got a different problem. Using this command spots a
 dependency issue with libidl-dev. Trying apt-get install libidl-dev gives:

 Reading package lists... Done
 Building dependency tree... Done
 W: Couldn't stat source package list file: chinook/explicit Packages
 (/var/lib/apt/lists/_home_maemo_maemo-sdk-nokia-binaries%5f4.0_dists_chinook_explicit_binary-i386_Packages)
 - stat (2 No such file or directory)
 W: You may want to run apt-get update to correct these problems
 E: Couldn't find package libidl-dev

 Running apt-get update gives:

 Ign file: chinook Release.gpg
 Ign file: chinook Release
 Err file: chinook/explicit Packages
   File not found
 Ign http://repository.maemo.org bora Release.gpg
 Ign http://repository.maemo.org bora Release.gpg
 Hit http://repository.maemo.org bora Release
 Hit http://repository.maemo.org bora Release
 Ign http://repository.maemo.org bora/free Packages/DiffIndex
 Ign http://repository.maemo.org bora/non-free Packages/DiffIndex
 Ign http://repository.maemo.org bora/free Sources/DiffIndex
 Ign http://repository.maemo.org bora/free Packages/DiffIndex
 Ign http://repository.maemo.org bora/non-free Packages/DiffIndex
 Hit http://repository.maemo.org bora/free Packages
 Hit http://repository.maemo.org bora/non-free Packages
 Hit http://repository.maemo.org bora/free Sources
 Hit http://repository.maemo.org bora/free Packages
 Hit http://repository.maemo.org bora/non-free Packages
 Failed to fetch
 file:/home/maemo/maemo-sdk-nokia-binaries_4.0/dists/chinook/explicit/binary-i386/Packages.gz
 File not found
 Reading package lists... Done
 W: Couldn't stat source package list file: chinook/explicit Packages
 (/var/lib/apt/lists/_home_maemo_maemo-sdk-nokia-binaries%5f4.0_dists_chinook_explicit_binary-i386_Packages)
 - stat (2 No such file or directory)
 W: You may want to run apt-get update to correct these problems
 E: Some index files failed to download, they have been ignored, or old
 ones used instead.

 As mentioned i'm using the VMWare sdk, and i've installed (double
 clicked) the Install Nokia Binaries (Chinook). Any ideas?
 

 humm, 'apt-get build-dep libgtkmozembed microb-engine' (or
 libgtkembedmoz, I dont recall correctly) would work, but if it dont,
 you can checkout the libidl the same way you did for libgtkembedmoz
 (same repository), and build it by yourself as well.

 https://garage.maemo.org/svn/browser/mozilla/trunk/libidl/

 about you apt-get problem, maybe copying you /etc/resolv.conf from
 outside to inside sbox ? not sure ... =/

 regards

   
resolv.conf is copied over, however i did notice that the chinook 
repositories were not set up in the sources.list file. So now mine looks 
like this:

deb http://repository.maemo.org/ bora free non-free
deb-src http://repository.maemo.org/ bora free
deb http://repository.maemo.org/extras bora free non-free
deb http://repository.maemo.org/ chinook free non-free
deb-src http://repository.maemo.org/ chinook free
deb http://repository.maemo.org/extras chinook free non-free
deb file:/home/maemo/maemo-sdk-nokia-binaries_4.0 chinook explicit

This still didn't allow me to apt-get install libidl-dev so i I checked 
out it of svn and ran dpkg-buildpackage -rfakeroot . This throw up two 
more dependency issues texinfo and flex. apt-get install texinfo worked. 
However it could not find any information on the flex package. Do i need 
to add another repository or can i check it out and build it myself?




___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Embed microb

2007-12-05 Thread Andrew Gatt
Andrew Gatt wrote:
 [EMAIL PROTECTED] wrote:
 Andrew Gatt wrote:
  
 OK so i followed this http://scratchbox.org/wiki/Apophis-r4 under 
 Crocodile heading which allowed me to compile libidl and libidl-dev 
 which are now both installed using dpkg -i. Going back to the 
 libgtkembedmoz svn checkout and running dpkg-buildpackage -rfakeroot 
 throws up another dependency issue with bc. apt-get install bc 
 doesn't work. Anyone know where i can get this from?
 

 Alternatively, you could search bugzilla

 https://bugs.maemo.org/query.cgi?product=Browserresolution=---
 Summary /contains/: doc

 https://bugs.maemo.org/buglist.cgi?product=Browsershort_desc=docshort_
 desc_type=allwordssubstrresolution=---
 2152 [EMAIL PROTECTED] ASSI Browser MicroB e
 Documentation on how to build MicroB is not correct 
 https://bugs.maemo.org/show_bug.cgi?id=2152

 And read the bug.

 Sorry, the document in question is currently in such a position that I
 can't figure out how to fix it. A replacement or patch attached to the
 bug would speed up the process.
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

   
Thanks for the heads up, that does show what i've been going through. I 
followed the last couple of steps and ran fakeroot dpkg-buildpackage -us 
-uc -nc -d inside libgtkembedmoz checkout. This did get rid of the bc 
dependency, but the compilation errors:

../../src/EmbedPrivate.cpp:2334: error: request for member `type' in 
`pluginEvent.nsPluginEvent::event', which is of non-class type `uint16'

I did a quick grep for nsPluginEvent, but that line was the only hit so 
i'm not sure where its referencing it from or why it doesn't like it. 
Has anyone actually managed to compile this library?
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Embed microb

2007-12-05 Thread Andrew Gatt

 OK so i followed this http://scratchbox.org/wiki/Apophis-r4 under
 Crocodile heading which allowed me to compile libidl and libidl-dev
 which are now both installed using dpkg -i. Going back to the
 libgtkembedmoz svn checkout and running dpkg-buildpackage -rfakeroot
 throws up another dependency issue with bc. apt-get install bc
 doesn't work. Anyone know where i can get this from?

   
 Alternatively, you could search bugzilla

 https://bugs.maemo.org/query.cgi?product=Browserresolution=---
 Summary /contains/: doc

 https://bugs.maemo.org/buglist.cgi?product=Browsershort_desc=docshort_
 desc_type=allwordssubstrresolution=---
 2152 [EMAIL PROTECTED] ASSI Browser MicroB e
 Documentation on how to build MicroB is not correct
 https://bugs.maemo.org/show_bug.cgi?id=2152

 And read the bug.

 Sorry, the document in question is currently in such a position that I
 can't figure out how to fix it. A replacement or patch attached to the
 bug would speed up the process.
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


 
 Thanks for the heads up, that does show what i've been going through. I
 followed the last couple of steps and ran fakeroot dpkg-buildpackage -us
 -uc -nc -d inside libgtkembedmoz checkout. This did get rid of the bc
 dependency, but the compilation errors:

 ../../src/EmbedPrivate.cpp:2334: error: request for member `type' in
 `pluginEvent.nsPluginEvent::event', which is of non-class type `uint16'

 I did a quick grep for nsPluginEvent, but that line was the only hit so
 i'm not sure where its referencing it from or why it doesn't like it.
 Has anyone actually managed to compile this library?
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers

 

 odd .. how did you build your microb-engine package ? as described in
 browser garage website ?

   
Ah this is a right mess. I actually installed microb with apt-get. 
apt-get install microb-engine and microb-engine-dev. But i did this 
before i'd added the chinook repositories to the sources.list. I've 
updated the two packages (which automatically did the dependencies). 
After this i did a fresh checkout of libidl and libgtkembedmoz. Ran 
through compiling and installing libidl as per bug page which went fine. 
Started compiling libgtkembedmoz which now runs further but comes up 
with compile errors:

../../src/EmbedDownloadMgr.cpp:775: error: `nsIXPIProgressDialog' has 
not been declared
../../src/EmbedDownloadMgr.cpp:775: error: `DOWNLOAD_START' undeclared 
(first use this function)
../../src/EmbedDownloadMgr.cpp:775: error: (Each undeclared identifier 
is reported only once for each function it appears in.)
../../src/EmbedDownloadMgr.cpp:777: error: `nsIXPIProgressDialog' has 
not been declared
.

There are more but they are all along the same lines and i thought i'd 
spare you. I'm sure i'm doing something stupid or not in the right 
order, but i have to say i'm getting confused!
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Embed microb

2007-12-05 Thread Andrew Gatt
Andrew Gatt wrote:
 tonikitoo (Antonio Gomes) wrote:
   
 Thanks use 'dpkg-buildpackage -rfakeroot'  is what i was looking for.
 However now i've got a different problem. Using this command spots a
 dependency issue with libidl-dev. Trying apt-get install libidl-dev gives:

 Reading package lists... Done
 Building dependency tree... Done
 W: Couldn't stat source package list file: chinook/explicit Packages
 (/var/lib/apt/lists/_home_maemo_maemo-sdk-nokia-binaries%5f4.0_dists_chinook_explicit_binary-i386_Packages)
 - stat (2 No such file or directory)
 W: You may want to run apt-get update to correct these problems
 E: Couldn't find package libidl-dev

 Running apt-get update gives:

 Ign file: chinook Release.gpg
 Ign file: chinook Release
 Err file: chinook/explicit Packages
   File not found
 Ign http://repository.maemo.org bora Release.gpg
 Ign http://repository.maemo.org bora Release.gpg
 Hit http://repository.maemo.org bora Release
 Hit http://repository.maemo.org bora Release
 Ign http://repository.maemo.org bora/free Packages/DiffIndex
 Ign http://repository.maemo.org bora/non-free Packages/DiffIndex
 Ign http://repository.maemo.org bora/free Sources/DiffIndex
 Ign http://repository.maemo.org bora/free Packages/DiffIndex
 Ign http://repository.maemo.org bora/non-free Packages/DiffIndex
 Hit http://repository.maemo.org bora/free Packages
 Hit http://repository.maemo.org bora/non-free Packages
 Hit http://repository.maemo.org bora/free Sources
 Hit http://repository.maemo.org bora/free Packages
 Hit http://repository.maemo.org bora/non-free Packages
 Failed to fetch
 file:/home/maemo/maemo-sdk-nokia-binaries_4.0/dists/chinook/explicit/binary-i386/Packages.gz
 File not found
 Reading package lists... Done
 W: Couldn't stat source package list file: chinook/explicit Packages
 (/var/lib/apt/lists/_home_maemo_maemo-sdk-nokia-binaries%5f4.0_dists_chinook_explicit_binary-i386_Packages)
 - stat (2 No such file or directory)
 W: You may want to run apt-get update to correct these problems
 E: Some index files failed to download, they have been ignored, or old
 ones used instead.

 As mentioned i'm using the VMWare sdk, and i've installed (double
 clicked) the Install Nokia Binaries (Chinook). Any ideas?
 
   
 humm, 'apt-get build-dep libgtkmozembed microb-engine' (or
 libgtkembedmoz, I dont recall correctly) would work, but if it dont,
 you can checkout the libidl the same way you did for libgtkembedmoz
 (same repository), and build it by yourself as well.

 https://garage.maemo.org/svn/browser/mozilla/trunk/libidl/

 about you apt-get problem, maybe copying you /etc/resolv.conf from
 outside to inside sbox ? not sure ... =/

 regards

   
 
 resolv.conf is copied over, however i did notice that the chinook 
 repositories were not set up in the sources.list file. So now mine looks 
 like this:

 deb http://repository.maemo.org/ bora free non-free
 deb-src http://repository.maemo.org/ bora free
 deb http://repository.maemo.org/extras bora free non-free
 deb http://repository.maemo.org/ chinook free non-free
 deb-src http://repository.maemo.org/ chinook free
 deb http://repository.maemo.org/extras chinook free non-free
 deb file:/home/maemo/maemo-sdk-nokia-binaries_4.0 chinook explicit

 This still didn't allow me to apt-get install libidl-dev so i I checked 
 out it of svn and ran dpkg-buildpackage -rfakeroot . This throw up two 
 more dependency issues texinfo and flex. apt-get install texinfo worked. 
 However it could not find any information on the flex package. Do i need 
 to add another repository or can i check it out and build it myself?

   
OK so i followed this http://scratchbox.org/wiki/Apophis-r4 under 
Crocodile heading which allowed me to compile libidl and libidl-dev 
which are now both installed using dpkg -i. Going back to the 
libgtkembedmoz svn checkout and running dpkg-buildpackage -rfakeroot 
throws up another dependency issue with bc. apt-get install bc doesn't 
work. Anyone know where i can get this from?



___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Embed microb

2007-12-04 Thread Andrew Gatt
Tuomas Kulve wrote:
 Andrew Gatt wrote:
   
 Hi all,

 Does anyone know if its possible to embed the browser in a new window of 
 your own program. This was possible with the original 770 OS, but they 
 removed ability in later versions. Now they've moved over to the microb 
 engine and the new 2008 OS maybe its possible again? Does anyone have 
 any ideas?
 

 I don't know much about the subject, but maybe these reveal more:

 http://browser.garage.maemo.org/docs/eal/index.html
 http://www.mozilla.org/unix/gtk-embedding.html
 https://garage.maemo.org/svn/browser/mozilla/trunk/libgtkembedmoz/

   
Thanks for that. I'm now trying to compile the libgtkembedmoz files 
inside the VMWare chinook sdk. I checked out the folder from maemo 
garage svn. I first tried to run auotgen.sh, but for some reason it 
didn't seem to decompress the src tarball into src/ so i did that 
manually, reran autogen.sh, then configure then tried make. However it 
gives me this error:

Makefile:44: ../../../../config/autoconf.mk: No such file or directory
Makefile:168: ../config/config.mk: No such file or directory
Makefile:200: ../config/rules.mk: No such file or directory

Then fails. I realise that these files do not exist but i don't know 
what these files are for, why they are not there or how i can fix it. 
Any ideas?

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Embed microb

2007-12-04 Thread Andrew Gatt
tonikitoo (Antonio Gomes) wrote:
 On 12/4/07, Andrew Gatt [EMAIL PROTECTED] wrote:
   
 Tuomas Kulve wrote:
 
 Andrew Gatt wrote:

   
 Hi all,

 Does anyone know if its possible to embed the browser in a new window of
 your own program. This was possible with the original 770 OS, but they
 removed ability in later versions. Now they've moved over to the microb
 engine and the new 2008 OS maybe its possible again? Does anyone have
 any ideas?

 
 I don't know much about the subject, but maybe these reveal more:

 http://browser.garage.maemo.org/docs/eal/index.html
 http://www.mozilla.org/unix/gtk-embedding.html
 https://garage.maemo.org/svn/browser/mozilla/trunk/libgtkembedmoz/


   
 Thanks for that. I'm now trying to compile the libgtkembedmoz files
 inside the VMWare chinook sdk. I checked out the folder from maemo
 garage svn. I first tried to run auotgen.sh, but for some reason it
 didn't seem to decompress the src tarball into src/ so i did that
 manually, reran autogen.sh, then configure then tried make. However it
 gives me this error:

 Makefile:44: ../../../../config/autoconf.mk: No such file or directory
 Makefile:168: ../config/config.mk: No such file or directory
 Makefile:200: ../config/rules.mk: No such file or directory
 

   
Thanks use 'dpkg-buildpackage -rfakeroot'  is what i was looking for. 
However now i've got a different problem. Using this command spots a 
dependency issue with libidl-dev. Trying apt-get install libidl-dev gives:

Reading package lists... Done
Building dependency tree... Done
W: Couldn't stat source package list file: chinook/explicit Packages 
(/var/lib/apt/lists/_home_maemo_maemo-sdk-nokia-binaries%5f4.0_dists_chinook_explicit_binary-i386_Packages)
 
- stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package libidl-dev

Running apt-get update gives:

Ign file: chinook Release.gpg
Ign file: chinook Release
Err file: chinook/explicit Packages
  File not found
Ign http://repository.maemo.org bora Release.gpg
Ign http://repository.maemo.org bora Release.gpg
Hit http://repository.maemo.org bora Release
Hit http://repository.maemo.org bora Release
Ign http://repository.maemo.org bora/free Packages/DiffIndex
Ign http://repository.maemo.org bora/non-free Packages/DiffIndex
Ign http://repository.maemo.org bora/free Sources/DiffIndex
Ign http://repository.maemo.org bora/free Packages/DiffIndex
Ign http://repository.maemo.org bora/non-free Packages/DiffIndex
Hit http://repository.maemo.org bora/free Packages
Hit http://repository.maemo.org bora/non-free Packages
Hit http://repository.maemo.org bora/free Sources
Hit http://repository.maemo.org bora/free Packages
Hit http://repository.maemo.org bora/non-free Packages
Failed to fetch 
file:/home/maemo/maemo-sdk-nokia-binaries_4.0/dists/chinook/explicit/binary-i386/Packages.gz
  
File not found
Reading package lists... Done
W: Couldn't stat source package list file: chinook/explicit Packages 
(/var/lib/apt/lists/_home_maemo_maemo-sdk-nokia-binaries%5f4.0_dists_chinook_explicit_binary-i386_Packages)
 
- stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old 
ones used instead.

As mentioned i'm using the VMWare sdk, and i've installed (double 
clicked) the Install Nokia Binaries (Chinook). Any ideas?
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Embed microb

2007-12-02 Thread Andrew Gatt
Hi all,

Does anyone know if its possible to embed the browser in a new window of 
your own program. This was possible with the original 770 OS, but they 
removed ability in later versions. Now they've moved over to the microb 
engine and the new 2008 OS maybe its possible again? Does anyone have 
any ideas?

Thanks

Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Completely Hide Toolbar Browser N800

2007-08-01 Thread andrew gatt
Is there any way to completely hide the browser toolbar in fullscreen 
mode on the N800?

Deselecting the toolbar for the fullscreen view from the browser menu 
hides it, but when loading a different page it pops up again, spending 
time pushing all the graphics around instead of just loading the page. 
The N770 using the later firmwares didn't pop up the toolbar when 
loading a new page. I'd like to force this behaviour on the N800 if 
possible - maybe a config file?

Thanks

Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Xephyr

2007-06-26 Thread andrew gatt
I think my Xephyr installation inside the VMWare image available is 
broken, or at least doesn't work with the framework included with the 
2.2 SDK. I've recently read a couple of mails saying that there are less 
stable versions of Xephyr about and that they have used the latest git 
version with success. I'm very unfamiliar with git, could someone please 
tell me (or point me in the direction of) how i can download and install 
the latest git version of Xephyr. For starters i can't even find it to 
download!

Thanks

Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Xephyr Maemo VMware

2007-06-25 Thread andrew gatt
I've been trying out the VMware image, although i guess this question 
could relate to any installation. I'm trying to get both 2.2 and 3.1 on 
the same scratchbox to work properly. The rootstrap seems to have 
installed fine and i can log in and compile programs in the 2.2 SDK, 
however the xephyr that is started automatically in the VMware image 
doesn't seem to support the 2.2 framework - the desktop doesn't render 
properly and the menu system doesn't work. I realise now that each SDK 
comes with its own Xephyr so I'm trying to start xephyr from the 2.2 SDK 
using:

#!/bin/sh
prefix=/scratchbox/users/maemo/targets/SDK2.2_PC/usr
export LD_LIBRARY_PATH=${prefix}/lib; export LD_LIBRARY_PATH
exec ${prefix}/bin/Xephyr :2 -host-cursor -screem 800x480z16 -dpi 96 -ac

which seems to start up Xephyr, however the usual grey background is 
white (before af-sb-init..sh start) and when i try af-sb-init.sh it 
fails with:


Starting Keyboard
maemo-launcher: invoking '/usr/bin/hildon-input-method.launch'
maemo-launcher: child (pid=6199) terminated due to signal=11
/usr/bin/af-sb-init.sh: line 1: 6198 Segmentation fault(core dumped) 
$CMD $PARAMS
Starting MAEMO AF Desktop
maemo-launcher: invoking '/usr/bin/maemo_af_desktop.launch'
maemo-launcher: child (pid=6216) terminated due to signal=11
/usr/bin/scratchbox-launcher.sh: line 114: 6215 Segmentation fault   
(core dumped) $CMD $PARAMS

Am i not supposed to use the 2.2 SDK Xephyr in which case can someone 
tell me how to get the Xephyr bundled with the VMWare image to work with 
2.2. Or can someone explain what i'm doing wrong when invoking the 2.2 
SDK Xephyr.

Thanks

Andrew

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Where is libgdk_pixbuf-2.0.la (was Compiling gtk-webcore)

2007-05-18 Thread andrew gatt

 I'm trying to have a play with gtk-webcore. I've managed to compile in 
 maemo-3.0 osb-nrcore and osb-jscore. When it came to osb-nrcit it 
 complained about librsvg. After a bit of a search i found monkey bubble 
 had a reported librsvg compiled for bora. This went in alright after 
 trying twice to install along with the common library. Now osb-nrcit 
 complains about libgdk_pixbuf-2.0.la which is wants, but can't find. 
 Well it isn't there but i'm unsure how to get it.

 Any ideas?


   
OK so does anyone know how i can get libgdk_pixbuf-2.0.la into 
scratchbox. I've been told it comes with libgtk2.0-dev, but thats 
installed (according to apt-get) but still no .la file.

Andrew

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Compiling gtk-webcore

2007-05-17 Thread andrew gatt
I'm trying to have a play with gtk-webcore. I've managed to compile in 
maemo-3.0 osb-nrcore and osb-jscore. When it came to osb-nrcit it 
complained about librsvg. After a bit of a search i found monkey bubble 
had a reported librsvg compiled for bora. This went in alright after 
trying twice to install along with the common library. Now osb-nrcit 
complains about libgdk_pixbuf-2.0.la which is wants, but can't find. 
Well it isn't there but i'm unsure how to get it.

Any ideas?

Thanks

Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: Launch maemo browser in fullscreen mode

2007-03-19 Thread andrew gatt
There is no way to open the opera browser into fullscreen, i spent quite 
a bit of time trying various solutions and even tried implementing the 
open embedded browser via dbus, however these calls are deprecated. 
The only hope is to use a different browser solution as a base.


Andrew

Tomàs Jiménez Lozano wrote:

As a first step to achieve some kind of kiosk mode I am trying to open
maemo browser at startup in fullscreen mode.

I've found that, dislike desktop opera browser, maemo browser has no
command line switch option (--fullscreen) to do this.

I am trying now to launch browser via dbus rpc capabilities. I've found
some osso-browser-interface.h document where it says the only methods
available for remote calling are for opening a new window or opening a
url.
There is another collection of methods but they seem to be intended for
embedded browser windows within a main application window.
One of this embedded-only methods allows you to send a HW Key code to
the browser, that is just what I am trying to do.
Disgracefully I assume it only works for this embedded browsers.

Does anyone know if there is a way to open maemo browser in fullscreen?


Thanks in advance

Tomàs Jiménez
oranginalab

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers

  

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] UDP and souce code

2007-02-10 Thread andrew gatt
I've been using UDP sockets to broadcast and receive packets. As far as 
i've used them they are exactly the same as the desktop version. I'd 
have been surprised if they were any different. General Linux UDP 
programming tutorials will be a good start.


Andrew

Javi H.U. wrote:

Hi!

I have just started to programs things for the NOKIA 770 and I am 
working on transport layer using UDP sockets but well before to do 
anything with it I have some questions like if the UDP in the Nokia 
770  is the same than the UDP of a normal Debian or it is adapted for 
the PDA. Also I'd like to get the source code of the UDP to take a 
look and know exactly how it works.


If anyone has any experiences in the UDP, sockets in the Nokia 770 or 
know where I could found the source code,... please could me anything!??


Thanks in advance

HUJ

_
¿Estás pensando en cambiar de coche? Todas los modelos de serie y 
extras en MSN Motor. http://motor.msn.es/researchcentre/


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Local DNS

2007-01-31 Thread andrew gatt



Marius Gedminas wrote:

On Mon, Jan 29, 2007 at 08:36:05PM +0200, Marius Gedminas wrote:
  

On Mon, Jan 29, 2007 at 05:37:06PM +, andrew gatt wrote:


The resolver is NOT accepting the option domain-name from the DHCP
server - so even if the server says You are in foo.example.net, the
resolver is NOT being instructed to try appending foo.example.net to a
domain if it fails to resolve.

Ideally, the device would allow you to specify a search domain, AND accept
the domain from DHCP as a second search, and add them both to resolv.conf
as search domains - but it doesn't.
 

Yes i just added 'search mydomain' as the first line of the resolv.conf 
and it works. Why does this fail on the 770 when all my other machines 
are set up correctly from my DHCP server. Is this not a bug in ITOS2006 
or have i missed something?
  

I personally consider it to be a bug, although I haven't reported it to
https://maemo.org/bugzilla/ yet.



Okay, it's https://maemo.org/bugzilla/show_bug.cgi?id=995 now.

Marius Gedminas
  
Can anyone suggest a programmable work around for this problem? I'm 
trying to keep a client / server situation simple to set up. As the 
tablet requires DHCP to function (by default) i was going to make the 
server use DHCP and set up dynamic DNS so the tablet can find the server 
with just the name. However as pointed out this doesn't work i.e. just 
putting the 'myserver' in the address bar of the browser.


Additionally, adding the domain does not work so 'myserver.mydomain' 
does not resolve to the right address. I'm guessing this is because the 
/tmp/resolv.conf.wlan0 has 'domain mydomain' as the first line and not 
'search mydomain'.


When i gain root access i can add 'search mydomain' to /etc/resolv.conf 
and it works, but i don't want to have to gain root from inside a 
program (not even sure its possible?). Is there anyway to get the tablet 
to resolve the name?


Also could anyone tell me if this bug exists on the N800 as well?

Thanks

Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Local DNS

2007-01-31 Thread andrew gatt

Marius Gedminas wrote:

I received a copy of this email (with a different message-ID)
personally, and I replied to it personally.  Here's my reply, because I
think it may be useful to others.

  

Sorry reply failure (reply instead of all)!
I'm 
trying to keep a client / server situation simple to set up. As the 
tablet requires DHCP to function (by default) i was going to make the 
server use DHCP and set up dynamic DNS so the tablet can find the server 
with just the name. However as pointed out this doesn't work i.e. just 
putting the 'myserver' in the address bar of the browser.


Additionally, adding the domain does not work so 'myserver.mydomain' 
does not resolve to the right address.



Whoa.  Now this works for me.  Are you sure your DNS/DHCP servers are
configured properly?

  
I think they are because i can use the 'myserver' only name from any 
other browser on any other machine on my network and also the 
myserver.mydomain
I'm guessing this is because the 
/tmp/resolv.conf.wlan0 has 'domain mydomain' as the first line and not 
'search mydomain'.



Shouldn't matter.

  
Without the 'search mydomain' as the first line on the /etc/resolv.conf 
neither 'myserver' or 'myserver.mydomain' works. With it in, both do.

Yes, hack the scripts in /etc/udhcpc/.  I think the only file that is
actually used is udhcpc.script, but that's my personal guess.  Add
something like

echo nameserver 127.0.0.1  /etc/resolv.conf
echo search $domain  /etc/resolv.conf

to the 'bound|renew)' part in the case statement.

Uh, I'm not responsible if fiddling with that file breaks your N770. ;)

  

I'll have a look, thanks for the tips.

Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Local DNS

2007-01-31 Thread andrew gatt




I'm trying to keep a client / server situation simple to set up. As 
the tablet requires DHCP to function (by default) i was going to 
make the server use DHCP and set up dynamic DNS so the tablet can 
find the server with just the name. However as pointed out this 
doesn't work i.e. just putting the 'myserver' in the address bar of 
the browser.


Additionally, adding the domain does not work so 'myserver.mydomain' 
does not resolve to the right address.



Whoa.  Now this works for me.  Are you sure your DNS/DHCP servers are
configured properly?

  
I think they are because i can use the 'myserver' only name from any 
other browser on any other machine on my network and also the 
myserver.mydomain
I'm guessing this is because the /tmp/resolv.conf.wlan0 has 'domain 
mydomain' as the first line and not 'search mydomain'.



Shouldn't matter.

  
Without the 'search mydomain' as the first line on the 
/etc/resolv.conf neither 'myserver' or 'myserver.mydomain' works. With 
it in, both do.
Sorry i've just retested this and adding that line doesn't help. I'm now 
not sure what i did to get it working. I was trying too many things and 
wasn't taking enough notice of what i was trying.


Andrew

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] Local DNS

2007-01-29 Thread andrew gatt
I have a router that also runs DHCP and DNS, i can request a lease with 
a udhcpc client. Using the -H hostname switch i can also update the DNS 
entry for the given IP address. However when i try and access this 
server doesn't work from the 770. It works from all my other machines 
(Windows and Linux) on all browsers.


E.g. DNS entry is:
myserver   10.0.0.1

In browser address bar:
http://myserver

The only system this doesn't work on is the 770 with ITOS2007 (i don't 
have any other versions). Am i doing something wrong or is the DNS 
resolving not set up properly on the 770? I did check the 
/etc/resolv.conf file, which didn't have the right nameserver set, so i 
added it manually but it didn't help.


Any ideas?

Thanks
Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Local DNS

2007-01-29 Thread andrew gatt

David Hagood wrote:

In browser address bar:
http://myserver

The only system this doesn't work on is the 770 with ITOS2007 (i don't
have any other versions). Am i doing something wrong or is the DNS
resolving not set up properly on the 770?



The resolver is NOT accepting the option domain-name from the DHCP
server - so even if the server says You are in foo.example.net, the
resolver is NOT being instructed to try appending foo.example.net to a
domain if it fails to resolve.

Ideally, the device would allow you to specify a search domain, AND accept
the domain from DHCP as a second search, and add them both to resolv.conf
as search domains - but it doesn't.


  
Yes i just added 'search mydomain' as the first line of the resolv.conf 
and it works. Why does this fail on the 770 when all my other machines 
are set up correctly from my DHCP server. Is this not a bug in ITOS2006 
or have i missed something?


resolv.conf is not being updated at all, but looking at udhcpc.script 
(in /etc/udhcpc) it should work, and udhcpc works fine with a similar 
script on my linux machine with the same DHCP server.


Thanks

Andrew

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] osso-browser-interface.h

2007-01-16 Thread Andrew Gatt
So, i'm still struggling to get a browser window to
embed, but i came across this maemo garage project:
https://garage.maemo.org/projects/browser/ 
If you download the maemo-browser-interface tarball,
it seems to define osso-browser-interface.h. This
version misses out the define for the new embed
window. Can anyone confirm that
OSSO_BROWSER_PLUG_NEW_WINDOW_REQ has been removed from
the new 2007 software (from the maemo 3.0 scratchbox
install? - i'm a bit hesitant to install it as i'm
still programming for the 770 and have seen problems
running them both). If so i think i'll abandon it as a
programming option. That garage project does have some
interesting functions under the browser engine
abstraction layer, anyone had a play with these? Or
does anyone know how the current email client embeds
the browser engine in the new mail view?

Any help would be appreciated.

Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Re: gethostbyname() ?? Unable to become root

2007-01-13 Thread andrew gatt

Hi,

I'm just trying to get example_libosso.c to compile and run. Compiling 
seems fine, but when i run it, the osso_initialize fails. I thought this 
was because it didn't have the D-Bus service file and the .desktop file 
so i added those and it still fails. I was hoping someone could point 
out where i've gone wrong. example_libosso.c is unmodified apart from an 
error message print out on osso_initialise.


Thanks

Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Re: gethostbyname() ?? Unable to become root

2007-01-13 Thread andrew gatt
(sorry about the title, i'll keep it the same so the answer is in the 
same thread)


Looks like you just have to launch it from the menu, you can't just 
./example_libosso to execute it.


Andrew

andrew gatt wrote:

Hi,

I'm just trying to get example_libosso.c to compile and run. Compiling 
seems fine, but when i run it, the osso_initialize fails. I thought 
this was because it didn't have the D-Bus service file and the 
.desktop file so i added those and it still fails. I was hoping 
someone could point out where i've gone wrong. example_libosso.c is 
unmodified apart from an error message print out on osso_initialise.


Thanks

Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] dbus_bus_activate_service

2007-01-13 Thread andrew gatt
Is there any way to compile and use dbus_bus_service_activate under 
maemo. 
https://stage.maemo.org/svn/maemo/projects/email/osso-email/trunk/src/ui/viewcallback.c
Seems to suggest you can, however i can't get the function to compile, 
the compiler flags it as an undefined reference with all the headers 
i've tried.


Doing `grep dbus_bus_activate_service /usr/include/ -R` doesn't bring 
anything up so does it not exist?


Any ideas?

Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Creating Home Applet

2006-12-19 Thread andrew gatt
Thanks for all the help. There is just one question left though, what 
dbus message do i send to make the browser window go full screen?


Thanks

Andrew



On 12/18/06, andrew gatt [EMAIL PROTECTED] wrote:

I want to create a home applet (and task navigator entry) that can exist
alongside the current web shortcut applet, but basically provide the
same function. Even if someone could just point me in the right
direction of the source code it would probably be enough.

I basically want an applet that can start a new browser window and make
it display fullscreen, but i can't work out how to start the browser
with any kind of commandline options (if this is the way its done). I've
found /usr/bin/browser starts the browser, but no options seem to be
passed through this - it seem to be just a link to
/usr/bin/maemo-invoker (?).



Any help would be great, thanks

Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers




___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Creating Home Applet

2006-12-19 Thread andrew gatt
Also is there a dbus message which turns off the toolbar as well? Or is 
this only accessible through the browser menu.


Andrew


On 12/18/06, andrew gatt [EMAIL PROTECTED] wrote:

I want to create a home applet (and task navigator entry) that can exist
alongside the current web shortcut applet, but basically provide the
same function. Even if someone could just point me in the right
direction of the source code it would probably be enough.

I basically want an applet that can start a new browser window and make
it display fullscreen, but i can't work out how to start the browser
with any kind of commandline options (if this is the way its done). I've
found /usr/bin/browser starts the browser, but no options seem to be
passed through this - it seem to be just a link to
/usr/bin/maemo-invoker (?).



Any help would be great, thanks

Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers




___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Creating Home Applet

2006-12-19 Thread andrew gatt
OK so it seems that someone else asked this question before and didn't 
get a reply - is there no way to remotely put an application in 
fullscreen mode? It can be done with code executed by the application, 
but i suppose there is no dbus message that can activate it? Is it 
possible to fake the F6 key and send that to the application, therefore 
faking the hardware keypress? I only want to start the application in 
fullscreen mode and after that leave control to the user.


Thanks

Andrew


On 12/18/06, andrew gatt [EMAIL PROTECTED] wrote:

I want to create a home applet (and task navigator entry) that can exist
alongside the current web shortcut applet, but basically provide the
same function. Even if someone could just point me in the right
direction of the source code it would probably be enough.

I basically want an applet that can start a new browser window and make
it display fullscreen, but i can't work out how to start the browser
with any kind of commandline options (if this is the way its done). I've
found /usr/bin/browser starts the browser, but no options seem to be
passed through this - it seem to be just a link to
/usr/bin/maemo-invoker (?).


Any help would be great, thanks

Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] Creating Home Applet

2006-12-18 Thread andrew gatt
I want to create a home applet (and task navigator entry) that can exist 
alongside the current web shortcut applet, but basically provide the 
same function. Even if someone could just point me in the right 
direction of the source code it would probably be enough.


I basically want an applet that can start a new browser window and make 
it display fullscreen, but i can't work out how to start the browser 
with any kind of commandline options (if this is the way its done). I've 
found /usr/bin/browser starts the browser, but no options seem to be 
passed through this - it seem to be just a link to 
/usr/bin/maemo-invoker (?).


Any help would be great, thanks

Andrew
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers