Re: [maemo-developers] network access problem ...

2005-08-23 Thread Mikhail Sobolev
On Wed, Aug 24, 2005 at 03:00:06AM -0300, Jorge Souza wrote:
> 
> To acquire a network connection on the target device
> all we have to do is to set LD_PRELOAD environment
> variable so that libosso-ic-preload.so is loaded
> before starting the application. 
> 
> #!/bin/sh
> export LD_PRELOAD=/usr/lib/libosso-ic-preload.so
> /usr/bin/my_application
> 
> 
> 
> So, as a good obedient boy, I did exactually what was
> purposed ... Unfortunatley, neither the application
> nor the enviroment started up ! It crashes with the
> following error msg:
> 
> Starting DBUS system bus
> Starting D-BUS session bus daemon
> /usr/bin/scratchbox-launcher.sh: 48: source: not found
> Starting Sapwood image server
> _X11TransSocketOpenCOTSClient: Unable to open socket for tcp
> _X11TransOpen: transport open failed for tcp/127.0.0.1:1
Probably, you set this variable too early. As I read the document
excerpt you gave, it should be done before you start the application.
As your log suggests, you did it before af-sb-init.sh start

--
Misha


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] network access problem ...

2005-08-23 Thread Jorge Souza
Hey guys ...

I am getting some troubles when I try to run an
application that requires internet access for
something. As specified at the maemo tutorial, 


To acquire a network connection on the target device
all we have to do is to set LD_PRELOAD environment
variable so that libosso-ic-preload.so is loaded
before starting the application. 

#!/bin/sh
export LD_PRELOAD=/usr/lib/libosso-ic-preload.so
/usr/bin/my_application



So, as a good obedient boy, I did exactually what was
purposed ... Unfortunatley, neither the application
nor the enviroment started up ! It crashes with the
following error msg:

Starting DBUS system bus
Starting D-BUS session bus daemon
/usr/bin/scratchbox-launcher.sh: 48: source: not found
Starting Sapwood image server
_X11TransSocketOpenCOTSClient: Unable to open socket
for tcp
_X11TransOpen: transport open failed for
tcp/127.0.0.1:1
sapwood-server[23634]: GLIB WARNING ** Gdk - cannot
open display: (null)
/usr/bin/scratchbox-launcher.sh: 48: source: not found
Starting Matchbox window manager
Starting Keyboard
/usr/bin/scratchbox-launcher.sh: 48: source: not found
Starting MAEMO AF Desktop
[sbox-rootstrap32: ~/] >
_X11TransSocketOpenCOTSClient: Unable to open socket
for tcp
_X11TransOpen: transport open failed for
tcp/127.0.0.1:1
matchbox-wm: can't open display! check your DISPLAY
variable.
_X11TransSocketOpenCOTSClient: Unable to open socket
for tcp
_X11TransOpen: transport open failed for
tcp/127.0.0.1:1
hildon-input-method[23645]: GLIB WARNING ** Gtk -
cannot open display:
_X11TransSocketOpenCOTSClient: Unable to open socket
for tcp
_X11TransOpen: transport open failed for
tcp/127.0.0.1:1
maemo_af_desktop[23653]: GLIB WARNING ** Gtk - cannot
open display:

does anybody could help with this ?!

thanks in advanced

Jorge Souza

-- Jorge Souza
Embedded Linux App Developer





___ 
Yahoo! Acesso Grátis - Internet rápida e grátis. 
Instale o discador agora! http://br.acesso.yahoo.com/
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers