Christian Iversen schreef:
....
> 
> What is your "arm-board"? It doesn't sound like the machine that runs
> your X-server?
> 
> If you use a unix machine as a workstation, then try this line:
> 
> DISPLAY=:0 xhost +
> 
> (that just runs "xhost +" with the additional environment of
> "DISPLAY=:0" so that we are sure it is set)
> 
> This problem is not at all related to your program - it's a generic X
> problem. Try to get something like xterm or xclock running on the arm
> board, and you will see the same problem unless you fix the underlying
> problem. (Which could indeed be a missing $DISPLAY environment var, as
> pointed out by Tony Maro)
> 
Christian,
Sorry about the missing information, but my "arm-board" is a PC104
computer-board with a PXA255 chip (Arcom Viper if you're interested). It
has a color LCD of 320x240 pixels. My previous application in FPC with
handwritten GTK2 code does run fine on that board, displaying on the
LCD. The GUI design was made with Glade and translated to FPC.
Now I'm trying to run a minimal Lazarus GTK2 application (a form with a
button) on the same board, with the problem I reported.
So that arm-board is the machine that runs my X-server. I searched for a
file named xhost, but his doesn't exist on the arm-board.
"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.

Sam, could you give quick instructions about X-forwarding ?
The board does not have a running X-server when booted. I have to ssh to
it and do startx. Startx gives me an xterm. What next ? With X running I
tried another ssh to it, now with -X added, seems to do nothing, I mean
I get a prompt but nothing else. There I tried to start my app :
./project1 -> problem reported
DISPLAY=:0 ./project1 -> problem reported
I was curious and I tried running the app without a running X : the same
problem.

I hope I gave enough information now. Thanks for the responses anyway.
Regards,
Koenraad Lelong.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to