Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Language shapes the way we think, and determines what we can think about." -- B. L. Whorf


devel / comp.lang.fortran / gtk-fortran 4.2 released (a fpm dependency)

SubjectAuthor
o gtk-fortran 4.2 released (a fpm dependency)MAGNIN Vincent

1
gtk-fortran 4.2 released (a fpm dependency)

<626653d1$0$703$14726298@news.sunsite.dk>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2168&group=comp.lang.fortran#2168

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Mon, 25 Apr 2022 09:54:53 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Newsgroups: comp.lang.fortran
Content-Language: fr
From: vincent.magnin@univ-lille.fr (MAGNIN Vincent)
Subject: gtk-fortran 4.2 released (a fpm dependency)
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 41
Message-ID: <626653d1$0$703$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 91b08ae1.news.sunsite.dk
X-Trace: 1650873297 news.sunsite.dk 703 vincent.magnin@univ-lille.fr/86.67.213.152:43728
X-Complaints-To: staff@sunsite.dk
 by: MAGNIN Vincent - Mon, 25 Apr 2022 07:54 UTC

* gtk-fortran 4.2.1 offers interfaces to GTK 4.6.2 and GLib 2.72.1. You
can of course use it with lower GTK 4 versions, provided that you don't
call new functions. It was tested on Linux, MSYS2/Windows 10, macOS and
FreeBSD. See https://github.com/vmagnin/gtk-fortran/wiki

* It can now be installed via conda (Linux and macOS only):

$ conda install gtk-4-fortran

* Last but not the least, gtk-fortran can now be used as a fpm
(https://fpm.fortran-lang.org) dependency (gtk4 branch only), as
explained in the tutorial 5 "How to use fpm to build a gtk-fortran
project" (https://github.com/vmagnin/gtk-fortran/wiki/Tutorial-5), based
on the gtkzero_fpm example (https://github.com/vmagnin/gtkzero_fpm).
Supposing you have already installed fpm and the GTK 4 development files
(`libgtk-4-dev` package in Ubuntu), building and running that example
should be as simple as typing:

$ git@github.com:vmagnin/gtkzero_fpm.git
$ cd gtkzero_fpm
$ fpm run

A "Hello World" GTK empty window should appear on screen.

It's very simple to use, the key lines in the `fpm.toml` manifest of
that example being just:

[dependencies]
gtk-fortran = { git = "https://github.com/vmagnin/gtk-fortran.git",
branch = "gtk4" }

Note that if you have several projects using gtk-fortran, it would be a
better solution to clone the gtk-fortran repository alongside your
projects and replace in their `fpm.toml` manifests the git dependency by
the local path to gtk-fortran:

[dependencies]
gtk-fortran = { path = "../gtk-fortran" }

You can post issues here or on GitHub
(https://github.com/vmagnin/gtk-fortran/issues).

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor