File: apes02.html

package info (click to toggle)
gtkmm2.0 2.2.12-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 56,872 kB
  • ctags: 51,600
  • sloc: xml: 73,173; cpp: 20,565; sh: 8,608; perl: 2,702; makefile: 1,233
file content (51 lines) | stat: -rw-r--r-- 4,248 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Command line tools</title><meta name="generator" content="DocBook XSL Stylesheets V1.64.1"><link rel="home" href="index.html" title="Programming with gtkmm2"><link rel="up" href="ape.html" title="AppendixE.gtkmm and Win32"><link rel="previous" href="ape.html" title="AppendixE.gtkmm and Win32"><link rel="next" href="apes03.html" title="Building gtkmm on Win32"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Command line tools</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ape.html">Prev</a></td><th width="60%" align="center">AppendixE.gtkmm and Win32</th><td width="20%" align="right"><a accesskey="n" href="apes03.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2521926"></a>Command line tools</h2></div></div><div></div></div><p>
	To build your gtkmm application with command line tools, we recommend you either use mingw combined with cygwin
	(<a href="http://www.cygwin.com" target="_top">http://www.cygwin.com</a>) or msys (<a href="http://www.mingw.org" target="_top">http://www.mingw.org</a>). If you use
	mingw/cygwin, make sure that the directory that contains the
	mingw executables is first in your PATH (by checking with g++
	-v). Then
      </p><p>
	</p><div class="orderedlist"><ol type="1"><li><p>Add the directories with the gtkmm and gtk+ DLLs and
	      the gtk+ executables (particularly the one containing
	      pkg-config.exe) to your path. If you have selected the
	      corresponding option in the gtkmm installer, both the
	      gtkmm and gtk+ runtime will already be in your
	      PATH. Make sure pkg-config is available by typing
	      <span><b class="command">'pkg-config --version'</b></span>.
	    </p></li><li><p>Set the PKG_CONFIG_PATH environment variable to
	      point to the various lib/pkgconfig directories. Look for
	      files with the .pc extension in the gtk+ and gtkmm
	      developer packages. It's the same syntax as on
	      linux but the directories are separated by semicolons.</p></li><li><p>Check the gtkmm distribution by typing
	      <span><b class="command">'pkg-config --modversion --cflags --libs
		gtkmm-2.0'</b></span>. You should get something like
	    </p><pre class="programlisting">
		2.2.1
		-IC:/target/libsigc/lib/sigc++-1.2/include
		-IC:/target/libsigc/include/sigc++-1.2
		-IC:/target/gtkmm/include/gtkmm-2.0
		-IC:/target/gtkmm/lib/gtkmm-2.0/include
		-IC:/target/gtk-2.0/include/gtk-2.0
		-IC:/target/gtk-2.0/include/glib-2.0
		-IC:/target/gtk-2.0/lib/glib-2.0/include
		-IC:/target/gtk-2.0/lib/gtk-2.0/include
		-IC:/target/gtk-2.0/include/pango-1.0
		-IC:/target/gtk-2.0/include/atk-1.0
		-LC:/target/libsigc/lib
		-LC:/target/gtkmm/lib
		-LC:/target/gtk-2.0/lib -lgtkmm-2.0
		-lgdkmm-2.0 -latkmm-1.0 -lgtk-win32-2.0 -lpangomm-1.0
		-lglibmm-2.0 -lsigc-1.2 -lgdk-win32-2.0 -latk-1.0
		-lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0
		-lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl
		-liconv</pre><p>
	    </p><p>Of course, the target directories will show your local
	      installation tree.
	    </p></li><li><p>You can compile a single source file like so:</p><p>
	      <span><b class="command">g++ `pkg-config --cflags gtkmm-2.0`
		my_programs.cc -o my_program `pkg-config --libs
		gtkmm-2.0`</b></span>
	    </p></li></ol></div><p>
      </p><p>
	See the gtkmm FAQ for more build help.
      </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ape.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="ape.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="apes03.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">AppendixE.gtkmm and Win32</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">Building gtkmm on Win32</td></tr></table></div></body></html>