Thanks for your tips and suggestions Kevin!
When you refer to X server, do you mean Cygwin/X? And in
order to get the server running, I'm assuming I would have
to install the x11 package (http://x.cygwin.com/docs/ug/setup.html#setup-cygwin-x-installing)?
How do you go about setting the firewall exceptions in
Windows XP for ports 6000 to 6003? And what do you mean by
"IIRC"?
Thanks again and in advance!
--- In ,
Kevin Cozens m("...","kevin");"><> wrote:
>
> On 11-11-30 12:30 AM, drex459 wrote:
> > Larry, Martin, I tried entering the absolute to
the gtk.h header file
> > with #include '/full/path/gtk.h'
>
> I hope you didn't actually use /full/path in your
actual include. That was
> just an example of the format to use. The usual way
to include headers would
> be to tell the compiler where to find the gtk header
files using the
> compiler option of the form
"-I/path/to/gtk/include/files" then you can just
> use '#include "gtk.h"' in your C source file.
>
> > I tried following along with the tutorial
> > (http://www.micahcarrick.com/gtk-glade-tutorial-part-1.html)
that Mark
> > had suggested, and it was going fine up until
running the compiled code
> > "./tutorial", which presents me with the
following error: "Gtk-WARNING
> > **: cannot open display:". And as a result
nothing is displayed.
>
> The message is indicating the GTK+ based program
can't find or can't access
> the X server. If the program is being run on a
TS-7xxx that message is
> because the board is (most likely) not running X. The
tutorial was expecting
> users to be developing on a machine running a
graphical desktop.
>
> THe solution is still fairly simple. You should use a
network connection
> between your computer and the TS-7xxx board. Look up
information on setting
> the DISPLAY environment variable for X Windows. You
may also need to set the
> firewall on your computer to allow traffic from the
TS board on ports in the
> low 6000 range (6000 to 6003, IIRC). You will also
need to use the xhost
> command on your computer (not the TS one) to allow
the program on the TS
> board to use your computer to act as a host for the
program running on the
> TS board.
>
> > FYI: I'm connected to the board via serial port.
I'm developing via a
> > telnet (PUTTY) session, which connects me using
UNIX (Debian).
>
> You may be able to do X over a serial port but I
wouldn't recommend it. You
> really should use a network connection if you are
develop some GUI based
> programs on the TS board.
>
> Since GTK+ programs are portable you can do the GUI
design and basic
> look/feel testing on your main computer before adding
in the rest of the
> logic required to make your app do something where
that additional code
> would only run on the TS board.
>