Compilation on Windows

Quaoar

Administrator
Staff member
Compilation on the Windows platform can be simplified by the help of a libpack. Prerequisites are as follows:
  • Visual Studio 2019.
  • OpenCascade 7.4.0 (Analysis Situs would not compile for the recent version of OpenCascade): https://gitlab.com/ssv/opencascade
  • VTK 8.2.
  • Other 3-rd parties are not that restricted in their versions, so you can use the most recent ones.
Here is the link to the libpack: https://analysissitus.org/files/libpacks/analysissitus-libpack-msvc2019.zip

Here is the CMake configuration that allows to build Analysis Situs GUI with the minimal set of dependencies (click on the image to enlarge):

1624004834048.png

There are some other juicy options, like building only the SDK libs, but let's start from the basics, and I'll expand on the possible options a bit later.
 
Last edited:

Quaoar

Administrator
Staff member
I made a fork for OpenCascade 7.4.0 with restored forward compatibility of BREP format (the BREP files stored in OpenCascade 7.5 won't open in OpenCascade 7.4 without any logical reason). Therefore, it's recommended to build Analysis Situs with this fork instead of the official 7.4.0: https://gitlab.com/ssv/opencascade
 

Quaoar

Administrator
Staff member
Also, Active Data 3-rd party is now eliminated (this Active Data framework is now a part of Analysis Situs). That should simplify a bit the compilation workflow. The more detailed release notes will be posted separately.
 

kavingp

Looking around for some CAD
HI Quaoar, Is there a way to build libraries for msvc2015 with C++14?
 
Last edited:

Quaoar

Administrator
Staff member
HI Quaoar, Is there a way to build libraries for msvc2015 with C++14?
Hello @kavingp

I haven't tried this for a while. The code uses optional and that's the only reason to have C++17. I think it's overkill though and it can be eliminated (although optionals are cool). I added a ticket for that: https://gitlab.com/ssv/AnalysisSitus/-/issues/117

It's planned for the next version (1.2) but hopefully, I can figure this out soon and update the master.
 

Quaoar

Administrator
Staff member
@kavingp I removed the C++17 requirement when the NetGen bridge is disabled (USE_NETGEN=off in cmake). You may want to try to compile master. Let me know if any problems remain, I do not have Visual Studio 2015 at hand.
 

jianbaoxia

CAD master
@Quaoar Hello Bro, I have compile Analysis Situs follow the requirements.
  • Visual Studio 2019.
  • OpenCascade 7.4.0 (Analysis Situs would not compile for the recent version of OpenCascade): https://gitlab.com/ssv/opencascade
  • VTK 8.2.
  • Other 3-rd parties are not that restricted in their versions, so you can use the most recent ones.
I success through Cmake, but when I build it in VS2019 with "RelWithDebInfo X64", I get some error:
1647173764824.png

It means the system can find the "setup" file. yes I set the package “setup” as the start project. I have no idea to set which project as start project.
And I have try to set other project, also can't access.
 

jianbaoxia

CAD master
@Quaoar Hello Bro, I have compile Analysis Situs follow the requirements.

I success through Cmake, but when I build it in VS2019 with "RelWithDebInfo X64", I get some error:
View attachment 208

It means the system can find the "setup" file. yes I set the package “setup” as the start project. I have no idea to set which project as start project.
And I have try to set other project, also can't access.
compile in window is easy, and the "asiExe" can be set as start project.
1647442007737.png
 
Top