warning: function "h5readatt_octave" not found

Install support for openEMS

Moderators: thorsten, sebastian

Post Reply
g3yjr
Posts: 2
Joined: Fri 04 Mar 2016, 11:46

warning: function "h5readatt_octave" not found

Post by g3yjr » Fri 04 Mar 2016, 12:06

I installed Octave on 64-bit Ubuntu 14.04.1 by:

Code: Select all

sudo apt-add-repository ppa:octave/stable
sudo apt-get update
sudo apt-get install octave
This all seemed to go fine.

I had a first attempt at installing OpenEMS, but got a lot of linking errors, so I had a second try, installing libraries first like this:

Code: Select all


In Ubuntu Software Centre:

installed:  build-essential (seemed already to be installed)
git
cmake
libhdf5-dev
libvtk5-dev (seemed already to be installed)
libboost-all-dev
libcgal-dev
libtinyxml-dev
libqt4-dev (seemed already to be installed)
libvtk5-qt4-dev



cd /tmp
wget http://openems.de/download/src/openEMS-v0.0.33.tar.bz2

--2016-02-25 13:42:09--  http://openems.de/download/src/openEMS-v0.0.33.tar.bz2

Resolving openems.de (openems.de)... 134.91.66.104

Connecting to openems.de (openems.de)|134.91.66.104|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 1661595 (1.6M) [application/x-bzip2]

Saving to: ‘openEMS-v0.0.33.tar.bz2’



100%[========================================================================================================>] 1,661,595    899KB/s   in 1.8s   



2016-02-25 13:42:11 (899 KB/s) - ‘openEMS-v0.0.33.tar.bz2’ saved [1661595/1661595]


tar jxf openEMS-v0.0.33.tar.bz2
cd openEMS
./update_openEMS.sh ~/opt/openEMS
setting install path to: /home/gray/opt/openEMS

logging build output to: /tmp/openEMS/build_20160225_134854.log

running cmake in tmp dir: /tmp/tmp.bbnwKI8P97

build openEMS and dependencies ... pleae wait

build successful, cleaning up tmp dir ...

 -------- 

openEMS and all modules have been updated successfully...



% add the required paths to Octave/Matlab:

addpath('/home/gray/opt/openEMS/share/openEMS/matlab')

addpath('/home/gray/opt/openEMS/share/CSXCAD/matlab')



% optional additional pckages:



Have fun using openEMS
I added the addpath statements in .octocerc and startup.m

I ran a tutorial for a horn model. This ran fine, doing all the computation unitl:

Code: Select all

...
[@     3m01s] Timestep:         1245 || Speed:   58.1 MC/s (1.455e-01 s/TS) || Energy: ~2.48e-20 (-41.90dB)
Time for 1245 iterations with 8448048.00 cells : 181.04 sec
Speed: 58.10 MCells/s
 ----------------------------------------------------------------------
 | nf2ff, near-field to far-field transformation for openEMS
 | (C) 2012-2014 Thorsten Liebig <thorsten.liebig@gmx.de>  GPL license
 ----------------------------------------------------------------------
calculating far field at phi=[0 90] deg...
warning: function "h5readatt_octave" not found, trying to run "setup"
warning: called from
    ReadHDF5Attribute at line 15 column 9
    ReadNF2FF at line 22 column 12
    CalcNF2FF at line 149 column 7
    matlab_Tutorials_Horn_Antenna at line 165 column 7
setting up openEMS matlab/octave interface
compiling oct files
ans = 0
HDF5 library path found at: /usr/lib/x86_64-linux-gnu
error: running "setup" failed...
error: called from
    ReadHDF5Attribute at line 19 column 13
    ReadNF2FF at line 22 column 12
    CalcNF2FF at line 149 column 7
    matlab_Tutorials_Horn_Antenna at line 165 column 7
>>
So mostly it is good news. I just need a little help. Maybe I have a library missing?

thorsten
Posts: 1437
Joined: Mon 27 Jun 2011, 12:26

Re: warning: function "h5readatt_octave" not found

Post by thorsten » Fri 04 Mar 2016, 18:33

I think you need "liboctave-dev" too, try:

Code: Select all

sudo apt-get install liboctave-dev
regards
Thorsten

g3yjr
Posts: 2
Joined: Fri 04 Mar 2016, 11:46

Re: warning: function "h5readatt_octave" not found

Post by g3yjr » Fri 04 Mar 2016, 19:14

thorsten wrote:I think you need "liboctave-dev" too, try:

Code: Select all

sudo apt-get install liboctave-dev
regards
Thorsten
Thanks Thorsten for your very prompt reply. That fixed the h5readatt_octave error.

I'm running on an i5 processor with 8GB memory.

Graham

dom11990
Posts: 15
Joined: Mon 10 Jun 2019, 10:16

Re: warning: function "h5readatt_octave" not found

Post by dom11990 » Sat 13 Feb 2021, 14:39

Any idea what this package would be on Arch linux? I used the openems-project-git AUR to install openems. Everything worked reasonably well except for an incorrect path. Perhaps this library wasn't included in the package spec?

cheers
dominik

dom11990
Posts: 15
Joined: Mon 10 Jun 2019, 10:16

Re: warning: function "h5readatt_octave" not found

Post by dom11990 » Sat 13 Feb 2021, 14:50

Post my solution here- there was no additional package that needed installing. After modifying the

Code: Select all

/usr/share/octave/site/m/startup/octaverc
file to include the search paths for AppCSXCAD and openEMS.

Code: Select all

addpath('/usr/share/openEMS/matlab')
addpath('/usr/share/CSXCAD/matlab')
addpath('/home/dom/opt/CTB')


I ran

Code: Select all

/usr/share/openEMS/matlab >>> sudo octave setup.m 
and now all is well. It would be nice if the arch AUR package did all this correctly though.

Post Reply