make for CSXCAD failed

Install support for openEMS

Moderators: thorsten, sebastian

sudantha
Posts: 3
Joined: Mon 29 Jul 2013, 21:44

make for CSXCAD failed

Post by sudantha » Mon 21 Apr 2014, 23:43

Hello everyone,

I am trying to install OpenEMS. I got a compilation error as below. Can you help with this problem?

compiling CSXCAD ... please wait
src/CSPrimPolyhedronReader.cpp: In member function ‘virtual bool CSPrimPolyhedronReader::ReadFile(std::string)’:
src/CSPrimPolyhedronReader.cpp:145:12: error: ‘class vtkPolyData’ has no member named ‘Update’
polydata->Update();
^
make: *** [obj/CSPrimPolyhedronReader.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/include/CGAL/AABB_polyhedron_triangle_primitive.h:27:0,
from src/CSPrimPolyhedron_p.h:9,
from src/CSPrimPolyhedron.cpp:25:
/usr/include/CGAL/internal/deprecation_warning.h:57:6: warning: #warning "A deprecated header has been included." [-Wcpp]
# warning "A deprecated header has been included."
^
In file included from /usr/include/CGAL/AABB_polyhedron_segment_primitive.h:31:0,
from src/CSPrimPolyhedron_p.h:10,
from src/CSPrimPolyhedron.cpp:25:
/usr/include/CGAL/internal/deprecation_warning.h:57:6: warning: #warning "A deprecated header has been included." [-Wcpp]
# warning "A deprecated header has been included."
^
In file included from /usr/include/CGAL/AABB_polyhedron_triangle_primitive.h:27:0,
from src/CSPrimPolyhedron_p.h:9,
from src/CSPrimPolyhedron.cpp:25:
/usr/include/CGAL/internal/deprecation_warning.h:58:54: note: #pragma message: Warning: The header <CGAL/AABB_polyhedron_triangle_primitive.h> is deprecated. Please use <CGAL/AABB_face_graph_triangle_primitive.h> instead.
# pragma message (CGAL_INTERNAL_DEPRECATED_MESSAGE)
^
In file included from /usr/include/CGAL/AABB_polyhedron_segment_primitive.h:31:0,
from src/CSPrimPolyhedron_p.h:10,
from src/CSPrimPolyhedron.cpp:25:
/usr/include/CGAL/internal/deprecation_warning.h:58:54: note: #pragma message: Warning: The header <CGAL/AABB_polyhedron_segment_primitive.h> is deprecated. Please use <CGAL/AABB_halfedge_graph_segment_primitive.h> instead.
# pragma message (CGAL_INTERNAL_DEPRECATED_MESSAGE)
^
make for CSXCAD failed


best regards

Sudantha Perera

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

Re: make for CSXCAD failed

Post by thorsten » Tue 22 Apr 2014, 17:27

Only the first error is important, but you really need to supply more informations. E.g. what distribution are you using... Do you now which version of vtk you have?
Have you tried building the latest development (master branch) version?

regards
Thorsten

sudantha
Posts: 3
Joined: Mon 29 Jul 2013, 21:44

Re: make for CSXCAD failed

Post by sudantha » Tue 22 Apr 2014, 18:06

Thank you, Thorsten. I really appreciate your help.

I used this command to install packages and libraries as instructed on the wiki:
sudo yum install make gcc gcc-c++ git hdf5-devel vtk-devel boost-devel CGAL-devel tinyxml-devel qt-devel vtk-qt

yum list command gave me these versions
vtk-qt.x86_64 6.0.0-9.fc20
vtk.x86_64 6.0.0-9.fc20
vtk-devel.x86_64 6.0.0-9.fc20


I am using fedora20 Linux distro.

I used git clone -b stable https://github.com/thliebig/openEMS-Project.git command to clone the openEMS-project. I believe I am getting the latest version.

If this is not enough information, please let me know.

Thank you again

Sudantha

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

Re: make for CSXCAD failed

Post by thorsten » Tue 22 Apr 2014, 20:48

As I though, you use vtk6.x, openEMS v0.0.31 only supports vtk5.x...

I guess you overlooked this line in the wiki:
Note: Fedora user need to checkout the latest development branch (see below)
Please follow the instruction to use the development branch with fixes/adaption to vtk6 :
http://openems.de/index.php/Compile_fro ... ent_Branch

regards
Thorsten

sudantha
Posts: 3
Joined: Mon 29 Jul 2013, 21:44

Re: make for CSXCAD failed

Post by sudantha » Wed 23 Apr 2014, 00:39

Thanks a lot Thorsten. It works.

felipebm
Posts: 23
Joined: Wed 10 Dec 2014, 14:15

Re: make for CSXCAD failed

Post by felipebm » Thu 26 Feb 2015, 14:41

Hi Thorsten and Sudantha,

I'm having the same problem using Debian Jessie (Testing)

First I tried installing the stable branch with vtk5 and get the following error:

Code: Select all

compiling CSXCAD ... please wait
In file included from /usr/include/CGAL/AABB_polyhedron_triangle_primitive.h:27:0,
                 from src/CSPrimPolyhedron_p.h:9,
                 from src/CSPrimPolyhedron.cpp:25:
/usr/include/CGAL/internal/deprecation_warning.h:57:6: warning: #warning "A deprecated header has been included." [-Wcpp]
....
Then I tried installing the master branch with vtk5 and get the following error:

Code: Select all

compiling CSXCAD ... please wait
In file included from /usr/include/CGAL/AABB_polyhedron_triangle_primitive.h:27:0,
                 from src/CSPrimPolyhedron_p.h:9,
                 from src/CSPrimPolyhedron.cpp:25:
/usr/include/CGAL/internal/deprecation_warning.h:57:6: warning: #warning "A deprecated header has been included." [-Wcpp]
 #    warning "A deprecated header has been included."
...
Finally, I'd tried installing the master branch with vtk6 installed and vtk5 uninstalled and the error remains the same though,

Code: Select all

compiling CSXCAD ... please wait
In file included from /usr/include/CGAL/AABB_polyhedron_triangle_primitive.h:27:0,
                 from src/CSPrimPolyhedron_p.h:9,
                 from src/CSPrimPolyhedron.cpp:25:
/usr/include/CGAL/internal/deprecation_warning.h:57:6: warning: #warning "A deprecated header has been included." [-Wcpp]
...
Can you please help me!

Thanks,
Felipe.

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

Re: make for CSXCAD failed

Post by thorsten » Thu 26 Feb 2015, 17:11

Hi,

as the messages says, it is not related to vtk, but to CGAL. And it is only a warning, thus should not be a problem for now??

regards
Thorsten

felipebm
Posts: 23
Joined: Wed 10 Dec 2014, 14:15

Re: make for CSXCAD failed

Post by felipebm » Thu 26 Feb 2015, 18:48

Hi Thorsten,

First of all, thanks for your help and for the great piece of software that you share with us.

Maybe I didn't posted the relevant part of the output messages, but so far I'm not able to pass the first test of the Tutorial: First Steps (there is no even an openEMS file in the installation directory)

At the end of this message you can see all the output messages. Can you tell what is going wrong?

Thanks again,
Felipe.

Code: Select all

$ cd openEMS-Project
$ git pull
Already up-to-date.
$ ./update_openEMS.sh ~/opt/openEMS
Using qmake from: /usr/bin/qmake-qt4
dirname: missing operand
Try 'dirname --help' for more information.
Detected vtk 5.x library path: 
setting install path to: /home/felipe/opt/openEMS
init & updating git submodules... please wait
compiling fparser ... please wait
installing fparser ... please wait
compiling CSXCAD ... please wait
In file included from /usr/include/CGAL/AABB_polyhedron_triangle_primitive.h:27:0,
                 from src/CSPrimPolyhedron_p.h:9,
                 from src/CSPrimPolyhedron.cpp:25:
/usr/include/CGAL/internal/deprecation_warning.h:57:6: warning: #warning "A deprecated header has been included." [-Wcpp]
 #    warning "A deprecated header has been included."
      ^
In file included from /usr/include/CGAL/AABB_polyhedron_segment_primitive.h:31:0,
                 from src/CSPrimPolyhedron_p.h:10,
                 from src/CSPrimPolyhedron.cpp:25:
/usr/include/CGAL/internal/deprecation_warning.h:57:6: warning: #warning "A deprecated header has been included." [-Wcpp]
 #    warning "A deprecated header has been included."
      ^
src/CSPropDiscMaterial.cpp:19:18: fatal error: hdf5.h: No such file or directory
 #include <hdf5.h>
                  ^
compilation terminated.
make: *** [obj/CSPropDiscMaterial.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/include/CGAL/AABB_polyhedron_triangle_primitive.h:27:0,
                 from src/CSPrimPolyhedron_p.h:9,
                 from src/CSPrimPolyhedron.cpp:25:
/usr/include/CGAL/internal/deprecation_warning.h:58:54: note: #pragma message: Warning: The header <CGAL/AABB_polyhedron_triangle_primitive.h> is deprecated. Please use <CGAL/AABB_face_graph_triangle_primitive.h> instead.
 #    pragma message (CGAL_INTERNAL_DEPRECATED_MESSAGE)
                                                      ^
In file included from /usr/include/CGAL/AABB_polyhedron_segment_primitive.h:31:0,
                 from src/CSPrimPolyhedron_p.h:10,
                 from src/CSPrimPolyhedron.cpp:25:
/usr/include/CGAL/internal/deprecation_warning.h:58:54: note: #pragma message: Warning: The header <CGAL/AABB_polyhedron_segment_primitive.h> is deprecated. Please use <CGAL/AABB_halfedge_graph_segment_primitive.h> instead.
 #    pragma message (CGAL_INTERNAL_DEPRECATED_MESSAGE)
                                                      ^
make for CSXCAD failed

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

Re: make for CSXCAD failed

Post by thorsten » Fri 27 Feb 2015, 09:40

Hi,

the problem is that the installer cannot find your vtk:

Code: Select all

Detected vtk 5.x library path: 
Do you use the system vtk version??
Where is it installed??

regards
Thorsten

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

Re: make for CSXCAD failed

Post by thorsten » Fri 27 Feb 2015, 10:25

You could also try switching to the latest "master" branch and give the new cmake build system a try.

Code: Select all

cd openEMS-Project
git fetch --all
git checkout -b master origin/master
git submodule update
mkdir build
cd build
cmake ..
make
If it still does not find your vtk, there should be a way to specify the path to look for it, but I would have to search for it...

regards
Thorsten

Post Reply