Dev/win compile (#402)
Build on RHEL9 / build (push) Successful in 3m13s
Build on RHEL8 / build (push) Successful in 3m48s
Run tests using data on local RHEL8 / build (push) Failing after 4m38s
Build on local RHEL8 / build (push) Successful in 3m18s

Collection of fixes to make aare build on Windows. Requires the previous
PRs for compilation to succeed.

- Replaced `or` keyword with ||
- updated cmake file
- fix for 32 bit long in fseek

closes #395 
closes #396
This commit is contained in:
Erik Fröjdh authored and GitHub committed 2026-10-05 19:13:45 +02:00
1 parent 060a0ec9e7
commit 7e1b8a765d
12 files changed
+85 -45

No files matched your search

+1 -1
View File
@@ -302,7 +302,7 @@ void RawFile::open_subfiles(const size_t roi_index) {
DetectorHeader RawFile::read_header(const std::filesystem::path &fname) {
DetectorHeader h{};
FILE *fp = fopen(fname.string().c_str(), "r");
FILE *fp = fopen(fname.string().c_str(), "rb");
if (!fp)
throw std::runtime_error(fmt::format(
"Could not open file '{}' for frame index 0", fname.string()));