I wanted to use Astrodeep Aphot library in my project whose sourcecode is mentioned here. After reading the documentation for the Aphot library, I figured I needed cfitsio library. Hence I found this. From here, I downloaded tar file for windows and followed steps for Readme file Here while following the exact steps, I used "CMake generator" as Visual Studio 16 2019 after installing CMAKE from its download site. I tried other generators which include Borland Makefiles,Unix Makefiles,NMake Makefiles, MinGW Makefiles, etc. But all other ended up in build errors. In the second step in this, I couldn't understand exactly what was to be done. As mentioned there, I copied fitsio.h and longnam.h into include folder of a-phot-master which I downloaded from here. I didn't understand what was to be done with cfitsio.dll and cfitsio.lib.
In install.py in the a-phot-master directory, we need to specify the path for the installation folder for the cfitsio. I am confused about whether to copy the path of directory extracted from tar file mentioned here or from cfitsio build directory which got generated using CMake following the steps mentioned here.
If I directy execute the install.py right now placing either of the paths, I am facing and error as follows:
(venv) C:\Users\hp\PycharmProjects\photometry\venv\a-phot-master>python install.py
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lcfitsio
collect2.exe: error: ld returned 1 exit status
Compilation aborted