I've installed the basic TexGen and the python interface on a Linux cluster without problem. Also OpenCascade has been installed correctly. However, when I try to compile the Export features of TexGen, I get the errors below.
Any clue what could be the reason?
[ 96%] Building CXX object Export/CMakeFiles/TexGenExport.dir/Exporter.o
In file included from /projects/uoa00210/temp/OpenCASCADE/inc/Standard_Real.hxx:11:0,
from /projects/uoa00210/temp/OpenCASCADE/inc/gp_XYZ.hxx:17,
from /projects/uoa00210/temp/OpenCASCADE/inc/gp_Pnt.hxx:17,
from /projects/uoa00210/temp/texgen/TexGen/Export/Exporter.cpp:3:
/projects/uoa00210/temp/OpenCASCADE/inc/Standard_math.hxx:32:0: warning: "M_SQRT1_2" redefined [enabled by default]
# define M_SQRT1_2 7.0710678118654752440E-1
^
In file included from /gpfs1m/apps/easybuild/RHEL6.3/westmere/software/GCC/4.8.2/include/c++/4.8.2/cmath:44:0,
from /projects/uoa00210/temp/texgen/TexGen/Export/../Core/mymath.h:22,
from /projects/uoa00210/temp/texgen/TexGen/Export/../Core/PrecompiledHeaders.h:34,
from /projects/uoa00210/temp/texgen/TexGen/Export/Exporter.h:5,
from /projects/uoa00210/temp/texgen/TexGen/Export/Exporter.cpp:1:
/usr/include/math.h:369:0: note: this is the location of the previous definition
# define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */
^
In file included from /projects/uoa00210/temp/OpenCASCADE/inc/Standard.hxx:13:0,
from /projects/uoa00210/temp/OpenCASCADE/inc/gp_Pnt.hxx:10,
from /projects/uoa00210/temp/texgen/TexGen/Export/Exporter.cpp:3:
/projects/uoa00210/temp/OpenCASCADE/inc/Standard_Macro.hxx:37:38: error: expected constructor, destructor, or type conversion before ‘(’ token
Apologies for not replying sooner. I have to confess that I haven't built the Linux version with the Export option myself (not sure if my predecessor had done that or not). I had a quick look earlier in the week but haven't managed to build OpenCascade yet (I'm using Ubuntu). I'm not sure if I set it up properly - if you could let me know what you did to build it that would be great.
Which version of OpenCascade have you used? The current Windows installation of TexGen uses 6.5.2. I should look into upgrading it (especially as the export quite often crashes in the OpenCascade functions). If you're using a newer version therefore I can't guarantee that TexGen will build with it without any upgrade issues.
What are you using TexGen to do? Do you specifically need STEP/IGES output? If not just leave out the Export option and everything should work fine.
I will look into it but it will probably be next week before I have time.