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

Error compiling on OSX #6

Open
devnulling opened this issue Apr 2, 2016 · 1 comment
Open

Error compiling on OSX #6

devnulling opened this issue Apr 2, 2016 · 1 comment

Comments

@devnulling
Copy link

Trying to build this on OSX results with the error below.

The offending line is bool ok = bch.decode(input, decoded, cw_isvalid); which doesn't seem to have a definition which takes 3 params, only 2 params are defined in itpp/comm/bch.h

[ 65%] Building C object dsd/CMakeFiles/dsd.dir/x2tdma_data.c.o
[ 67%] Building C object dsd/CMakeFiles/dsd.dir/x2tdma_voice.c.o
[ 69%] Building CXX object dsd/CMakeFiles/dsd.dir/Hamming.cpp.o
[ 70%] Building CXX object dsd/CMakeFiles/dsd.dir/p25p1_check_hdu.cpp.o
[ 72%] Building CXX object dsd/CMakeFiles/dsd.dir/p25p1_check_ldu.cpp.o
[ 74%] Building CXX object dsd/CMakeFiles/dsd.dir/p25p1_check_nid.cpp.o
/Users/node/tmp/gr-dsd/dsd/p25p1_check_nid.cpp:59:19: error: no matching member function for call to 'decode'
    bool ok = bch.decode(input, decoded, cw_isvalid);
              ~~~~^~~~~~
/opt/local/include/itpp/comm/bch.h:93:16: note: candidate function not viable: requires 2 arguments, but 3 were provided
  virtual void decode(const bvec &coded_bits, bvec &decoded_bits);
               ^
/opt/local/include/itpp/comm/bch.h:98:16: note: candidate function not viable: requires 2 arguments, but 3 were provided
  virtual void decode(const vec &received_signal, bvec &output);
               ^
/opt/local/include/itpp/comm/bch.h:95:16: note: candidate function not viable: requires single argument 'coded_bits', but 3 arguments were provided
  virtual bvec decode(const bvec &coded_bits);
               ^
/opt/local/include/itpp/comm/bch.h:99:16: note: candidate function not viable: requires single argument 'received_signal', but 3 arguments were provided
  virtual bvec decode(const vec &received_signal);
               ^
1 error generated.
make[2]: *** [dsd/CMakeFiles/dsd.dir/p25p1_check_nid.cpp.o] Error 1
make[1]: *** [dsd/CMakeFiles/dsd.dir/all] Error 2
make: *** [all] Error 2

@vrl2
Copy link

vrl2 commented Jul 8, 2016

Encountering the same error. Installed macports portfiles libsindfile and itpp to satisfy the dependencies. Anything I'm missing?

[ 58%] Building C object dsd/CMakeFiles/dsd.dir/p25p1_tdulc.c.o
[ 60%] Building C object dsd/CMakeFiles/dsd.dir/provoice.c.o
[ 62%] Building C object dsd/CMakeFiles/dsd.dir/x2tdma_data.c.o
[ 63%] Building C object dsd/CMakeFiles/dsd.dir/x2tdma_voice.c.o
[ 65%] Building CXX object dsd/CMakeFiles/dsd.dir/Hamming.cpp.o
[ 67%] Building CXX object dsd/CMakeFiles/dsd.dir/p25p1_check_hdu.cpp.o
[ 68%] Building CXX object dsd/CMakeFiles/dsd.dir/p25p1_check_ldu.cpp.o
[ 70%] Building CXX object dsd/CMakeFiles/dsd.dir/p25p1_check_nid.cpp.o
/Users/tempuser/Desktop/gr-dsd-master/dsd/p25p1_check_nid.cpp:59:19: error: no
      matching member function for call to 'decode'
    bool ok = bch.decode(input, decoded, cw_isvalid);
              ~~~~^~~~~~
/opt/local/include/itpp/comm/bch.h:93:16: note: candidate function not viable:
      requires 2 arguments, but 3 were provided
  virtual void decode(const bvec &coded_bits, bvec &decoded_bits);
               ^
/opt/local/include/itpp/comm/bch.h:98:16: note: candidate function not viable:
      requires 2 arguments, but 3 were provided
  virtual void decode(const vec &received_signal, bvec &output);
               ^
/opt/local/include/itpp/comm/bch.h:95:16: note: candidate function not viable:
      requires single argument 'coded_bits', but 3 arguments were provided
  virtual bvec decode(const bvec &coded_bits);
               ^
/opt/local/include/itpp/comm/bch.h:99:16: note: candidate function not viable:
      requires single argument 'received_signal', but 3 arguments were provided
  virtual bvec decode(const vec &received_signal);
               ^
1 error generated.
make[2]: *** [dsd/CMakeFiles/dsd.dir/p25p1_check_nid.cpp.o] Error 1
make[1]: *** [dsd/CMakeFiles/dsd.dir/all] Error 2
make: *** [all] Error 2

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

2 participants