ts-7000
[Top] [All Lists]

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

To:
Subject: Re: [ts-7000] Re: TS-TPC-8390/TS-4800 - GTK+ and Glade3 - Beginner Questions
From: Mark Featherston <>
Date: Tue, 06 Dec 2011 08:11:30 -0700


If you're using the (mostly) stock TS-4800 image it will run X in debian by default.  Try running "DISPLAY=:0 yourapp" to launch your application.

When you execute programs from the interface, the $DISPLAY variable is already set.  To run from the console you will just need to set this.
Best Regards, 
________________________________________________________________
 Mark Featherston, Technologic Systems | voice: (480) 837-5200
 16525 East Laser Drive                | fax: (480) 837-5300
 Fountain Hills, AZ 85268              | web: www.embeddedARM.com 

On 12/05/2011 08:59 PM, drex459 wrote:
 

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.
>



__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<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