#### Beyond Linux® From Scratch (System V Edition) - Version 12.3

### Chapter 25. Graphical Environment Libraries

- Prev

  gtk-vnc-1.5.0

- Next

  gtksourceview4-4.8.4

- Up
- Home

# gtksourceview-3.24.11

## Introduction to GtkSourceView

The GtkSourceView package contains libraries used for extending the GTK+ text functions to include syntax highlighting.

This package is known to build and work properly using an LFS 12.3 platform.

### Package Information

- Download (HTTP): https://download.gnome.org/sources/gtksourceview/3.24/gtksourceview-3.24.11.tar.xz

- Download MD5 sum: b748da426a7d64e1304f0c532b0f2a67

- Download size: 1.4 MB

- Estimated disk space required: 80 MB (with tests)

- Estimated build time: 0.2 SBU (using parallelism=4; with tests)

### GtkSourceView Dependencies

#### Required

GTK-3.24.48

#### Recommended

GLib-2.82.5 (with GObject Introspection)

#### Optional

Vala-0.56.17, Valgrind-3.24.0, GTK-Doc-1.34.0, itstool-2.0.7, fop-2.10 (or dblatex), and Glade

## Installation of GtkSourceView

First, fix building this package with gcc-14 and later:

    sed -i 's/g_object_ref (buffer)/g_object_ref (GTK_SOURCE_BUFFER (buffer))/' gtksourceview/gtksourceview.c

Install GtkSourceView by running the following commands:

    ./configure --prefix=/usr &&
    make

To test the results, issue make check. The tests need to be run in a graphical environment.

Now, as the `root` user:

    make install

## Command Explanations

`--enable-gtk-doc`: Use this parameter if GTK-Doc is installed and you wish to rebuild and install the API documentation.

## Contents

Installed Programs: None
Installed Library: libgtksourceview-3.0.so
Installed Directories: /usr/{include,share,share/gtk-doc/html}/gtksourceview-3.0

### Short Descriptions

`libgtksourceview-3.0.so` | contains function extensions for the GtkTextView widget

- Prev

  gtk-vnc-1.5.0

- Next

  gtksourceview4-4.8.4

- Up
- Home