Git Product home page Git Product logo

pothosliquiddsp's Introduction

Block toolkit for Liquid DSP processing cores

This toolkit wraps Pothos blocks around the Liquid DSP library. Blocks are generated from the liquid DSP include header and a file describing the available functions and parameters.

Dependencies

Building and installing

configure, build, and install with CMake

Licensing information

Use, modification and distribution is subject to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

pothosliquiddsp's People

Contributors

ashley-b avatar guruofquality avatar ncorgan avatar wluker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pothosliquiddsp's Issues

Build error with the latest liquid-dsp

Liquid-dsp did a change on firhilbf_c2r_execute() and now require 4 parameters; the documentation is not updated.

/* from liquid.h */
void firhilbf_c2r_execute(firhilbf _q, liquid_float_complex _x, float * _y0, float * _y1);

therefore when building I receive the following error

/Users/user/tmp/PothosLiquidDSP/build/firhilbf.cpp:176:13: error: no matching function for call to 'firhilbf_c2r_execute'
            firhilbf_c2r_execute(_q, *inxBuff, outyBuff);
            ^~~~~~~~~~~~~~~~~~~~
/opt/local/include/liquid/liquid.h:2702:27: note: candidate function not viable: requires 4 arguments, but 3 were provided
LIQUID_FIRHILB_DEFINE_API(LIQUID_FIRHILB_MANGLE_FLOAT, float, liquid_float_complex)

Change example can be seen at github.

Moreover, just FYI, I see the following warning

/opt/local/include/liquid/liquid.h:6034:24: warning: 'polycf_interp_lagrange' has C-linkage specified, but returns user-defined type 'liquid_float_complex' (aka 'complex<float>') which is incompatible with C [-Wreturn-type-c-linkage]
/opt/local/include/liquid/liquid.h:6034:24: warning: 'polycf_val_lagrange_barycentric' has C-linkage specified, but returns user-defined type 'liquid_float_complex' (aka 'complex<float>') which is incompatible with C [-Wreturn-type-c-linkage]
/opt/local/include/liquid/liquid.h:6446:26: warning: 'matrixcf_det' has C-linkage specified, but returns user-defined type 'liquid_float_complex' (aka 'complex<float>') which is incompatible with C [-Wreturn-type-c-linkage]
LIQUID_MATRIX_DEFINE_API(LIQUID_MATRIX_MANGLE_CFLOAT,  liquid_float_complex)
                         ^
/opt/local/include/liquid/liquid.h:6447:26: warning: 'matrixc_det' has C-linkage specified, but returns user-defined type 'liquid_double_complex' (aka 'complex<double>') which is incompatible with C [-Wreturn-type-c-linkage]
LIQUID_MATRIX_DEFINE_API(LIQUID_MATRIX_MANGLE_CDOUBLE, liquid_double_complex)
                         ^
/opt/local/include/liquid/liquid.h:7761:25: warning: 'synth_crcf_get_half_previous' has C-linkage specified, but returns user-defined type 'liquid_float_complex' (aka 'complex<float>') which is incompatible with C [-Wreturn-type-c-linkage]
/opt/local/include/liquid/liquid.h:7761:25: warning: 'synth_crcf_get_half_next' has C-linkage specified, but returns user-defined type 'liquid_float_complex' (aka 'complex<float>') which is incompatible with C [-Wreturn-type-c-linkage]

Test done with the latest commit of liquid-dsp branch master. Thank you.

build failure with latest liquid-dsp

This is the build error:

/opt/local/var/macports/build/_Users_rainbow_sources_github_macports-ports_science_PothosLiquidDSP/PothosLiquidDSP/work/build/firfilt.cpp:59:16: error: cannot initialize return object of type 'float' with an rvalue of type 'const float *'
        return firfilt_rrrf_get_coefficients(_q);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_Users_rainbow_sources_github_macports-ports_science_PothosLiquidDSP/PothosLiquidDSP/work/build/firfilt.cpp:155:16: error: cannot initialize return object of type 'float' with an rvalue of type 'const float *'
        return firfilt_crcf_get_coefficients(_q);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_Users_rainbow_sources_github_macports-ports_science_PothosLiquidDSP/PothosLiquidDSP/work/build/firfilt.cpp:251:16: error: no viable conversion from returned value of type 'const liquid_float_complex *' (aka 'const complex<float> *') to function return type 'liquid_float_complex' (aka 'complex<float>')
        return firfilt_cccf_get_coefficients(_q);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/complex:323:28: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const liquid_float_complex *' (aka 'const complex<float> *') to 'const std::__1::complex<float> &' for 1st argument; dereference the argument with *
class _LIBCPP_TEMPLATE_VIS complex<float>
                           ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/complex:323:28: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const liquid_float_complex *' (aka 'const complex<float> *') to 'std::__1::complex<float> &&' for 1st argument
/Library/Developer/CommandLineTools/usr/include/c++/v1/complex:330:49: note: candidate constructor not viable: no known conversion from 'const liquid_float_complex *' (aka 'const complex<float> *') to 'float' for 1st argument
    _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR complex(float __re = 0.0f, float __im = 0.0f)
                                                ^
