Hi Admin, I'm trying to build a casarest debian package for ubuntu focal with casacore-3.4.0
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc: At global scope:
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc:191:1: error: no declaration matches 'const std::vector<casacore::GaussianSpectralElement>& casacore::GaussianMultipletSpec
tralElement::getGaussians() const'
191 | GaussianMultipletSpectralElement::getGaussians() const {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc:191:1: note: no functions named 'const std::vector<casacore::GaussianSpectralElement>& casacore::GaussianMultipletSpectralE
lement::getGaussians() const'
In file included from /build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc:27:
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.h:120:7: note: 'class casacore::GaussianMultipletSpectralElement' defined here
120 | class GaussianMultipletSpectralElement: public CompiledSpectralElement {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc: In member function 'virtual casacore::Bool casacore::GaussianMultipletSpectralElement::toRecord(casacore::RecordInterface&
) const':
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc:202:19: error: '_gaussians' was not declared in this scope; did you mean 'gaussians'?
202 | for (uInt i=0; i<_gaussians.size(); i++) {
| ^~~~~~~~~~
| gaussians
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc: In member function 'virtual void casacore::GaussianMultipletSpectralElement::set(const casacore::Vector<double>&)':
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc:225:2: error: '_gaussians' was not declared in this scope
225 | _gaussians[0].setAmpl(amp0);
| ^~~~~~~~~~
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc: In member function 'virtual void casacore::GaussianMultipletSpectralElement::setError(const casacore::Vector<double>&)':
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc:261:2: error: '_gaussians' was not declared in this scope
261 | _gaussians[0].setError(errors);
| ^~~~~~~~~~
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc: In member function 'virtual void casacore::GaussianMultipletSpectralElement::fix(const casacore::Vector<bool, std::allocat
or<bool> >&)':
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc:294:2: error: '_gaussians' was not declared in this scope
294 | _gaussians[0].fix(fixed);
| ^~~~~~~~~~
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc: In function 'std::ostream& casacore::operator<<(std::ostream&, const casacore::GaussianMultipletSpectralElement&)':
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc:320:51: error: 'const class casacore::GaussianMultipletSpectralElement' has no member named 'getGaussians'
320 | Vector<GaussianSpectralElement> gaussians = elem.getGaussians();
| ^~~~~~~~~~~~
make[3]: *** [components/CMakeFiles/casa_components.dir/build.make:79: components/CMakeFiles/casa_components.dir/SpectralComponents/GaussianMultipletSpectralElement.cc.o] Error 1
Hi Admin, I'm trying to build a
casarest
debian package for ubuntu focal withcasacore-3.4.0