Problems installing signal package

classic Classic list List threaded Threaded
5 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
>



Reply | Threaded
Open this post in threaded view
|

Re: Problems installing signal package

nicholas ferguson
In reply to this post by Diego
I had same problem.  Signal package is not installed on windows 10 with
octave-5.1.0-w64
The following steps worked:
From browser, go to:
https://sourceforge.net/p/octave/signal/ci/default/tree/
download snapshot
copied snapshot zip over to local cygwin
unziped, then tar as signal.tar
then from octave octave-5.1.0-w64
pkg install <dir to signal.tar >  and this worked.



--
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

nrjank


On Sun, Mar 31, 2019 at 18:14 nicholas ferguson <[hidden email]> wrote:
I had same problem.  Signal package is not installed on windows 10 with
octave-5.1.0-w64
The following steps worked:
From browser, go to:
https://sourceforge.net/p/octave/signal/ci/default/tree/
download snapshot
copied snapshot zip over to local cygwin
unziped, then tar as signal.tar
then from octave octave-5.1.0-w64
pkg install <dir to signal.tar >  and this worked.

Ok, where did you get your windows installer from, because all of the windows installers and packages include the signal package,along with a number of others. Did you follow the post install instructions? See






Reply | Threaded
Open this post in threaded view
|

Re: Problems installing signal package

tmacchant
In reply to this post by nicholas ferguson




----- Original Message -----

> From: nicholas ferguson 
> To: help-octave
> Cc:
> Date: 2019/4/1, Mon 06:34
> Subject: Re: Problems installing signal package
>
> I had same problem.  Signal package is not installed on windows 10 with
> octave-5.1.0-w64
> The following steps worked:
> From browser, go to:
> https://sourceforge.net/p/octave/signal/ci/default/tree/
> download snapshot
> copied snapshot zip over to local cygwin
> unziped, then tar as signal.tar
> then from octave octave-5.1.0-w64
> pkg install <dir to signal.tar >  and this worked.
>



> I had same problem.  Signal package is not installed on windows 10 with
> octave-5.1.0-w64


No!
The signal package is pre-installed octave for windows.

>> pkg list signal
Package Name  | Version | Installation directory
--------------+---------+-----------------------
      signal  |   1.4.0 | C:\octave\OCTAVE~3.0\mingw64\share\octave\packages\signal-1.4.0

If you did not install octave by installer, you should execute post-install.bat
to activate pre-installed package.

See https://wiki.octave.org/Octave_for_Microsoft_Windows

Perhaps the official page of GNU octave should point the above page. 


Tatsuro