sandialabs / SpecUtils

A library for opening, manipulating, and exporting gamma spectral files
GNU Lesser General Public License v2.1
27 stars 9 forks source link

Compiling from source with Mac #33

Closed mattmar2410 closed 4 months ago

mattmar2410 commented 4 months ago

Hi there, I am trying to compile from source on a Mac. I got the following error after the following two commands: $ cmake -DBUILD_CAMBIO_COMMAND_LINE=ON -DBUILD_CAMBIO_GUI=OFF -DBOOST_ROOT=/path/to/boost .. $ make -j8

Error: /Users//repos/cambio/src/CommandLineUtil.cpp:2176:16: error: no member named 'keep_energy_cal_variant' in 'SpecUtils::SpecFile' info.keep_energy_cal_variant( prefered_variant );

In SpecUtils, it seems to be keep_energy_cal_variants not keep_energy_cal_variant, but can you please advise?

Thanks!

wcjohns commented 4 months ago

Hi, it looks like you were maybe using a newer version of SpecUtils than the code had been updated for. I just updated the submodule reference to the latest SpecUtils, and made a few small fixes to make Cambios command-line code compile with it, in commit fee06ca.

Please let me know if this doesn't fix things for you, -will