> I am an applied physicist at Canadian Nuclear Laboratories and am in the process
> of migrating the full experiment configuration—including the front-end interface—
> of the CRIPT muon tomography detector from a legacy version of MIDAS (SVN Rev.
> 5238, circa 2012) to a more modern release.
> The current system runs on Scientific Linux 6 and very old hardware. Due to
> substantial changes in the MIDAS codebase over the years, I have encountered
> multiple compatibility issues during the migration. I have also attempted to build
> and run the legacy MIDAS version and the front-end code using GCC 4.8 on a modern
> Linux system (Ubuntu 24.04), but without success.
I suggest updating the midas version. You should be able to get to at least midas 2024-12-a
without breaking anything.
> Could you please advise on the recommended approach for upgrading or refactoring
> legacy MIDAS front-end code to the current framework? Any guidance or best
> practices would be greatly appreciated.
Start here: https://daq00.triumf.ca/MidasWiki/index.php/Changelog
The 2019-06 release was the c -> c++ transition. Read that section carefully.
The 2020-12 update also had a change that you will also likely want to update your FEs for.
You will also likely encounter a quite a few non-midas issues related to the newer compilers.
Updates to your front ends may include things like needing to use "const char*" instead of "char*",
adding extra headers like <cstring> and <cstdlib>, using ctime_r() instead of ctime(), etc
Post back if you have specific questions.
P.S. I'm maintaining a number of midas FEs mostly written around 2007-2009.
These were running on SL5 and SL6 for many years and are now on Alma 9 with
midas 2024-12-a. |