Conflicting install instructions, neither works

Install support for openEMS

Moderators: thorsten, sebastian

Post Reply
matt
Posts: 3
Joined: Tue 01 Aug 2017, 19:38

Conflicting install instructions, neither works

Post by matt » Tue 01 Aug 2017, 19:53

I'm using Fedora 23 and trying to install OpenEMS for the first time, and I pulled the latest version from git. I followed the following directions which I found in the "INSTALL" file:

Code: Select all

2) Build:
  - change directory to openEMS
  - build:
    mkdir build
    cd build
    cmake .. -DCMAKE_INSTALL_PREFIX=<path/to/install/> -DFPARSER_ROOT_DIR=<path/to/fparser> -DCSXCAD_ROOT_DIR=<path/to/CSXCAD>
    make
    make install (may require root)
When I leave off -DFPARSER_ROOT_DIR and -DCSXCAD_ROOT_DIR, everything builds ok, but I get a "no rule to make target install" error when I do make install. When I try to give paths for FPARSER and DSXCAD, it gives me a message saying those variables were ignored.

Next I tried the instructions at http://openems.de/index.php/OpenEMS#Installation. Those seem to build and install ok, but when I try the http://openems.de/index.php/Tutorial:_First_Steps tutorial, I get the following from Octave:

Code: Select all

>> InitCSX
error: 'InitCSX' undefined near line 1 column 1
>> addpath("~/opt/openEMS/share/openEMS/matlab")
>> InitCSX
error: 'InitCSX' undefined near line 1 column 1
>> setup
setting up openEMS matlab/octave interface
error: 'isOctave' undefined near line 17 column 4
error: called from
    setup at line 17 column 1
>> isOctave = 1
isOctave =  1
>> setup
setting up openEMS matlab/octave interface
error: 'isOctave' undefined near line 17 column 4
error: called from
    setup at line 17 column 1
>>

Any suggestions? Which instructions should I be using?

Thanks,
Matt

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

Re: Conflicting install instructions, neither works

Post by thorsten » Tue 01 Aug 2017, 23:38

Well the first method is very manual and each package at a time. This is meant for developers and not users.
Those seem to build and install ok
Seems? Or did it?
Red Hat and Fedora were always more difficult to get it installed as I do not use these distros.

Have you checked if the matlab files were copies to "~/opt/openEMS/share/openEMS/matlab".
If this is the case then Octave should find them after the addpath. Maybe you replace the "~" with your full home path.

regards
Thorsten

Post Reply