Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error on OS X #3

Open
wjwwood opened this issue Jun 21, 2013 · 1 comment
Open

Compile error on OS X #3

wjwwood opened this issue Jun 21, 2013 · 1 comment

Comments

@wjwwood
Copy link
Member

wjwwood commented Jun 21, 2013

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)

@wjwwood
Copy link
Member Author

wjwwood commented Jul 2, 2013

testing on Hydro: 23fadf0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant