Running NGSolve on Windows (python 3.9)

Hi everyone,
Is it possible to run NGSolve (NGS-Py) on Windows natively? I just switched from python 3.7 to python 3.9. Everything was working perfectly fine up until now.

Yes, but you have to compile NGSolve yourself.
https://docu.ngsolve.org/latest/install/installwindows.html

Thanks Christopher, I will give it a go. My immediate resort was Docker and that works seamlessly, but I will try to install from sources over the weekend.

Thanks,
Bhavesh

Hi Christopher,
I tried building NGSolve from source. However it fails. I am not an expert on CMake. Could you help me debug it?

This is the output of cmake --build

> cmake --build . --config Release --target install
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Creating directories for 'netgen_project'
  Building Custom Rule D:/setup/ngsolve/src/CMakeLists.txt
  No download step for 'netgen_project'
  No update step for 'netgen_project'
  No patch step for 'netgen_project'
  No configure step for 'netgen_project'
  Performing build step for 'netgen_project'
CUSTOMBUILD : CMake error : Unknown argument --build [D:\setup\ngsolve\build\netgen_project.vcxproj]
CUSTOMBUILD : CMake error : Run 'cmake --help' for all supported options. [D:\setup\ngsolve\build\netgen_project.vcxproj]

I have both Microsoft Visual Studio 2017 and 2019 installed on my machine.

Thanks

I was able to build Netgen it seems. However not NGSolve

22>d:\setup\ngsolve\src\fem\fastmat.hpp(82): warning C4273: 'ngfem::FastMat': inconsistent dll linkage
22>d:\setup\ngsolve\src\fem\fastmat.hpp(73): note: see previous definition of 'FastMat'
22>d:\setup\ngsolve\src\fem\fastmat.hpp(504): warning C4273: 'ngfem::FastMat': inconsistent dll linkage
22>d:\setup\ngsolve\src\fem\fastmat.hpp(67): note: see previous definition of 'FastMat'
22>d:\setup\ngsolve\src\fem\fastmat.hpp(555): warning C4273: 'ngfem::FastMat': inconsistent dll linkage
22>d:\setup\ngsolve\src\fem\fastmat.hpp(70): note: see previous definition of 'FastMat'
22>d:\setup\ngsolve\src\fem\bdbintegrator.hpp(150): warning C4273: 'ngfem::FastMat': inconsistent dll linkage
22>d:\setup\ngsolve\src\fem\fastmat.hpp(73): note: see previous definition of 'FastMat'
22>d:\setup\ngsolve\src\fem\bdbintegrator.hpp(153): warning C4273: 'ngfem::FastMat': inconsistent dll linkage
22>d:\setup\ngsolve\src\fem\fastmat.hpp(70): note: see previous definition of 'FastMat'
22>d:\setup\ngsolve\src\fem\bdbintegrator.hpp(156): warning C4273: 'ngfem::FastMat': inconsistent dll linkage
22>d:\setup\ngsolve\src\fem\fastmat.hpp(67): note: see previous definition of 'FastMat'
22>LINK : fatal error LNK1104: cannot open file 'Debug\libngsolve.lib'
22>Done building project "ngslib.vcxproj" -- FAILED.
23>------ Build started: Project: ALL_BUILD, Configuration: Debug x64 ------
23>Building Custom Rule D:/setup/ngsolve/src/CMakeLists.txt
24>------ Skipped Build: Project: INSTALL, Configuration: Debug x64 ------
24>Project not selected to build for this solution configuration 
========== Build: 11 succeeded, 4 failed, 0 up-to-date, 9 skipped ==========