Skip to content

Compile error on OS X #3

@wjwwood

Description

@wjwwood

I don't see that anything changed here, but on a fresh checkout of groovy desktop I get this now:

==> Processing plain cmake package: 'bfl'
==> Building with env: '/Users/william/groovy/install_isolated/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/Users/william/groovy/build_isolated/bfl'
==> make -j1 in '/Users/william/groovy/build_isolated/bfl'
[ 40%] Built target orocos-bfl
[ 41%] Building CXX object tests/CMakeFiles/test_complete_filter.dir/complete_filter_test.o
In file included from /Users/william/groovy/src/bfl/tests/complete_filter_test.cpp:20:
In file included from /Users/william/groovy/src/bfl/tests/complete_filter_test.hpp:32:
In file included from /Users/william/groovy/src/bfl/src/filter/mixtureBootstrapFilter.h:35:
In file included from /Users/william/groovy/src/bfl/src/filter/mixtureParticleFilter.h:375:
/Users/william/groovy/src/bfl/src/filter/mixtureParticleFilter.cpp:105:27: error: member reference base type 'Mixture<SVar> *' is not a structure or union
  for(int i =0 ; i < prior.NumComponentsGet() ; i++)
                     ~~~~~^~~~~~~~~~~~~~~~~
/Users/william/groovy/src/bfl/src/filter/mixtureParticleFilter.cpp:111:27: error: member reference base type 'Mixture<SVar> *' is not a structure or union
  for(int i =0 ; i < prior.NumComponentsGet() ; i++)
                     ~~~~~^~~~~~~~~~~~~~~~~
/Users/william/groovy/src/bfl/src/filter/mixtureParticleFilter.cpp:113:32: error: member reference base type 'Mixture<SVar> *' is not a structure or union
    _old_samplesVec[i] = (prior.ComponentGet(i)->ListOfSamplesGet());
                          ~~~~~^~~~~~~~~~~~~
/Users/william/groovy/src/bfl/src/filter/mixtureParticleFilter.cpp:362:16: warning: self-comparison always evaluates to true [-Wtautological-compare]
        result == result && this->DynamicResampleStepOne(i);
               ^
/Users/william/groovy/src/bfl/src/filter/mixtureParticleFilter.cpp:451:16: warning: self-comparison always evaluates to true [-Wtautological-compare]
        result == result && this->ResampleOne(i);
               ^
/Users/william/groovy/src/bfl/src/filter/mixtureParticleFilter.cpp:362:16: warning: self-comparison always evaluates to true [-Wtautological-compare]
        result == result && this->DynamicResampleStepOne(i);
               ^
/Users/william/groovy/src/bfl/tests/complete_filter_test.cpp:211:36: note: in instantiation of member function 'BFL::MixtureParticleFilter<MatrixWrapper::ColumnVector,
      MatrixWrapper::ColumnVector>::DynamicResampleStep' requested here
  my_filter_mixtureBootstrap = new MixtureBootstrapFilter<ColumnVector,ColumnVector> (&prior_mix, RESAMPLE_PERIOD, RESAMPLE_THRESHOLD);
                                   ^
In file included from /Users/william/groovy/src/bfl/tests/complete_filter_test.cpp:20:
In file included from /Users/william/groovy/src/bfl/tests/complete_filter_test.hpp:32:
In file included from /Users/william/groovy/src/bfl/src/filter/mixtureBootstrapFilter.h:35:
In file included from /Users/william/groovy/src/bfl/src/filter/mixtureParticleFilter.h:375:
/Users/william/groovy/src/bfl/src/filter/mixtureParticleFilter.cpp:451:16: warning: self-comparison always evaluates to true [-Wtautological-compare]
        result == result && this->ResampleOne(i);
               ^
/Users/william/groovy/src/bfl/tests/complete_filter_test.cpp:211:36: note: in instantiation of member function 'BFL::MixtureParticleFilter<MatrixWrapper::ColumnVector,
      MatrixWrapper::ColumnVector>::Resample' requested here
  my_filter_mixtureBootstrap = new MixtureBootstrapFilter<ColumnVector,ColumnVector> (&prior_mix, RESAMPLE_PERIOD, RESAMPLE_THRESHOLD);
                                   ^
4 warnings and 3 errors generated.
make[2]: *** [tests/CMakeFiles/test_complete_filter.dir/complete_filter_test.o] Error 1
make[1]: *** [tests/CMakeFiles/test_complete_filter.dir/all] Error 2
make: *** [all] Error 2

I have a fix, I'll submit a patch soon. After testing on Linux the patch should be put into the release repo. (Or maybe elevated to the bfl tracker)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions