upfirdn error when using resample but it says it's included?

classic Classic list List threaded Threaded
3 messages Options
RT
Reply | Threaded
Open this post in threaded view
|

upfirdn error when using resample but it says it's included?

RT
When I use resample I get an error with upfirdn see error below but upfirdn should be included in the signal package.  https://octave.sourceforge.io/signal/function/upfirdn.html
 
Please read <https://www.octave.org/missing.html> to learn how you can
contribute missing functionality.
error: 'upfirdn' undefined near line 121 column 11
error: called from
    resample at line 121 column 9

I'm using Octave version 5.1 on 64bit Ubuntu Linux

>> pkg list
Package Name  | Version | Installation directory
--------------+---------+-----------------------
     control *|   3.1.0 | /home/rt/octave/control-3.1.0
    geometry  |   3.0.0 | /home/rt/octave/geometry-3.0.0
       image  |   2.8.0 | /home/rt/octave/image-2.8.0
  quaternion *|   2.4.0 | /home/rt/octave/quaternion-2.4.0
      signal *|   1.4.0 | /home/rt/octave/signal-1.4.0



                  


Reply | Threaded
Open this post in threaded view
|

Re: upfirdn error when using resample but it says it's included?

apjanke-floss


On 3/24/19 2:18 PM, RT wrote:

> When I use resample I get an error with upfirdn see error below but
> upfirdn should be included in the signal package.
> https://octave.sourceforge.io/signal/function/upfirdn.html
>
> Please read <https://www.octave.org/missing.html> to learn how you can
> contribute missing functionality.
> error: 'upfirdn' undefined near line 121 column 11
> error: called from
>      resample at line 121 column 9
>
> I'm using Octave version 5.1 on 64bit Ubuntu Linux
>
>  >> pkg list
> Package Name  | Version | Installation directory
> --------------+---------+-----------------------
>       control *|   3.1.0 | /home/rt/octave/control-3.1.0
>      geometry  |   3.0.0 | /home/rt/octave/geometry-3.0.0
>         image  |   2.8.0 | /home/rt/octave/image-2.8.0
>    quaternion *|   2.4.0 | /home/rt/octave/quaternion-2.4.0
>        signal *|   1.4.0 | /home/rt/octave/signal-1.4.0
>
>

upfirdn is defined as an oct-file with its source in src/ in the signal
package. Did the compilation step of your `pkg install -forge signal`
command succeed?

Can you include the output of `find /home/rt/octave/signal-1.4.0` so we
can see what the installed package looks like?

Cheers,
Andrew


RT
Reply | Threaded
Open this post in threaded view
|

Re: upfirdn error when using resample but it says it's included?

RT

For some reason it's now missing not sure what happened... the only thing in that directory is.
control-3.1.0
geometry-3.0.0
image-2.8.0
quaternion-2.4.0

I did a
pkg install -forge signal  and several errors come now up
upfirdn.cc:24:10: fatal error: octave/gripes.h: No such file or directory
 #include <octave/gripes.h>
          ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:43: upfirdn.oct] Error 1
make: *** Waiting for unfinished jobs....
sosfilt.cc:24:10: fatal error: octave/gripes.h: No such file or directory
 #include <octave/gripes.h>
          ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:43: sosfilt.oct] Error 1
cl2bp.cc: In function ‘octave_value_list Fcl2bp(const octave_value_list&, int)’:
cl2bp.cc:92:5: error: ‘gripe_wrong_type_arg’ was not declared in this scope
     gripe_wrong_type_arg ("cl2bp", args(0));
     ^~~~~~~~~~~~~~~~~~~~
cl2bp.cc:92:5: note: suggested alternative: ‘err_wrong_type_arg’
     gripe_wrong_type_arg ("cl2bp", args(0));
     ^~~~~~~~~~~~~~~~~~~~
     err_wrong_type_arg
cl2bp.cc:97:5: error: ‘gripe_wrong_type_arg’ was not declared in this scope
     gripe_wrong_type_arg ("cl2bp", args(1));
     ^~~~~~~~~~~~~~~~~~~~
cl2bp.cc:97:5: note: suggested alternative: ‘err_wrong_type_arg’
     gripe_wrong_type_arg ("cl2bp", args(1));
     ^~~~~~~~~~~~~~~~~~~~
     err_wrong_type_arg
cl2bp.cc:102:5: error: ‘gripe_wrong_type_arg’ was not declared in this scope
     gripe_wrong_type_arg ("cl2bp", args(2));
     ^~~~~~~~~~~~~~~~~~~~
cl2bp.cc:102:5: note: suggested alternative: ‘err_wrong_type_arg’
     gripe_wrong_type_arg ("cl2bp", args(2));
     ^~~~~~~~~~~~~~~~~~~~
     err_wrong_type_arg
cl2bp.cc:107:5: error: ‘gripe_wrong_type_arg’ was not declared in this scope
     gripe_wrong_type_arg ("cl2bp", args(3));
     ^~~~~~~~~~~~~~~~~~~~
cl2bp.cc:107:5: note: suggested alternative: ‘err_wrong_type_arg’
     gripe_wrong_type_arg ("cl2bp", args(3));
     ^~~~~~~~~~~~~~~~~~~~
     err_wrong_type_arg
cl2bp.cc:112:5: error: ‘gripe_wrong_type_arg’ was not declared in this scope
     gripe_wrong_type_arg ("cl2bp", args(4));
     ^~~~~~~~~~~~~~~~~~~~
cl2bp.cc:112:5: note: suggested alternative: ‘err_wrong_type_arg’
     gripe_wrong_type_arg ("cl2bp", args(4));
     ^~~~~~~~~~~~~~~~~~~~
     err_wrong_type_arg
cl2bp.cc:129:5: error: ‘gripe_wrong_type_arg’ was not declared in this scope
     gripe_wrong_type_arg ("cl2bp", args(5));
     ^~~~~~~~~~~~~~~~~~~~
cl2bp.cc:129:5: note: suggested alternative: ‘err_wrong_type_arg’
     gripe_wrong_type_arg ("cl2bp", args(5));
     ^~~~~~~~~~~~~~~~~~~~
     err_wrong_type_arg
medfilt1.cc: In function ‘octave_value_list Fmedfilt1(const octave_value_list&, int)’:
medfilt1.cc:362:22: warning: format ‘%d’ expects argument of type ‘int’,but argument 2 has type ‘octave_idx_type’ {aka ‘long int’} [-Wformat=]
               error ("medfilt1: DIM must be positive, not %d", dim);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~
remez.cc: In function ‘octave_value_list Fremez(const octave_value_list&, int)’:
remez.cc:792:17: error: ‘NINT’ was not declared in this scope
   int numtaps = NINT (args(0).double_value()) + 1; // #coeff = filter order+1
                 ^~~~
remez.cc:792:17: note: suggested alternative: ‘NAN’
   int numtaps = NINT (args(0).double_value()) + 1; // #coeff = filter order+1
                 ^~~~
                 NAN
make: *** [Makefile:40: cl2bp.o] Error 1
make: *** [Makefile:43: remez.oct] Error 1
make: Entering directory '/tmp/oct-PGQolD/signal-1.4.0/src'
/app/bin/mkoctfile-5.1.0 -Wall -Wno-deprecated-declarations  __fwht__.cc-o __fwht__.oct
/app/bin/mkoctfile-5.1.0 -Wall -Wno-deprecated-declarations  __ultrwin__.cc -o __ultrwin__.oct
/app/bin/mkoctfile-5.1.0 -Wall -Wno-deprecated-declarations  -c cl2bp.cc-o cl2bp.o
/app/bin/mkoctfile-5.1.0 -Wall -Wno-deprecated-declarations  -c cl2bp_lib.cc -o cl2bp_lib.o
/app/bin/mkoctfile-5.1.0 -Wall -Wno-deprecated-declarations  medfilt1.cc-o medfilt1.oct
/app/bin/mkoctfile-5.1.0 -Wall -Wno-deprecated-declarations  remez.cc -oremez.oct
/app/bin/mkoctfile-5.1.0 -Wall -Wno-deprecated-declarations  sosfilt.cc -o sosfilt.oct
/app/bin/mkoctfile-5.1.0 -Wall -Wno-deprecated-declarations  upfirdn.cc -o upfirdn.oct
make: Leaving directory '/tmp/oct-PGQolD/signal-1.4.0/src'

pkg: error running `make' for the signal package.
error: called from
    configure_make at line 99 column 9
    install at line 184 column 7
    pkg at line 441 column 9

pkg install -forge signal
upfirdn.cc:24:10: fatal error: octave/gripes.h: No such file or directory
 #include <octave/gripes.h>
          ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:43: upfirdn.oct] Error 1
make: *** Waiting for unfinished jobs....
sosfilt.cc:24:10: fatal error: octave/gripes.h: No such file or directory
 #include <octave/gripes.h>
          ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:43: sosfilt.oct] Error 1
cl2bp.cc: In function ‘octave_value_list Fcl2bp(const octave_value_list&, int)’:
cl2bp.cc:92:5: error: ‘gripe_wrong_type_arg’ was not declared in this scope
     gripe_wrong_type_arg ("cl2bp", args(0));
     ^~~~~~~~~~~~~~~~~~~~
cl2bp.cc:92:5: note: suggested alternative: ‘err_wrong_type_arg’
     gripe_wrong_type_arg ("cl2bp", args(0));
     ^~~~~~~~~~~~~~~~~~~~
     err_wrong_type_arg
cl2bp.cc:97:5: error: ‘gripe_wrong_type_arg’ was not declared in this scope
     gripe_wrong_type_arg ("cl2bp", args(1));
     ^~~~~~~~~~~~~~~~~~~~
cl2bp.cc:97:5: note: suggested alternative: ‘err_wrong_type_arg’
     gripe_wrong_type_arg ("cl2bp", args(1));
     ^~~~~~~~~~~~~~~~~~~~
     err_wrong_type_arg
cl2bp.cc:102:5: error: ‘gripe_wrong_type_arg’ was not declared in this scope
     gripe_wrong_type_arg ("cl2bp", args(2));
     ^~~~~~~~~~~~~~~~~~~~
cl2bp.cc:102:5: note: suggested alternative: ‘err_wrong_type_arg’
     gripe_wrong_type_arg ("cl2bp", args(2));
     ^~~~~~~~~~~~~~~~~~~~
     err_wrong_type_arg
cl2bp.cc:107:5: error: ‘gripe_wrong_type_arg’ was not declared in this scope
     gripe_wrong_type_arg ("cl2bp", args(3));
     ^~~~~~~~~~~~~~~~~~~~
cl2bp.cc:107:5: note: suggested alternative: ‘err_wrong_type_arg’
     gripe_wrong_type_arg ("cl2bp", args(3));
     ^~~~~~~~~~~~~~~~~~~~
     err_wrong_type_arg
cl2bp.cc:112:5: error: ‘gripe_wrong_type_arg’ was not declared in this scope
     gripe_wrong_type_arg ("cl2bp", args(4));
     ^~~~~~~~~~~~~~~~~~~~
cl2bp.cc:112:5: note: suggested alternative: ‘err_wrong_type_arg’
     gripe_wrong_type_arg ("cl2bp", args(4));
     ^~~~~~~~~~~~~~~~~~~~
     err_wrong_type_arg
cl2bp.cc:129:5: error: ‘gripe_wrong_type_arg’ was not declared in this scope
     gripe_wrong_type_arg ("cl2bp", args(5));
     ^~~~~~~~~~~~~~~~~~~~
cl2bp.cc:129:5: note: suggested alternative: ‘err_wrong_type_arg’
     gripe_wrong_type_arg ("cl2bp", args(5));
     ^~~~~~~~~~~~~~~~~~~~
     err_wrong_type_arg
medfilt1.cc: In function ‘octave_value_list Fmedfilt1(const octave_value_list&, int)’:
medfilt1.cc:362:22: warning: format ‘%d’ expects argument of type ‘int’,but argument 2 has type ‘octave_idx_type’ {aka ‘long int’} [-Wformat=]
               error ("medfilt1: DIM must be positive, not %d", dim);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~
remez.cc: In function ‘octave_value_list Fremez(const octave_value_list&, int)’:
remez.cc:792:17: error: ‘NINT’ was not declared in this scope
   int numtaps = NINT (args(0).double_value()) + 1; // #coeff = filter order+1
                 ^~~~
remez.cc:792:17: note: suggested alternative: ‘NAN’
   int numtaps = NINT (args(0).double_value()) + 1; // #coeff = filter order+1
                 ^~~~
                 NAN
make: *** [Makefile:40: cl2bp.o] Error 1
make: *** [Makefile:43: remez.oct] Error 1
make: Entering directory '/tmp/oct-PGQolD/signal-1.4.0/src'
/app/bin/mkoctfile-5.1.0 -Wall -Wno-deprecated-declarations  __fwht__.cc-o __fwht__.oct
/app/bin/mkoctfile-5.1.0 -Wall -Wno-deprecated-declarations  __ultrwin__.cc -o __ultrwin__.oct
/app/bin/mkoctfile-5.1.0 -Wall -Wno-deprecated-declarations  -c cl2bp.cc-o cl2bp.o
/app/bin/mkoctfile-5.1.0 -Wall -Wno-deprecated-declarations  -c cl2bp_lib.cc -o cl2bp_lib.o
/app/bin/mkoctfile-5.1.0 -Wall -Wno-deprecated-declarations  medfilt1.cc-o medfilt1.oct
/app/bin/mkoctfile-5.1.0 -Wall -Wno-deprecated-declarations  remez.cc -oremez.oct
/app/bin/mkoctfile-5.1.0 -Wall -Wno-deprecated-declarations  sosfilt.cc -o sosfilt.oct
/app/bin/mkoctfile-5.1.0 -Wall -Wno-deprecated-declarations  upfirdn.cc -o upfirdn.oct
make: Leaving directory '/tmp/oct-PGQolD/signal-1.4.0/src'

pkg: error running `make' for the signal package.
error: called from
    configure_make at line 99 column 9
    install at line 184 column 7
    pkg at line 441 column 9

On Sun, Mar 24, 2019 at 2:26 PM Andrew Janke <[hidden email]> wrote:


On 3/24/19 2:18 PM, RT wrote:
> When I use resample I get an error with upfirdn see error below but
> upfirdn should be included in the signal package.
> https://octave.sourceforge.io/signal/function/upfirdn.html
>
> Please read <https://www.octave.org/missing.html> to learn how you can
> contribute missing functionality.
> error: 'upfirdn' undefined near line 121 column 11
> error: called from
>      resample at line 121 column 9
>
> I'm using Octave version 5.1 on 64bit Ubuntu Linux
>
>  >> pkg list
> Package Name  | Version | Installation directory
> --------------+---------+-----------------------
>       control *|   3.1.0 | /home/rt/octave/control-3.1.0
>      geometry  |   3.0.0 | /home/rt/octave/geometry-3.0.0
>         image  |   2.8.0 | /home/rt/octave/image-2.8.0
>    quaternion *|   2.4.0 | /home/rt/octave/quaternion-2.4.0
>        signal *|   1.4.0 | /home/rt/octave/signal-1.4.0
>
>

upfirdn is defined as an oct-file with its source in src/ in the signal
package. Did the compilation step of your `pkg install -forge signal`
command succeed?

Can you include the output of `find /home/rt/octave/signal-1.4.0` so we
can see what the installed package looks like?

Cheers,
Andrew


--