The recommended route on Windows is vcpkg for dependencies and the Visual Studio (MSVC) toolchain. There is no pkg-config requirement — the build falls back to CMake package configs / find_library.
1. Toolchain
Visual Studio 2022 (Desktop C++ workload) or the Build Tools.
The repo root carries a vcpkg.json manifest, so vcpkg runs in manifest mode: don’t pass package names, just install the manifest from the project directory (CI does the same):
vcpkg install --triplet x64-windows
That provides cfitsio, zlib, lz4, zstd and pugixml. Qt itself comes from the official installer or aqt — include the qtimageformats module (the TIFF/WebP plugins live there, not in qtbase).
CCfits and libXISF are not in vcpkg — build them yourself against the same toolchain and install into a prefix you pass to CMake (below). For each:
cfitsio is found through its vcpkg CMake config (the build auto-detects the cfitsio / CFITSIO::CFITSIO target — no pkg-config needed).
CCfits and libXISF are found via find_library/find_path under CMAKE_PREFIX_PATH. If they sit elsewhere, pass them explicitly: -DCCFITS_INCLUDE_DIR=... -DCCFITS_LIB=... -DXISF_INCLUDE_DIR=... -DXISF_LIB=...
Qt apps on Windows need their DLLs alongside the .exe. The simplest way:
windeployqt build\src\Release\nebulascope.exe
That copies the required Qt DLLs and image-format plugins next to the binary. Also ensure cfitsio.dll, CCfits.dll, and XISF.dll (and zlib/lz4) are on PATH or copied beside the .exe.
The application was unable to start (0xc000007b) / missing DLLs — run windeployqt, and copy the cfitsio/CCfits/XISF DLLs next to the .exe.
cfitsio not found — make sure you passed the vcpkg toolchain file. Without it, CMake can’t see vcpkg-installed packages.
Link errors for lz4/zlib/pugixml — your libXISF is static; uncomment the find_library lines in the top-level CMakeLists.txt and add them in src/CMakeLists.txt.
Bertin, E., and S. Arnouts. 1996. “SExtractor: Software for Source Extraction.”Astronomy and Astrophysics Supplement Series 117: 393–404. https://doi.org/10.1051/aas:1996164.
Hirsch, Michael, Suvrit Sra, Bernhard Schölkopf, and Stefan Harmeling. 2010. “Efficient Filter Flow for Space-Variant Multiframe Blind Deconvolution.”IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 607–14. https://doi.org/10.1109/CVPR.2010.5540158.
Joye, W. A., and E. Mandel. 2003. “New Features of SAOImage DS9.”Astronomical Data Analysis Software and Systems XII, ASP conference series, vol. 295: 489.
Lucy, L. B. 1974. “An Iterative Technique for the Rectification of Observed Distributions.”The Astronomical Journal 79: 745–54. https://doi.org/10.1086/111605.
Magain, P., F. Courbin, and S. Sohy. 1998. “Deconvolution with Correct Sampling.”The Astrophysical Journal 494: 472–77. https://doi.org/10.1086/305187.
Moffat, A. F. J. 1969. “A Theoretical Investigation of Focal Stellar Images in the Photographic Emulsion and Application to Photographic Photometry.”Astronomy and Astrophysics 3: 455–61.
Nagy, James G., and Dianne P. O’Leary. 1998. “Restoring Images Degraded by Spatially Variant Blur.”SIAM Journal on Scientific Computing 19: 1063–82. https://doi.org/10.1137/S106482759528507X.
Payne, M., D. Robbins, and S. Carr. 2022. The Generalised Hyperbolic Stretch: Equations and Rationale. https://ghsastro.co.uk/.
Pence, W. D., L. Chiappetti, C. G. Page, R. A. Shaw, and E. Stobie. 2010. “Definition of the Flexible Image Transport System (FITS), Version 3.0.”Astronomy & Astrophysics 524: A42. https://doi.org/10.1051/0004-6361/201015362.
Pitié, François, Anil C. Kokaram, and Rozenn Dahyot. 2007. “Automated Colour Grading Using Colour Distribution Transfer.”Computer Vision and Image Understanding 107 (1–2): 123–37. https://doi.org/10.1016/j.cviu.2006.11.011.
Rabin, Julien, Gabriel Peyré, Julie Delon, and Marc Bernot. 2012. “Wasserstein Barycenter and Its Application to Texture Mixing.”Scale Space and Variational Methods in Computer Vision (SSVM), LNCS 6667: 435–46. https://doi.org/10.1007/978-3-642-24785-9_37.
Reehorst, Edward T., and Philip Schniter. 2019. “Regularization by Denoising: Clarifications and New Interpretations.”IEEE Transactions on Computational Imaging 5 (1): 52–67. https://doi.org/10.1109/TCI.2018.2880326.
Richardson, William Hadley. 1972. “Bayesian-Based Iterative Method of Image Restoration.”Journal of the Optical Society of America 62: 55–59. https://doi.org/10.1364/JOSA.62.000055.
Romano, Yaniv, Michael Elad, and Peyman Milanfar. 2017. “The Little Engine That Could: Regularization by Denoising (RED).”SIAM Journal on Imaging Sciences 10 (4): 1804–44. https://doi.org/10.1137/16M1102884.
Starck, J.-L., E. Pantin, and F. Murtagh. 2002. “Deconvolution in Astronomy: A Review.”Publications of the Astronomical Society of the Pacific 114: 1051–69. https://doi.org/10.1086/342606.
Venkatakrishnan, Singanallur V., Charles A. Bouman, and Brendt Wohlberg. 2013. “Plug-and-Play Priors for Model Based Reconstruction.”IEEE Global Conference on Signal and Information Processing (GlobalSIP), 945–48. https://doi.org/10.1109/GlobalSIP.2013.6737048.
Zackay, Barak, and Eran O. Ofek. 2017a. “How to COAAD Images. I. Optimal Source Detection and Photometry of Point Sources Using Ensembles of Images.”The Astrophysical Journal 836 (2): 187. https://doi.org/10.3847/1538-4357/836/2/187.
Zackay, Barak, and Eran O. Ofek. 2017b. “How to COAAD Images. II. A Coaddition Image That Is Optimal for Any Purpose in the Background-Dominated Noise Limit.”The Astrophysical Journal 836 (2): 188. https://doi.org/10.3847/1538-4357/836/2/188.