Gtk4-tutorial/gfm/sec1.md

66 lines
2.8 KiB
Markdown
Raw Normal View History

Up: [README.md](../README.md), Next: [Section 2](sec2.md)
# Prerequisite and License
2020-12-21 13:12:05 +01:00
2020-12-22 03:30:06 +01:00
## Prerequisite
2020-12-21 13:12:05 +01:00
### GTK 4 on a Linux OS
2020-12-21 13:12:05 +01:00
This tutorial describes GTK 4 libraries.
It is originally used on Linux with C compiler, but now it is used more widely, on Windows and MacOS, with Vala, Python, Ruby and so on.
However, this tutorial describes only *C programs on Linux*.
2020-12-21 13:12:05 +01:00
2020-12-22 03:56:06 +01:00
If you want to try the examples in the tutorial, you need:
2020-12-21 13:12:05 +01:00
- PC with Linux distribution like Ubuntu or Debian.
- GCC.
- GTK 4 (version 4.10.1 or later).
The stable version of GTK is 4.10.1 at present (24/April/2023).
The version 4.10 adds some new classes and functions and makes some classes and functions deprecated.
Some example programs in this tutorial don't work on the older version.
2021-06-13 05:03:36 +02:00
### Ruby and rake for making the document
2021-06-13 05:03:36 +02:00
This repository includes Ruby programs.
They are used to make GFM (GitHub Flavoured Markdown) files, HTML files, Latex files and a PDF file.
2020-12-21 13:12:05 +01:00
2020-12-22 03:30:06 +01:00
You need:
2020-12-21 13:12:05 +01:00
- Linux.
- Ruby programming language.
2020-12-22 03:30:06 +01:00
There are two ways to install it.
2021-06-13 05:03:36 +02:00
One is installing the distribution's package.
2020-12-22 03:30:06 +01:00
The other is using rbenv and ruby-build.
If you want to use the latest version of ruby, use rbenv.
- Rake.
2020-12-21 13:12:05 +01:00
## License
2020-12-21 13:12:05 +01:00
Copyright (C) 2020,2023 ToshioCP (Toshio Sekiya)
2020-12-21 13:12:05 +01:00
GTK4-tutorial repository contains tutorial documents and programs such as converters, generators and controllers.
All of them make up the 'GTK4-tutorial' package.
This package is simply called 'GTK4-tutorial' in the following description.
2023-04-15 03:24:30 +02:00
GTK4-tutorial is free; you can redistribute it and/or modify it under terms of the following licenses.
- The license of documents in GTK4-tutorial is the GNU Free Documentation License as published by the Free Software Foundation; either version 1.3 of the License or, at your opinion, any later version.
The documents are Markdown, HTML and image files.
2023-04-15 03:28:13 +02:00
If you generate a PDF file by running `rake pdf`, it is also included by the documents.
2023-04-15 03:24:30 +02:00
- The license of programs in GTK4-tutorial is the GNU General Public License as published by the Free Software Foundation; either version 3 of the License or, at your option, any later version.
The programs are written in C, Ruby and other languages.
2020-12-21 13:12:05 +01:00
2023-04-15 03:28:13 +02:00
GTK4-tutorial is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
2023-04-15 03:24:30 +02:00
See the GNU License web pages for more details.
- [GNU Free Documentation License](https://www.gnu.org/licenses/fdl-1.3.html)
- [GNU General Public License](https://www.gnu.org/licenses/gpl-3.0.html)
The licenses above is effective since 15/April/2023.
Before that, GPL covered all the contents of the GTK4-tutorial.
But GFDL1.3 is more appropriate for documents so the license was changed.
The license above is the only effective license since 15/April/2023.
2020-12-21 13:12:05 +01:00
Up: [README.md](../README.md), Next: [Section 2](sec2.md)