No, I'm not using a Makefile. I'm not sure how or why I would need to use one.
When you mention the -I option, are you recommending I use that for the gcc
compiler? Currently, I'm just compiling in the following way: gcc -o output
input.c
Before I do any coding, I want to make sure that I can access the GTK header.
Here's what my skeleton C code looks like:
#include <gtk/gtk.h>
int main()
{
return 0;
}
--- In Larry <> wrote:
>
> Check out the -I option for the compiler. Are you using a Makefile?
>
> On 11/28/2011 12:00 PM, drex459 wrote:
> >
> > I'm still having issues in trying to access the GTK header files in my
> > code through the #include line. I've moved the libraries to where my
> > .c file is located, and I've tried moving my code to where the
> > libraries are too, but it keeps complaining that the file or directory
> > doesn't exist.
> >
> > Is there something special that I need to do to be able to access the
> > appropriate headers within the code?
> >
> > --- In <ts-7000%40yahoogroups.com>,
> > "drex459" <dexterjagula@> wrote:
> > >
> > > I didn't see your response Javcie.
> > >
> > > --- In <ts-7000%40yahoogroups.com>,
> > "Javcie" <ylcl224421@> wrote:
> > > >
> > > >
> > > > --- In <ts-7000%40yahoogroups.com>,
> > "drex459" <dexterjagula@> wrote:
> > > > >
> > > > > Running 'apt-get update' before 'apt-get install libgtk2.0-dev' did
> > > > the trick! Thanks for you help guys! It took about 10 minutes or so to
> > > > get everything (I think) it needed and did the unzipping and
> > > > installation of the various package elements.
> > > > >
> > > > > I just want to run a simple "hello world" application with GTK, but
> > > > I'm having a bit of trouble pointing to the location of the header
> > file
> > > > (gtk.h).
> > > > >
> > > > > The file is located at: /usr/include/gtk-2.0/gtk/gtk.h and when
> > I put
> > > > that into the include location (i.e. #include
> > > > </usr/include/gtk-2.0/gtk/gtk.h>), it complains that there is no such
> > > > file or directory. I also tried #include
> > > > <usr/include/gtk-2.0/gtk/gtk.h>, but got the same result.
> > > > >
> > > > > Do I have to add the location of gtk.h into the Debian UNIX path and
> > > > just use #include <gtk.h>, or can I access the header this way? If I
> > > > have to add it to the path, how do I go about doing this? Sorry,
> > I'm not
> > > > familiar with Debain at all. And I just need some momentum to get
> > > > started, and then I can run-through the tutorials after that to get
> > > > going. Thanks!
> > > > >
> > > > > --- In
> > <ts-7000%40yahoogroups.com>, Mark Featherston mark@ wrote:
> > > > > >
> > > > > > Assuming your network doesn't have any kind of restrictions
> > that may
> > > > be
> > > > > > interfering that should be it. You may want to read through
> > some of
> > > > > > Debian's documentation on package management:
> > > > > >
> > > >
> > http://www.debian.org/doc/manuals/debian-faq/ch-pkgtools.en.html#s-pkgpr\
> > <http://www.debian.org/doc/manuals/debian-faq/ch-pkgtools.en.html#s-pkgpr>>
> > > ogs
> > > > > >
> > > > > > The 'apt-get update' command will download a list of packages from
> > > > > > Debian's repository. This includes some other relevant data on
> > each
> > > > > > package such as the version, dependencies, what it provides, a
> > file
> > > > > > list, a short description, and more. 'apt-get install' often will
> > > > not
> > > > > > work unless your local repository of this information is up to
> > date.
> > > > > >
> > > > > > The --fix-missing option will comment out repositories when
> > you run
> > > > > > 'apt-get update --fix-missing' if they fail to download the
> > list of
> > > > > > packages. I wouldn't recommend this to be commonly used since it
> > > > would
> > > > > > still just comment out the repository if it turned out to be a
> > > > network
> > > > > > issue.
> > > > > >
> > > > > > 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 11/23/2011 02:23 PM, drex459 wrote:
> > > > > > >
> > > > > > > No I haven't. I wasn't sure exactly what that line meant
> > > > especially
> > > > > > > the "--fix-missing" part.
> > > > > > >
> > > > > > > I'll try 'apt-get update'. Anything else I should try?
> > > > > > >
> > > > > > > --- In
> > <ts-7000%40yahoogroups.com> <ts-7000%40yahoogroups.com>,
> > > > > > > Mark Featherston <mark@> wrote:
> > > > > > > >
> > > > > > > > >E: Unable to fetch some archives, maybe run apt-get update or
> > > > try with
> > > > > > > > --fix-missing?
> > > > > > > >
> > > > > > > > Did you run an 'apt-get update'?
> > > > > > > >
> > > > > > > > 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 11/23/2011 11:27 AM, drex459 wrote:
> > > > > > > > >
> > > > > > > > > I tried using 'apt-get' for the libgtk2.0-dev package so
> > that
> > > > I can
> > > > > > > > > get the appropriate headers, etc., but I got the following
> > > > errors
> > > > > > > > > connecting. Any ideas on what's causing this?
> > > > > > > > > I made sure that I had a good network connection.
> > > > > > > > >
> > > > > > > > > Err http://ftp.us.debian.org squeeze/main libmozjs2d
> > > > 1.9.1.16-6
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Err http://ftp.us.debian.org squeeze/main xulrunner-1.9.1
> > > > 1.9.1.16-6
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Err http://ftp.us.debian.org squeeze/main
> > libwebkit-1.0-common
> > > > 1.2.6-2
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Err http://ftp.us.debian.org squeeze/main libwebkit-1.0-2
> > > > 1.2.6-2
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Err http://ftp.us.debian.org squeeze/main perl-modules
> > > > > > > 5.10.1-17squeeze1
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Err http://ftp.us.debian.org squeeze/main perl
> > > > 5.10.1-17squeeze1
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Err http://ftp.us.debian.org squeeze/main libperl5.10
> > > > > > > 5.10.1-17squeeze1
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Err http://ftp.us.debian.org squeeze/main perl-base
> > > > 5.10.1-17squeeze1
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Err http://ftp.us.debian.org squeeze/main git 1:1.7.2.5-2
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Err http://ftp.us.debian.org squeeze/main libfreetype6-dev
> > > > 2.4.2-2.1
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Err http://ftp.us.debian.org squeeze/main libpng12-dev
> > > > 1.2.44-1
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Failed to fetch
> > > > > > > > >
> > > > > > >
> > > >
> > http://ftp.us.debian.org/debian/pool/main/i/iceweasel/libmozjs2d_1.9.1.1\
> > <http://ftp.us.debian.org/debian/pool/main/i/iceweasel/libmozjs2d_1.9.1.1>>
> > > 6-6_armel.deb
> > > > > > >
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Failed to fetch
> > > > > > > > >
> > > > > > >
> > > >
> > http://ftp.us.debian.org/debian/pool/main/i/iceweasel/xulrunner-1.9.1_1.\
> > <http://ftp.us.debian.org/debian/pool/main/i/iceweasel/xulrunner-1.9.1_1.>>
> > > 9.1.16-6_armel.deb
> > > > > > >
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Failed to fetch
> > > > > > > > >
> > > > > > >
> > > >
> > http://ftp.us.debian.org/debian/pool/main/w/webkit/libwebkit-1.0-common_\
> > <http://ftp.us.debian.org/debian/pool/main/w/webkit/libwebkit-1.0-common_>>
> > > 1.2.6-2_all.deb
> > > > > > >
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Failed to fetch
> > > > > > > > >
> > > > > > >
> > > >
> > http://ftp.us.debian.org/debian/pool/main/w/webkit/libwebkit-1.0-2_1.2.6\
> > <http://ftp.us.debian.org/debian/pool/main/w/webkit/libwebkit-1.0-2_1.2.6>>
> > > -2_armel.deb
> > > > > > >
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Failed to fetch
> > > > > > > > >
> > > > > > >
> > > >
> > http://ftp.us.debian.org/debian/pool/main/p/perl/perl-modules_5.10.1-17s\
> > <http://ftp.us.debian.org/debian/pool/main/p/perl/perl-modules_5.10.1-17s>>
> > > queeze1_all.deb
> > > > > > >
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Failed to fetch
> > > > > > > > >
> > > > > > >
> > > >
> > http://ftp.us.debian.org/debian/pool/main/p/perl/perl_5.10.1-17squeeze1_\
> > <http://ftp.us.debian.org/debian/pool/main/p/perl/perl_5.10.1-17squeeze1_>>
> > > armel.deb
> > > > > > >
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Failed to fetch
> > > > > > > > >
> > > > > > >
> > > >
> > http://ftp.us.debian.org/debian/pool/main/p/perl/libperl5.10_5.10.1-17sq\
> > <http://ftp.us.debian.org/debian/pool/main/p/perl/libperl5.10_5.10.1-17sq>>
> > > ueeze1_armel.deb
> > > > > > >
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Failed to fetch
> > > > > > > > >
> > > > > > >
> > > >
> > http://ftp.us.debian.org/debian/pool/main/p/perl/perl-base_5.10.1-17sque\
> > <http://ftp.us.debian.org/debian/pool/main/p/perl/perl-base_5.10.1-17sque>>
> > > eze1_armel.deb
> > > > > > >
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Failed to fetch
> > > > > > > > >
> > > > > > >
> > > >
> > http://ftp.us.debian.org/debian/pool/main/g/git/git_1.7.2.5-2_armel.deb
> > > > 404
> > > > > > >
> > > > > > > > > Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Failed to fetch
> > > > > > > > >
> > > > > > >
> > > >
> > http://ftp.us.debian.org/debian/pool/main/f/freetype/libfreetype6-dev_2.\
> > <http://ftp.us.debian.org/debian/pool/main/f/freetype/libfreetype6-dev_2.>>
> > > 4.2-2.1_armel.deb
> > > > > > >
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > Failed to fetch
> > > > > > > > >
> > > > > > >
> > > >
> > http://ftp.us.debian.org/debian/pool/main/libp/libpng/libpng12-dev_1.2.4\
> > <http://ftp.us.debian.org/debian/pool/main/libp/libpng/libpng12-dev_1.2.4>>
> > > 4-1_armel.deb
> > > > > > >
> > > > > > > > > 404 Not Found [IP: 199.6.12.70 80]
> > > > > > > > > E: Unable to fetch some archives, maybe run apt-get
> > update or
> > > > try
> > > > > > > with
> > > > > > > > > --fix-missing?
> > > > > > > > >
> > > > > > > > > --- In
> > <ts-7000%40yahoogroups.com>
> > > > <ts-7000%40yahoogroups.com>
> > > > > > > <ts-7000%40yahoogroups.com>,
> > > > > > > > > "drex459" <dexterjagula@> wrote:
> > > > > > > > > >
> > > > > > > > > > Thanks for the help and resources guys!
> > > > > > > > > >
> > > > > > > > > > I'll definitely check it out and let you know if I
> > have any
> > > > > > > specific
> > > > > > > > > questions.
> > > > > > > > > >
> > > > > > > > > > --- In
> > <ts-7000%40yahoogroups.com>
> > > > > > > <ts-7000%40yahoogroups.com>
> > > > <ts-7000%40yahoogroups.com>,
> > > > > > > > > "Rafael_Sotomayor" <rsotomayorb@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Mark,
> > > > > > > > > > >
> > > > > > > > > > > Hi again.
> > > > > > > > > > >
> > > > > > > > > > > Please look at these tutorial below, it would be helpful
> > > > > > > > > > >
> > > > > > > > > > >
> > http://www.micahcarrick.com/gtk-glade-tutorial-part-1.html
> > > > > > > > > > >
> > > > > > > > > > >
> > http://www.youtube.com/watch?v=vOGK3TveDDk&feature=related
> > <http://www.youtube.com/watch?v=vOGK3TveDDk&feature=related>
> > > > > > > <http://www.youtube.com/watch?v=vOGK3TveDDk&feature=related
> > <http://www.youtube.com/watch?v=vOGK3TveDDk&feature=related>>
> > > > > > > > >
> > <http://www.youtube.com/watch?v=vOGK3TveDDk&feature=related
> > <http://www.youtube.com/watch?v=vOGK3TveDDk&feature=related>
> > > > > > > <http://www.youtube.com/watch?v=vOGK3TveDDk&feature=related
> > <http://www.youtube.com/watch?v=vOGK3TveDDk&feature=related>>>
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Try first at your computer, and then move the code
> > to the
> > > > TS-4800
> > > > > > > > > using (ftp,scp, etc) to compile.
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Regards Rafael
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > --- In
> > <ts-7000%40yahoogroups.com>
> > > > > > > <ts-7000%40yahoogroups.com>
> > > > <ts-7000%40yahoogroups.com>,
> > > > > > > > > "drex459" <dexterjagula@> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > I'm developing on the TS-TPC-8390/TS-4800
> > platform, and
> > > > very
> > > > > > > new
> > > > > > > > > to the whole process.
> > > > > > > > > > > >
> > > > > > > > > > > > I want to utilize GTK+ and Glade3 to develop a simple
> > > > > > > > > application (you can consider it a 'hello world' type of
> > > > > > > application),
> > > > > > > > > but I have no idea how to get setup to implement this.
> > > > > > > > > > > >
> > > > > > > > > > > > According to TS, there are some GTK libraries already
> > > > included,
> > > > > > > > > but I have no idea which ones, or how to access them.
> > I'm not
> > > > even
> > > > > > > > > sure if they're unzipped to be ready to be used.
> > > > > > > > > > > >
> > > > > > > > > > > > I'd appreciate any help on just getting started.
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> >
>
------------------------------------
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/
|