GTKmm Quick Start

I got the notion to learn something about GTK and review my C++. I have recently upgraded to Ubuntu 9.10 so some of the things I had before are gone.

a href=’http://7billionactions.org/ciprofloxacin-hcl-250-mg’ title=’ciprofloxacin hcl 250 mg’>ciprofloxacin hcl 250 mg

Before you start, you will need libgtkmm-2.4-dev (version 1:2.18.2-1) installed.

When you install it should also call for

libcairomm-1.0-dev (version 1.8.0-1build1) will be installed
libglibmm-2.4-dev (version 2.22.1-2) will be installed
libpangomm-1.4-dev (version 2.26.0-0ubuntu2) will be installed
libsigc++-2.0-dev (version 2.0.18-2) will be installed

You may wish to install
gtkmm-documentation (version 2.17.4-0ubuntu1) will be installed
libglademm-2.4-doc (version 2.6.7-2) will be installed
libglibmm-2.4-doc (version 2.22.1-2) will be installed
libgtkmm-2.4-doc (version 1:2.18.2-1) will be installed

At that point, you can copy and paste the example code found on Wikipedia.

In order to follow the example literally, you will need to save each of the text files as the name indicated in the first line comment into an empty directory. Start a command line window and switch to that directory. Then the command given in the example should work.

If you copy and paste the g++ command you will get it right. If you type it, the “`” things are in the upper-left on most keyboards under the tilde (~), not a single-quote (‘)

me@home:~/Projects/gtk/hww$ g++ *.cc -o example `pkg-config gtkmm-2.4 –cflags –libs`
me@home:~/Projects/gtk/hww$ ./example
Hello world
me@home:~/Projects/gtk/hww$

HelloWorldScreenshot

Leave a Reply