make for CSXCAD failed
Moderators: thorsten, sebastian
make for CSXCAD failed
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
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
Re: make for CSXCAD failed
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
Have you tried building the latest development (master branch) version?
regards
Thorsten
Re: make for CSXCAD failed
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
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
Re: make for CSXCAD failed
As I though, you use vtk6.x, openEMS v0.0.31 only supports vtk5.x...
I guess you overlooked this line in the wiki:
http://openems.de/index.php/Compile_fro ... ent_Branch
regards
Thorsten
I guess you overlooked this line in the wiki:
Please follow the instruction to use the development branch with fixes/adaption to vtk6 :Note: Fedora user need to checkout the latest development branch (see below)
http://openems.de/index.php/Compile_fro ... ent_Branch
regards
Thorsten
Re: make for CSXCAD failed
Thanks a lot Thorsten. It works.
Re: make for CSXCAD failed
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:
Then I tried installing the master branch with vtk5 and get the following error:
Finally, I'd tried installing the master branch with vtk6 installed and vtk5 uninstalled and the error remains the same though,
Can you please help me!
Thanks,
Felipe.
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]
....
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."
...
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]
...
Thanks,
Felipe.
Re: make for CSXCAD failed
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
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
Re: make for CSXCAD failed
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.
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
Re: make for CSXCAD failed
Hi,
the problem is that the installer cannot find your vtk:
Do you use the system vtk version??
Where is it installed??
regards
Thorsten
the problem is that the installer cannot find your vtk:
Code: Select all
Detected vtk 5.x library path:
Where is it installed??
regards
Thorsten
Re: make for CSXCAD failed
You could also try switching to the latest "master" branch and give the new cmake build system a try.
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
Code: Select all
cd openEMS-Project
git fetch --all
git checkout -b master origin/master
git submodule update
mkdir build
cd build
cmake ..
make
regards
Thorsten