# Basic tutorial 3 does not compile

**URL:** https://discourse.gstreamer.org/t/basic-tutorial-3-does-not-compile/5388
**Category:** Newcomers
**Created:** [September 18, 2025, 4:58pm UTC](https://discourse.gstreamer.org/t/basic-tutorial-3-does-not-compile/5388 "2025-09-18T16:58:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jamie](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/j/aca169/32.png) [@Jamie](https://discourse.gstreamer.org/u/Jamie)
#### Post date: [September 18, 2025, 4:58pm UTC](https://discourse.gstreamer.org/t/basic-tutorial-3-does-not-compile/5388/1 "2025-09-18T16:58:07Z")

</div>

Hi,

Basic tutorial 3 does not compile (link below to source file). It uses gst\_state\_get\_name() which according to the API docs does not come in until 1.28, which is not out yet.

This issue is backed up by the source code on the official tutorial webpage being different to that in the git repo. Bit of a bummer.

> <https://github.com/GStreamer/gstreamer/blob/main/subprojects/gst-docs/examples/tutorials/basic-tutorial-3.c>

> **[Basic tutorial 3: Dynamic pipelines](https://gstreamer.freedesktop.org/documentation/tutorials/basic/dynamic-pipelines.html?gi-language=c)**

---

<div class="post-metadata">

### Author: ![hectozul](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/hectozul/32/1558_2.png) [@hectozul](https://discourse.gstreamer.org/u/hectozul)
#### Post date: [November 11, 2025, 8:05pm UTC](https://discourse.gstreamer.org/t/basic-tutorial-3-does-not-compile/5388/2 "2025-11-11T20:05:30Z")

</div>

indeed.  
Tutorial 3 runs only with latest dev build but upcoming tutorials like 5 will run only for 1.26.7 stable build as 1.27.2 binaries don´t include gtksink plugin.

Tutorial 3 and 4 will compile after rollback the variable name to gst\_element\_state\_get\_name instead of gst\_state\_get\_name