/opt/local/var/macports/build/_Users_rainbow_sources_github_macports-ports_science_PothosLiquidDSP/PothosLiquidDSP/work/build/firfilt.cpp:384:16: error: cannot initialize return object of type 'float' with an rvalue of type 'const float *'
        return firfilt_rrrf_get_coefficients(_q);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_Users_rainbow_sources_github_macports-ports_science_PothosLiquidDSP/PothosLiquidDSP/work/build/firfilt.cpp:485:16: error: cannot initialize return object of type 'float' with an rvalue of type 'const float *'
        return firfilt_crcf_get_coefficients(_q);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_Users_rainbow_sources_github_macports-ports_science_PothosLiquidDSP/PothosLiquidDSP/work/build/firfilt.cpp:586:16: error: no viable conversion from returned value of type 'const liquid_float_complex *' (aka 'const complex<float> *') to function return type 'liquid_float_complex' (aka 'complex<float>')
        return firfilt_cccf_get_coefficients(_q);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/complex:323:28: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const liquid_float_complex *' (aka 'const complex<float> *') to 'const std::__1::complex<float> &' for 1st argument; dereference the argument with *
class _LIBCPP_TEMPLATE_VIS complex<float>
                           ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/complex:323:28: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const liquid_float_complex *' (aka 'const complex<float> *') to 'std::__1::complex<float> &&' for 1st argument
/Library/Developer/CommandLineTools/usr/include/c++/v1/complex:330:49: note: candidate constructor not viable: no known conversion from 'const liquid_float_complex *' (aka 'const complex<float> *') to 'float' for 1st argument
    _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR complex(float __re = 0.0f, float __im = 0.0f)
                                                ^
/opt/local/var/macports/build/_Users_rainbow_sources_github_macports-ports_science_PothosLiquidDSP/PothosLiquidDSP/work/build/firfilt.cpp:718:16: error: cannot initialize return object of type 'float' with an rvalue of type 'const float *'
        return firfilt_rrrf_get_coefficients(_q);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_Users_rainbow_sources_github_macports-ports_science_PothosLiquidDSP/PothosLiquidDSP/work/build/firfilt.cpp:813:16: error: cannot initialize return object of type 'float' with an rvalue of type 'const float *'
        return firfilt_crcf_get_coefficients(_q);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_Users_rainbow_sources_github_macports-ports_science_PothosLiquidDSP/PothosLiquidDSP/work/build/firfilt.cpp:908:16: error: no viable conversion from returned value of type 'const liquid_float_complex *' (aka 'const complex<float> *') to function return type 'liquid_float_complex' (aka 'complex<float>')
        return firfilt_cccf_get_coefficients(_q);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/complex:323:28: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const liquid_float_complex *' (aka 'const complex<float> *') to 'const std::__1::complex<float> &' for 1st argument; dereference the argument with *
class _LIBCPP_TEMPLATE_VIS complex<float>
                           ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/complex:323:28: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const liquid_float_complex *' (aka 'const complex<float> *') to 'std::__1::complex<float> &&' for 1st argument
/Library/Developer/CommandLineTools/usr/include/c++/v1/complex:330:49: note: candidate constructor not viable: no known conversion from 'const liquid_float_complex *' (aka 'const complex<float> *') to 'float' for 1st argument
    _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR complex(float __re = 0.0f, float __im = 0.0f)
                                                ^
/opt/local/var/macports/build/_Users_rainbow_sources_github_macports-ports_science_PothosLiquidDSP/PothosLiquidDSP/work/build/firfilt.cpp:1041:16: error: cannot initialize return object of type 'float' with an rvalue of type 'const float *'
        return firfilt_rrrf_get_coefficients(_q);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_Users_rainbow_sources_github_macports-ports_science_PothosLiquidDSP/PothosLiquidDSP/work/build/firfilt.cpp:1144:16: error: cannot initialize return object of type 'float' with an rvalue of type 'const float *'
        return firfilt_crcf_get_coefficients(_q);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_Users_rainbow_sources_github_macports-ports_science_PothosLiquidDSP/PothosLiquidDSP/work/build/firfilt.cpp:1247:16: error: no viable conversion from returned value of type 'const liquid_float_complex *' (aka 'const complex<float> *') to function return type 'liquid_float_complex' (aka 'complex<float>')
        return firfilt_cccf_get_coefficients(_q);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/complex:323:28: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const liquid_float_complex *' (aka 'const complex<float> *') to 'const std::__1::complex<float> &' for 1st argument; dereference the argument with *
class _LIBCPP_TEMPLATE_VIS complex<float>
                           ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/complex:323:28: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const liquid_float_complex *' (aka 'const complex<float> *') to 'std::__1::complex<float> &&' for 1st argument
/Library/Developer/CommandLineTools/usr/include/c++/v1/complex:330:49: note: candidate constructor not viable: no known conversion from 'const liquid_float_complex *' (aka 'const complex<float> *') to 'float' for 1st argument
    _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR complex(float __re = 0.0f, float __im = 0.0f)
                                                ^

I can't grasp how to fix this.

Thank you

add modems

complete modem chains in liquid (qpsk, ofdm, etc)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.