Marc Santhoff schreef:
> Am Sonntag, den 22.07.2007, 12:44 +0200 schrieb Koenraad Lelong:
>
>> "startx" on the board (via ssh) gives me a nice xterm with an active
>> mouse-cursor on the board's LCD. There I can run my "old" GTK2
>> application. If I start my lazarus app I get the error-message on the LCD.
>> If I do xinit old-app (again via ssh), I get my old-app running without
>> nice borders etc. xinit lazarus-app gives me the same problem, but the
>> error-message comes in my ssh-shell on the development PC.
>> Just now, from the directory where my app is I did :
>> DISPLAY=:0 ./project1
>> with the same problem. My Lazarus app is called project1 b.t.w.
>
> I don't know why it worked with a glade app, but it looks as if you're
> not starting the X server at all.
>
> Try "man startx" on the ARM or another machine with full manpages
> installed. The file "startx" is a shell script, it reads ".xinitrc"
> first and starts the applications and window manager named therein (at
> the end of the file).
>
> Try starting project1 form your ~/.xinitrc to see if that works.
>
> HTH,
> Marc
>
Could you explain why you think the X-server is not started ? If I do
startx then I get :
[EMAIL PROTECTED]:~> ssh [EMAIL PROTECTED]
[EMAIL PROTECTED]'s password:
[EMAIL PROTECTED] root# startx
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/viper:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
X Window System Version 7.0.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 7.0
Build Operating System:Linux 2.6.15.6 i686
Current Operating System: Linux viper 2.6.16.28-arcom1-1-viper #1 Wed
Sep 13 11:29:51 BST 2006 armv5tel
Build Date: 20 March 2006
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Jul 22 15:57:40 2007
(==) Using config file: "/etc/X11/xorg.conf"
And the cursor does not return until I do a <ctrl><alt><backspace> on
the arm-machine.
Just now I tried to start project1 (the Lazarus-project) which gave me
the error, then right after it my GTK2-app (which displays a form
showing it failed, because of missing hardware). See
http://users.edpnet.be/brouwerij/pics/p7220010.jpg (450k) for a picture
of this.
As for xinitrc, there is no dot-version of it, only
/etc/X11/xinit/xinitrc, this contains :
#! /bin/sh
if [ -e /usr/bin/x-window-manager ]; then
if [ -e /usr/bin/x-terminal-emulator ]; then
x-terminal-emulator &
fi
exec x-window-manager
fi
echo "No window manager available." >&2
exit 1
I modified it to :
#! /bin/sh
if [ -e /usr/bin/x-window-manager ]; then
if [ -e /home/arcom/project1 ]; then
/home/arcom/project1 &
fi
exec x-window-manager
fi
echo "No window manager available." >&2
exit 1
Result is the same :
[EMAIL PROTECTED] root# startx
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/viper:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
X Window System Version 7.0.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 7.0
Build Operating System:Linux 2.6.15.6 i686
Current Operating System: Linux viper 2.6.16.28-arcom1-1-viper #1 Wed
Sep 13 11:29:51 BST 2006 armv5tel
Build Date: 20 March 2006
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Jul 22 18:13:15 2007
(==) Using config file: "/etc/X11/xorg.conf"
(project1:3824): Gtk-WARNING **: cannot open display:
Other suggestions ?
Regards,
Koenraad lelong.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives