Replies: 2 comments 1 reply
-
Thanks @vansnyder for reporting. I will need some time to answer all your questions. On my side,
|
Beta Was this translation helpful? Give feedback.
0 replies
-
On Wed, 2022-03-09 at 02:06 -0800, Vincent Magnin wrote:
Thanks @vansnyder for reporting. I will need some time to answer all
your questions.
On my side, CMAKE_Fortran_FLAGS_RELEASE is working, as you can see in
the example below (Ubuntu 21.10).
Are you using the latest gtk4 commits?
I haven't been able to install the gtk4 libraries from the Debian 10
distribution. There is a package called gtk+4, but even after
installing it, cmake says it can't find it, and refuses to proceed.
So I'm using gtk3, which works, up to the point of duplicating command-
line options for the NAG compiler.
The INSTALL.md file needs more instructions about how to select the
compiler and its command-line options.
… There has been some changes in the CMake files on the 23th and 25th
February, as we were working on a Conda gtk-4-fortran package (see
issue #249). I don't know if it could be related to your problem.
$ cmake -D CMAKE_Fortran_FLAGS_RELEASE="-O2 -std=f2008" ..
-- The Fortran compiler identification is GNU 11.2.0
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/f95 - skipped
-- Checking whether /usr/bin/f95 supports Fortran 90
-- Checking whether /usr/bin/f95 supports Fortran 90 - yes
-- Building gtk-4-fortran 4.1.0
-- GNUInstallDirs: /usr/local lib include bin share share/man
-- System: Linux 5.13.0-30-generic x86_64
-- Compiler: GNU 11.2.0 /usr/bin/f95
-- Build type is: release
-- Compilation flags: -O2 -std=f2008
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'gtk4'
-- Found gtk4, version 4.4.0
-- Checking for module 'plplot-fortran'
-- Found plplot-fortran, version 5.15.0
-- Checking for module 'plplot'
-- Found plplot, version 5.15.0
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/gtk-fortran/build
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID:
<vmagnin/gtk-fortran/repo-
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The default setup for CMake for gtk-fortran is to use gfortran with options -pthread -O3 -mtune=native -march=native.
I want to use other compilers -- nagfor and ifort -- which don't have the same options.
How do I set the compiler options on the CMake command line (or in some file somewhere to make them the defaults)? The installation instructions just say "set some cmake variables" but don't explain which variables, or how to set them.
I tried -DCMAKE_Fortran_FLAGS_RELEASE:STRING="-g -gline -colour -C=all"
The CMake output says -- Compilation flags: -g -gline -colour -C=all -g -gline -colour -C=all
(why do the options appear twice?)
When I then run make:
Option error: -gline option specified twice
Beta Was this translation helpful? Give feedback.
All reactions