I’m trying to set up gtk-fortran but I’m having a hard time. PLplot won’t instal no matter what I installed it manually and pacman couldn’t find a package for the drivers and stuff from the git/wiki/video tutorials I was watching. So I decided I’ll just skip plplot for now but and it works.Until I try to compile my own. It works in a way where there are no errors but it keeps asking for a gtk.mod or something. Im trying to compile one of the example codes. If I really want to use gtk-fortran.
Welcome @SnailMail in the Discourse,
I have seen your message on YT. Probably the arch maintainer did not compiled PLplot with the optional Fortran support. The two solutions are:
- you build gtk-fortran without the PLplot support:
$ cmake -D EXCLUDE_PLPLOT=true ..
- you install PLplot from sources. The steps will be similar to those described for FreeBSD: Installation · vmagnin/gtk-fortran Wiki · GitHub
Can you post the exact messages you see in the terminal?
Gfortran bazaar.f90 $(pkg-config —cflags —libs gtk-4-fortran)
Package gtk-4-fortran was not found in the pkg-config search path.
Perhaps you should add the directory containing ‘gtk-4-fortran.pc’ to the PKG_CONFIG_PATH environment variable
Package ‘gtk-4-fortran’,required by ‘virtual:world’, not found
bazaar.f90:29:7:
29|usegtk_sup,only:c_f_string_copy_alloc
| 1
Fatal Error: cannot open module file ‘gtk_sup.mod’ for reading at (1): no such file or directory compilation terminated
I’m using arch and I did everything in the video but plplot. It is a different one but it is also in a different directory like how they did in the video to show compiling.
Can you consult this section of the installation manual: Solving pkg-config problems
and tell me if you can successfully set the PKG_CONFIG_PATH
variable?
At the end of that section, Manjaro is cited and AFAIK it is based on Arch.