ts-7000
[Top] [All Lists]

[ts-7000] Re: TS-TPC-8390/TS-4800 - GTK+ and Glade3 - Beginner Questions

To:
Subject: [ts-7000] Re: TS-TPC-8390/TS-4800 - GTK+ and Glade3 - Beginner Questions
From: "drex459" <>
Date: Tue, 06 Dec 2011 03:59:41 -0000
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 <> 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.
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU