Problems installing signal package

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

Problems installing signal package

Diego
Hi all,

I've tried installing the signal package in Octave 4.4.1 running Windows 10
and I had several problems.
The first time I tried with *pkg install -forge signal* and I received this
answer:

*error: pkg: could not download file signal-1.4.0.tar.gz from url
https://packages.octave.org/down
load/signal-1.4.0.tar.gz
error: called from
    pkg at line 410 column 13*

So, I downloaded the file and saved it in the folder where Octave is
running. Then I tried again to install with this command *pkg install
signal-1.4.0.tar.gz*. and I obtained this answer:

*medfilt1.cc: In member function 'void sorted_window::init(const double*,
octave_idx_type, octave_
idx_type, octave_idx_type)':
medfilt1.cc:91:7: error: 'bzero' was not declared in this scope
       bzero (buf, zeros * sizeof (double));
       ^~~~~
medfilt1.cc:91:7: note: suggested alternative: 'zeros'
       bzero (buf, zeros * sizeof (double));
       ^~~~~
       zeros
make: *** [medfilt1.oct] Error 1
make: Entering directory `/tmp/oct-cvB47o/signal-1.4.0/src'
C:/Octave/OCTAVE~1.1/bin/mkoctfile-4.4.1.exe -Wall
-Wno-deprecated-declarations  __fwht__.cc -o _
_fwht__.oct
C:/Octave/OCTAVE~1.1/bin/mkoctfile-4.4.1.exe -Wall
-Wno-deprecated-declarations  __ultrwin__.cc -
o __ultrwin__.oct
C:/Octave/OCTAVE~1.1/bin/mkoctfile-4.4.1.exe -Wall
-Wno-deprecated-declarations  -c cl2bp.cc -o c
l2bp.o
C:/Octave/OCTAVE~1.1/bin/mkoctfile-4.4.1.exe -Wall
-Wno-deprecated-declarations  -c cl2bp_lib.cc
-o cl2bp_lib.o
C:/Octave/OCTAVE~1.1/bin/mkoctfile-4.4.1.exe -Wall
-Wno-deprecated-declarations  cl2bp.o cl2bp_li
b.o -o cl2bp.oct
C:/Octave/OCTAVE~1.1/bin/mkoctfile-4.4.1.exe -Wall
-Wno-deprecated-declarations  medfilt1.cc -o m
edfilt1.oct
make: Leaving directory `/tmp/oct-cvB47o/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 437 column 9*

I don't understand what the problem is so if anybody knows how to help me it
would be amazing. Thank you so much.

Diego.



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

RE: Problems installing signal package

Tony Richardson
Maybe I am pointing out the obvious, if so, I apologize.  The pre-built versions of Octave for Windows available from the Octave web site already include this version of the signal package (and several other packages).  You just need to load it "pkg load signal".

Of course, if you built Octave from source or have special requirements you will need to build the signal package from source.

Tony

> -----Original Message-----
> From: Help-octave <help-octave-
> bounces+richardson=[hidden email]> On Behalf Of Diego
> Sent: Monday, December 3, 2018 8:12 AM
> To: [hidden email]
> Subject: Problems installing signal package
>
> Hi all,
>
> I've tried installing the signal package in Octave 4.4.1 running Windows 10 and
> I had several problems.
> The first time I tried with *pkg install -forge signal* and I received this
> answer:
>
> *error: pkg: could not download file signal-1.4.0.tar.gz from url
> https://packages.octave.org/down load/signal-1.4.0.tar.gz
> error: called from
>     pkg at line 410 column 13*
>
> So, I downloaded the file and saved it in the folder where Octave is running.
> Then I tried again to install with this command *pkg install signal-1.4.0.tar.gz*.
> and I obtained this answer:
>
> *medfilt1.cc: In member function 'void sorted_window::init(const double*,
> octave_idx_type, octave_ idx_type, octave_idx_type)':
> medfilt1.cc:91:7: error: 'bzero' was not declared in this scope
>        bzero (buf, zeros * sizeof (double));
>        ^~~~~
> medfilt1.cc:91:7: note: suggested alternative: 'zeros'
>        bzero (buf, zeros * sizeof (double));
>        ^~~~~
>        zeros
> make: *** [medfilt1.oct] Error 1
> make: Entering directory `/tmp/oct-cvB47o/signal-1.4.0/src'
> C:/Octave/OCTAVE~1.1/bin/mkoctfile-4.4.1.exe -Wall -Wno-deprecated-
> declarations  __fwht__.cc -o _ _fwht__.oct
> C:/Octave/OCTAVE~1.1/bin/mkoctfile-4.4.1.exe -Wall -Wno-deprecated-
> declarations  __ultrwin__.cc - o __ultrwin__.oct
> C:/Octave/OCTAVE~1.1/bin/mkoctfile-4.4.1.exe -Wall -Wno-deprecated-
> declarations  -c cl2bp.cc -o c l2bp.o C:/Octave/OCTAVE~1.1/bin/mkoctfile-
> 4.4.1.exe -Wall -Wno-deprecated-declarations  -c cl2bp_lib.cc -o cl2bp_lib.o
> C:/Octave/OCTAVE~1.1/bin/mkoctfile-4.4.1.exe -Wall -Wno-deprecated-
> declarations  cl2bp.o cl2bp_li b.o -o cl2bp.oct
> C:/Octave/OCTAVE~1.1/bin/mkoctfile-4.4.1.exe -Wall -Wno-deprecated-
> declarations  medfilt1.cc -o m edfilt1.oct
> make: Leaving directory `/tmp/oct-cvB47o/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 437 column 9*
>
> I don't understand what the problem is so if anybody knows how to help me
> it would be amazing. Thank you so much.
>
> Diego.
>
>
>
> --
> Sent from: http://octave.1599824.n4.nabble.com/Octave-General-
> f1599825.html
>