Re: Hi there I am new

Tor Lillqvist <[email protected]>
Newsgroups gmane.comp.video.gimp.windows.devel
Message-ID <[email protected]>
Gollum writes:
 > where can i find gcc for windows. is it djgpp.

www.mingw.org. Forget djgpp, it is for MS-DOS.

 > What all do i need to dowload to get started. in Programming in
 > gtk.

First learn to build and compile non-GTK programs. Learn how to
manipulate your PATH. If you want to work in a Unix-style shell,
install Cygwin (www.cygwin.com), but put the mingw bin directory in
front of Cygwin's /usr/bin in PATH. 

You can also instead of Cygwin install MSYS (from the mingw
site). It's a more restricted and specialized version of Cygwin.

But neither Cygwin nor MSYS is in no way required, it's just for the
convenience of having a Unix-like environment.

Then when you are comfortable with that, decide whether you want GTK+
1.3.0 (if you use GTK+ 1.2.x on Unix) or 2.0.x (if you use that on
Unix).

For GTK+ 1.3.0, download and install the runtime and developer
packages for libiconv, libintl (gettext), GLib 2.0.x and GTK+ 1.3.0.

For GTK+ 2.0.x, libiconv, libintl (gettext), GLib 2.0.x, Atk, Pango
and GTK+ 2.0.x.

Also install the pkg-config package.

If you use GTK+ 2.0 and intend to load jpeg or png images through GTK+
(gdk-pixbuf) from your application, also download and install the
zlib, libpng and jpeg packages.

(Above downloads are linked to from the
www.gimp.org/win32/downloads.html page. 2.0.x refers to the newest
that's available. For GLib and maybe GTK+ too that will soon be
2.2.0.)

Then, to build a single-file GTK+ program, if using Cygwin's bash
shell, say:

gcc -mms-bitfields -o myapp.exe `pkg-config --cflags gtk+-2.0` myapp.c `pkg-config --libs gtk+-2.0`

Replace gtk+-2.0 with gtk+-1.3-win32-production if using GTK+ 1.3.0.

If not using Cygwin, run the pkg-config commands above from the
command prompt, and copy-paste their output into the gcc command line.

Finally, in reality you obviously should not be typing command lines
like the above manually again and again. Use Make, or at least .bat
files.

--tml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.