Skip to content

Tutorial 6

vmagnin edited this page May 9, 2022 · 1 revision

How to start my own project from a gtk-fortran example?

My project will use GNU GPLv3 or later

  • If your project will be under GNU GPLv3 or later license, you can start from an example in the examples/ or plplot/ directories of gtk-fortran, as it uses that license. Just copy the file or portions of code into your project.
  • You can of course also start from an example in the gtkzero_fpm or gtk-fortran-extra repositories as their MIT License is compatible with the GNU GPL.

My project will use another license

  • If your project will use another license or if you don't know, you can start from an example in the gtkzero_fpm or gtk-fortran-extra repositories. They are under the MIT license which is very permissive: "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software." So you can reuse their code even in a proprietary software.
  • If you use git clone to clone one of these examples, don't forget to delete its .git hidden directory. You can now make it your own repository with the git init command.
  • If the example is a fpm project, change the information in the fpm.toml.
  • Start editing your project.
Clone this wiki locally