-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.mod files not installed to --includedir? #2
Comments
Just confirmed the same issue exists under Windows. See https://gitlab.com/apthorpe/sofire2/-/blob/41-try-new-test-frameworks/contrib/zofu/README.md |
Meson does not yet have a proper built-in mechanism for installing Fortran module files from a built library: Zofu has some extra lines in the meson.build file for doing it manually (see line 50). It sounds like the Meson folks may have moved them in the 0.55 release, if you now have them in a directory called Could you try:
Then I might harangue the Meson developers and ask them again to implement a proper way of installing Fortran mod files. Meantime I may have to look at doing some sort of version-specific thing in the Zofu meson.build as a workaround. |
I've been working on a (hopefully friendly) PR which adds CMake build and packaging support. meson adds a dependency on Python which isn't used anywhere else in my project (see https://gitlab.com/apthorpe/sofire2) so it was easier for me to convert FWIW, nobody knows how to deal with |
I'm happy if we can add CMake support, though I don't use it myself. Any chance you could just try making that change to the meson.build file anyway and seeing if it fixes the problem for you? If it does, that will help me code up a workaround. |
Sure; I'll see if I can get your suggested fix to work with meson.build and fold that in with the PR. Again, thanks for the code and the encouragement. |
I just submitted a PR (#3) with a brittle workaround to the installation issue. It's not great but it illustrates the issue and points toward a better solution. Otherwise, all the CMake-related files have extensive documentation should others want to build or use Zofu via CMake. |
I've successfully built zofu and installed it locally using:
I confirmed installation by looking under
~/.local
(aka/home/bob/.local
) and foundAll looks reasonable except
~/.local/finclude/zofu
is an empty directory; I expected to find zofu's.mod
files installed there. They appear to be generated properly under<zofu project root>/build/libzofu.so.p
I can manually compile, link, and run
test_integer_asserts.F90
withJust wondering if there's an issue with
ninja install
not properly installing the.mod
files generated inbuild/libzofu.so.p
to--includedir
? If it helps any, I'm running on Linux Mint 19.3 (ubuntu-ish) with the most recent release of meson (0.55.3). Let me know if there are further tests I can do on my end to help resolve this.The text was updated successfully, but these errors were encountered: