ikarosilva / wfdb-app-toolbox

The WFDB Toolbox for MATLAB/Octave is a collection of functions for reading, writing, and processing physiologic signals in the formats used by PhysioNet (see README for details).
http://physionet.org/physiotools/matlab/wfdb-app-matlab/
GNU General Public License v3.0
93 stars 46 forks source link

Install problem in Windows 32 bit arch #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Installing the toolbox in Matlab.
1.wfdbdemo

What is the expected output? What do you see instead?

Expected:
Reading samples ECG signal from MIT-BIH Arrhythmia Database
Reading and plotting annotations (human labels) of QRS complexes performend on 
the signals
Ploting 3D version of signal and labels
Demoing finished !!
For more information about the toolbox, type 'wfdb' at the command prompt.

Obtained:

>> wfdbdemo
error executing: wfdb-config
java.io.IOException: Cannot run program 
"D:\Mariano\misc\wfdb-app-toolbox\mcode\nativelibs\windows-x86\bin\wfdb-config":
 CreateProcess error=3, El sistema no puede hallar la ruta especificada
    at java.lang.ProcessBuilder.start(Unknown Source)
    at org.physionet.wfdb.Wfdbexec.execToStringList(Unknown Source)
    at org.physionet.wfdb.Wfdbexec.execToStringList(Unknown Source)
Caused by: java.io.IOException: CreateProcess error=3, El sistema no puede 
hallar la ruta especificada
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    ... 3 more
Reading samples ECG signal from MIT-BIH Arrhythmia Database
error executing: wfdb-config
java.io.IOException: Cannot run program 
"D:\Mariano\misc\wfdb-app-toolbox\mcode\nativelibs\windows-x86\bin\wfdb-config":
 CreateProcess error=3, El sistema no puede hallar la ruta especificada
    at java.lang.ProcessBuilder.start(Unknown Source)
    at org.physionet.wfdb.Wfdbexec.execToStringList(Unknown Source)
    at org.physionet.wfdb.Wfdbexec.execToStringList(Unknown Source)
Caused by: java.io.IOException: CreateProcess error=3, El sistema no puede 
hallar la ruta especificada
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    ... 3 more
java.io.IOException: Cannot run program 
"D:\Mariano\misc\wfdb-app-toolbox\mcode\nativelibs\windows-x86\bin\rdsamp": 
CreateProcess error=3, El sistema no puede hallar la ruta especificada
    at java.lang.ProcessBuilder.start(Unknown Source)
    at org.physionet.wfdb.Wfdbexec.execToDoubleArray(Unknown Source)
Caused by: java.io.IOException: CreateProcess error=3, El sistema no puede 
hallar la ruta especificada
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    ... 2 more
Index exceeds matrix dimensions.

Error in rdsamp (line 178)
    eval(['varargout{n}=' outputs{n} ';'])

Error in wfdbdemo (line 12)
[tm,ecg]=rdsamp('mitdb/100',1,N);

What version of the product are you using? On what operating system?

   WaveForm DataBase (WFDB) Toolbox 
   Version 0.9.6.1

Please provide any additional information below.

Hi Ikaro, I think that the problem is in config.WFDB_NATIVE_BIN which points to:

 [...]\wfdb-app-toolbox\mcode\nativelibs\windows-x86\

I am using a 32 bit OS, and making a copy of 

 [...]\wfdb-app-toolbox\mcode\nativelibs\windows-amd64\

to

 [...]\wfdb-app-toolbox\mcode\nativelibs\windows-x86\

Solves the problem. Maybe some binary there is compiled in 64 bits, I dont 
know. Maybe including the 32 bit version could help or maybe the 64bits version 
for non AMD processors. What do you think ?

Original issue reported on code.google.com by llame...@gmail.com on 11 Feb 2014 at 11:15

GoogleCodeExporter commented 9 years ago
This work around may work but is not supported. This issue a copy of issue 8 
(support for 32 bit systems). 

Original comment by ikarosil...@gmail.com on 11 Feb 2014 at 4:20