Closed astrojuanlu closed 8 years ago
The way I do it is to copy the pyplot_module.f90
file into the tests
directory, and FoBiS will find it and compile it for you when you run build.sh
. That should work. I don't have it set up to look for the .a
file.
Note: I should set up a submodule to pyplot, but haven't gotten around to it yet.
You are right, this fixed it :) Perhaps this is worth including in the README?
Dear @jacobwilliams and @Juanlu001
if you like, it is very trivial (I hope) to extend the current behavior of FoBiS allowing list of source directories rather than the single one that presently is allowed. This alleviate you to manual copy modules, e.g.
FoBiS.py build --src path_to_other_sources this_sources another_sources ...
Let me know if you like such a feature.
See you soon.
@jacobwilliams and @Juanlu001
I like to let you know that you are not been required to manual copy pyplot
, the src
FoBiS option can now handle also list of directories, thus you can do something like:
git clone https://github.com/jacobwilliams/Fortran-Astrodynamics-Toolkit
git clone https://github.com/jacobwilliams/pyplot-fortran
cd Fortran-Astrodynamics-Toolkit
FoBiS.py build --src src tests ../pyplot-fortran/src ...
so that the pyplot module is reached without to explicitly copy it.
See you soon.
P.S. in this way, namely without specify a target, also the tests of pyplot-fortran are built. If you like you can tell to FoBiS to ignore pyplot-fortran/src/tests/ sources using the exclude directories option.
I built https://github.com/jacobwilliams/pyplot-fortran, put
libpyplot.a
,pyplot_module.mod
andpyplot-fortran/lib/pyplot_module.o
underlib
and tried to run./build.sh
, but I am having what I think are linking errors at the end: