build issue: ActData_CAFConversionCtx.cpp:119:84: error: ‘Message_ProgressSentry::Message_ProgressSentry()

Guo issac

CAD practitioner
Hi, all:

when I build it, below issue printing. is there some suggestion?

my environment is, debian 9.

Guo Issac.


[ 9%] Building CXX object src/asiActiveData/CMakeFiles/asiActiveData.dir/STD/ActData_RealVarPartition.cpp.o
[ 9%] Building CXX object src/asiActiveData/CMakeFiles/asiActiveData.dir/Tools/ActData_CAFConversionAsset.cpp.o
[ 9%] Building CXX object src/asiActiveData/CMakeFiles/asiActiveData.dir/Tools/ActData_CAFConversionCtx.cpp.o
/36G/AnalysisSitus/src/asiActiveData/Tools/ActData_CAFConversionCtx.cpp: In member function ‘Standard_Boolean ActData_CAFConversionCtx::Apply(const opencascade::handle<ActAPI_IModel>&, const opencascade::handle<Message_ProgressIndicator>&)’:
/36G/AnalysisSitus/src/asiActiveData/Tools/ActData_CAFConversionCtx.cpp:119:33: warning: ‘Message_ProgressSentry’ is deprecated: Deprecated class, Message_ProgressScope should be used instead [-Wdeprecated-declarations]
Message_ProgressSentry PEntry(theProgress, "CAF_CONVERSION_CTX_APPLYING", 0, 2, 1);
^~~~~~~~~~~
In file included from /36G/AnalysisSitus/src/asiActiveData/Tools/ActData_CAFConversionCtx.cpp:47:0:
/usr/local/include/opencascade/Message_ProgressSentry.hxx:22:1: note: declared here
Message_ProgressSentry : public Message_ProgressScope
^~~~~~~~~~~~~~~~~~~~~~
/36G/AnalysisSitus/src/asiActiveData/Tools/ActData_CAFConversionCtx.cpp:119:84: error: ‘Message_ProgressSentry::Message_ProgressSentry(const opencascade::handle<Message_ProgressIndicator>&, Standard_CString, Standard_Real, Standard_Real, Standard_Real, Standard_Boolean, Standard_Real)’ is private within this context
Message_ProgressSentry PEntry(theProgress, "CAF_CONVERSION_CTX_APPLYING", 0, 2, 1);
^
In file included from /36G/AnalysisSitus/src/asiActiveData/Tools/ActData_CAFConversionCtx.cpp:47:0:
/usr/local/include/opencascade/Message_ProgressSentry.hxx:46:3: note: declared private here
Message_ProgressSentry (const Handle(Message_ProgressIndicator)& theProgress,
^~~~~~~~~~~~~~~~~~~~~~
src/asiActiveData/CMakeFiles/asiActiveData.dir/build.make:2222: recipe for target 'src/asiActiveData/CMakeFiles/asiActiveData.dir/Tools/ActData_CAFConversionCtx.cpp.o' failed
make[2]: *** [src/asiActiveData/CMakeFiles/asiActiveData.dir/Tools/ActData_CAFConversionCtx.cpp.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'src/asiActiveData/CMakeFiles/asiActiveData.dir/all' failed
make[1]: *** [src/asiActiveData/CMakeFiles/asiActiveData.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
 

JSlyadne

Administrator
Staff member
It should be you're trying to compile AS with OpenCascade of 7.5+ version (the message indicator was redesigned there), while AS is based on OCCT v7.4.0.

You may want to follow this thread (http://analysissitus.org/forum/index.php?threads/compilation-on-windows.10/) to get know how to build AS for Windows, or this one (http://analysissitus.org/forum/index.php?threads/compilation-on-linux.5/) for Linux.

The porting of AS to OpenCascade is on the way. There is the dedicated branch in the repository (https://gitlab.com/ssv/AnalysisSitus/-/tree/OCCT760) but the development is not yet comprehensively tested. So, if need, you can try out it and, we would appreciate if you let us know the regressions you face there.
 

Guo issac

CAD practitioner
It should be you're trying to compile AS with OpenCascade of 7.5+ version (the message indicator was redesigned there), while AS is based on OCCT v7.4.0.

You may want to follow this thread (http://analysissitus.org/forum/index.php?threads/compilation-on-windows.10/) to get know how to build AS for Windows, or this one (http://analysissitus.org/forum/index.php?threads/compilation-on-linux.5/) for Linux.

The porting of AS to OpenCascade is on the way. There is the dedicated branch in the repository (https://gitlab.com/ssv/AnalysisSitus/-/tree/OCCT760) but the development is not yet comprehensively tested. So, if need, you can try out it and, we would appreciate if you let us know the regressions you face there.

I test it by install OCCT v7.4.0.
but, when I cmake-gui.
below issued.
it looks the Eigen dir cannot found. but I alread give it the correct Eigen3 path.
any more suggestion?

//----------------------
Analysis Situs VERSION_MAJOR: 1

Analysis Situs VERSION_MINOR: 1

Analysis Situs VERSION_PATCH: 0

Processing Eigen 3-rd party

... Searching for eigen in /usr/lib for compiler gxx and bitness 32

... Found: EIGEN_DIR =

CMake Error at cmake/asitus_Eigen.cmake:9 (message):
... Eigen is not found.
Call Stack (most recent call first):
CMakeLists.txt:63 (include)


... Eigen dir:

Usetting Rapidjson 3-rd party

... Unsetting 3RDPARTY_rapidjson_DIR
 

Guo issac

CAD practitioner
after fix the above ... Eigen is not found. problem.

below issue occur:

[ 23%] Building CXX object src/asiAlgo/CMakeFiles/asiAlgo.dir/mesh/asiAlgo_MeshComputeShapeNorms.cpp.o
[ 23%] Building CXX object src/asiAlgo/CMakeFiles/asiAlgo.dir/mesh/asiAlgo_MeshConvert.cpp.o
In file included from /36G/AnalysisSitus/src/asiAlgo/mesh/asiAlgo_MeshConvert.cpp:32:0:
/36G/AnalysisSitus/src/asiAlgo/mesh/asiAlgo_MeshConvert.h:47:27: fatal error: vtkPolyData.h: No such file or directory
#include <vtkPolyData.h>
^
compilation terminated.
src/asiAlgo/CMakeFiles/asiAlgo.dir/build.make:2822: recipe for target 'src/asiAlgo/CMakeFiles/asiAlgo.dir/mesh/asiAlgo_MeshConvert.cpp.o' failed
make[2]: *** [src/asiAlgo/CMakeFiles/asiAlgo.dir/mesh/asiAlgo_MeshConvert.cpp.o] Error 1
CMakeFiles/Makefile2:140: recipe for target 'src/asiAlgo/CMakeFiles/asiAlgo.dir/all' failed
make[1]: *** [src/asiAlgo/CMakeFiles/asiAlgo.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
 

JSlyadne

Administrator
Staff member
Did you set the directory pointing to VTK package? If you follow the links posted above you'll find there the libpack containing all the mandatory dependencies, and the instruction how to configurate CMake properly.
 
Top