more on Building Nektar++ on Windows 10
******************* This email originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address. ******************* Dear all, I am trying to build Nektar 5.0.0 on windows 10. I am using vs 2019 and I have installed boost from boost_1_72_0-msvc-14.2-64.exe following advice from Jeremy Cohen https://mailman.ic.ac.uk/mailman/htdig/nektar-users/2020-March/001320.html I build scripts for Visual Studio 16 2019 and x64. cmake seems to correctly locate boost, the c++ compilers and everything else (configuration and generation run smoothly). I then issue msbuild INSTALL.vcxproj /p:Configuration=Release After a lenghty process, I get 7910 warnings and the following 6 errors (I apologize for it being in Spanish): "C:\nektar++-5.0.0\builds\INSTALL.vcxproj" (destino predeterminado) (1) -> "C:\nektar++-5.0.0\builds\ALL_BUILD.vcxproj" (destino predeterminado) (3) -> "C:\nektar++-5.0.0\builds\solvers\CardiacEPSolver\CardiacEPSolver-obj.vcxproj" (destino predeterminado) (4) -> "C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj" (destino predeterminado) (5) -> (ClCompile destino) -> C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(108,46): error C2065: '_TWO_DIGIT_EXPONENT': identificado r no declarado [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(108,27): error C3861: '_set_output_format': no se encontr ó el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(111,5): error C3861: '_set_output_format': no se encontró el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(169,46): error C2065: '_TWO_DIGIT_EXPONENT': identificado r no declarado [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(169,27): error C3861: '_set_output_format': no se encontr ó el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(171,5): error C3861: '_set_output_format': no se encontró el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] If I issue msbuild INSTALL.vcxproj /p:Configuration=Release again, I get just 10 warnings and still the same 6 errors any advice? Thanks a lot \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Carlos Lozano Rodríguez Área de Aerodinámica Teórica y Computacional / CFD Branch Instituto Nacional de Técnica Aeroespacial / National Institute for Aerospace Technology (INTA) Carretera Ajalvir km. 4 28850 Torrejón de Ardoz, Spain tel: +34 91 520 1908 e-mail: lozanorc@inta.es web: http://scholar.google.co.uk/citations?user=mrl2XhQAAAAJ
Dear Carlos, Thanks for highlighting this and my apologies for forgetting to point this out in the advice I sent round the other day. This is a known issue and there is a fix in the current master branch of the Nektar++ repository, however it was resolved after the 5.0.0 release so isn't in the 5.0.0 source. I guess you are using the v5.0.0 source from https://www.nektar.info/downloads/? The _set_output_format function is not found because it is no longer present in recent versions of Visual Studio (https://docs.microsoft.com/en-us/cpp/c-runtime-library/set-output-format?vie...). I've prepared and attached a small patch to add the changes into the v5.0.0 source so you can apply this and it should resolve the problem. Another option is to clone the Nektar++ source from gitlab and build the master branch where this issue shouldn't be present. If you'd like to apply the patch, save the attached file into your nektar++-5.0.0 directory and then run: patch -p1 -i nektarpp5-output_format.patch If for any reason the patch command is not available on your system, I believe it's included with Git Bash (https://gitforwindows.org/) so you can install that and the command should then be available from the terminal. Hope that helps, let us know if you are able to build successfully with this configuration or if you experience any further issues. Thanks, Jeremy On 3 Mar 2020, at 19:48, CARLOS LOZANO RODRIGUEZ <lozanorc@inta.es> wrote:
Dear all, I am trying to build Nektar 5.0.0 on windows 10. I am using vs 2019 and I have installed boost from boost_1_72_0-msvc-14.2-64.exe following advice from Jeremy Cohen https://mailman.ic.ac.uk/mailman/htdig/nektar-users/2020-March/001320.html I build scripts for Visual Studio 16 2019 and x64. cmake seems to correctly locate boost, the c++ compilers and everything else (configuration and generation run smoothly). I then issue msbuild INSTALL.vcxproj /p:Configuration=Release After a lenghty process, I get 7910 warnings and the following 6 errors (I apologize for it being in Spanish):
"C:\nektar++-5.0.0\builds\INSTALL.vcxproj" (destino predeterminado) (1) -> "C:\nektar++-5.0.0\builds\ALL_BUILD.vcxproj" (destino predeterminado) (3) -> "C:\nektar++-5.0.0\builds\solvers\CardiacEPSolver\CardiacEPSolver-obj.vcxproj" (destino predeterminado) (4) -> "C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj" (destino predeterminado) (5) -> (ClCompile destino) -> C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(108,46): error C2065: '_TWO_DIGIT_EXPONENT': identificado r no declarado [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(108,27): error C3861: '_set_output_format': no se encontr ó el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(111,5): error C3861: '_set_output_format': no se encontró el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(169,46): error C2065: '_TWO_DIGIT_EXPONENT': identificado r no declarado [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(169,27): error C3861: '_set_output_format': no se encontr ó el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(171,5): error C3861: '_set_output_format': no se encontró el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj]
If I issue msbuild INSTALL.vcxproj /p:Configuration=Release again, I get just 10 warnings and still the same 6 errors
any advice? Thanks a lot
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Carlos Lozano Rodríguez Área de Aerodinámica Teórica y Computacional / CFD Branch Instituto Nacional de Técnica Aeroespacial / National Institute for Aerospace Technology (INTA) Carretera Ajalvir km. 4 28850 Torrejón de Ardoz, Spain tel: +34 91 520 1908 e-mail: lozanorc@inta.es web: http://scholar.google.co.uk/citations?user=mrl2XhQAAAAJ _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
******************* This email originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address. ******************* Dear Jeremy, thank you very much for your help. I finally cloned the master branch (I couldn't get the patch to work) and the compilation ran smoothly. I also updated the path for the bin and lib directories. Unfortunately, all 483 tests have failed (including tests #338 - 342, which also show "Exception" and "Exit code 0xc0000135"). Regards, \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Carlos Lozano Rodríguez Área de Aerodinámica Teórica y Computacional / CFD Branch Instituto Nacional de Técnica Aeroespacial / National Institute for Aerospace Technology (INTA) Carretera Ajalvir km. 4 28850 Torrejón de Ardoz, Spain tel: +34 91 520 1908 e-mail: lozanorc@inta.es web: http://scholar.google.co.uk/citations?user=mrl2XhQAAAAJ ________________________________ From: Jeremy Cohen [jeremy.cohen@imperial.ac.uk] Sent: Wednesday, March 04, 2020 3:09 PM To: CARLOS LOZANO RODRIGUEZ Cc: nektar-users@imperial.ac.uk Subject: Re: [Nektar-users] more on Building Nektar++ on Windows 10 Dear Carlos, Thanks for highlighting this and my apologies for forgetting to point this out in the advice I sent round the other day. This is a known issue and there is a fix in the current master branch of the Nektar++ repository, however it was resolved after the 5.0.0 release so isn't in the 5.0.0 source. I guess you are using the v5.0.0 source from https://www.nektar.info/downloads/? The _set_output_format function is not found because it is no longer present in recent versions of Visual Studio (https://docs.microsoft.com/en-us/cpp/c-runtime-library/set-output-format?vie...). I've prepared and attached a small patch to add the changes into the v5.0.0 source so you can apply this and it should resolve the problem. Another option is to clone the Nektar++ source from gitlab and build the master branch where this issue shouldn't be present. If you'd like to apply the patch, save the attached file into your nektar++-5.0.0 directory and then run: patch -p1 -i nektarpp5-output_format.patch If for any reason the patch command is not available on your system, I believe it's included with Git Bash (https://gitforwindows.org/) so you can install that and the command should then be available from the terminal. Hope that helps, let us know if you are able to build successfully with this configuration or if you experience any further issues. Thanks, Jeremy On 3 Mar 2020, at 19:48, CARLOS LOZANO RODRIGUEZ <lozanorc@inta.es<mailto:lozanorc@inta.es>> wrote: Dear all, I am trying to build Nektar 5.0.0 on windows 10. I am using vs 2019 and I have installed boost from boost_1_72_0-msvc-14.2-64.exe following advice from Jeremy Cohen https://mailman.ic.ac.uk/mailman/htdig/nektar-users/2020-March/001320.html I build scripts for Visual Studio 16 2019 and x64. cmake seems to correctly locate boost, the c++ compilers and everything else (configuration and generation run smoothly). I then issue msbuild INSTALL.vcxproj /p:Configuration=Release After a lenghty process, I get 7910 warnings and the following 6 errors (I apologize for it being in Spanish): "C:\nektar++-5.0.0\builds\INSTALL.vcxproj" (destino predeterminado) (1) -> "C:\nektar++-5.0.0\builds\ALL_BUILD.vcxproj" (destino predeterminado) (3) -> "C:\nektar++-5.0.0\builds\solvers\CardiacEPSolver\CardiacEPSolver-obj.vcxproj" (destino predeterminado) (4) -> "C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj" (destino predeterminado) (5) -> (ClCompile destino) -> C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(108,46): error C2065: '_TWO_DIGIT_EXPONENT': identificado r no declarado [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(108,27): error C3861: '_set_output_format': no se encontr ó el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(111,5): error C3861: '_set_output_format': no se encontró el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(169,46): error C2065: '_TWO_DIGIT_EXPONENT': identificado r no declarado [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(169,27): error C3861: '_set_output_format': no se encontr ó el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(171,5): error C3861: '_set_output_format': no se encontró el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] If I issue msbuild INSTALL.vcxproj /p:Configuration=Release again, I get just 10 warnings and still the same 6 errors any advice? Thanks a lot \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Carlos Lozano Rodríguez Área de Aerodinámica Teórica y Computacional / CFD Branch Instituto Nacional de Técnica Aeroespacial / National Institute for Aerospace Technology (INTA) Carretera Ajalvir km. 4 28850 Torrejón de Ardoz, Spain tel: +34 91 520 1908 e-mail: lozanorc@inta.es<mailto:lozanorc@inta.es> web: http://scholar.google.co.uk/citations?user=mrl2XhQAAAAJ _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk<mailto:Nektar-users@imperial.ac.uk> https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
Hi Carlos, Glad to hear you were able to get a build that has completed using master. Can you let me know what issue you had with the patch? I tested it here on Windows 10 with VS2019 and nektar++ 5.0.0 source and the patch applied successfully and the build completed. I've just investigated in the test build that I did this morning and the tests seem to be failing there too. When I try to run an installed executable, e.g. I run "IncNavierStokesSolver" in my VS x64 command prompt, it pops up an error telling me that libblas.dll and liblapack.dll are not found. On a previous working copy I have, I note that libblas.dll and liblapack.dll are present in %NEKTAR_HOME%\ThirdParty\ but they are not there on the copy I just built. Can you check if you have the libblas.dll and liblapack.dll libraries %NEKTAR_HOME%\ThirdParty\? (%NEKTAR_HOME% is the directory that the nektar++ source code has been cloned into). I'm assuming you'll find that they're not there. I'm not sure why the required DLLs are not there but you can obtain then by downloading https://www.nektar.info/thirdparty/win64-blas-lapack.zip and unzipping it into %NEKTAR_HOME%\ThirdParty You'll need to set the path to these libraries and your installed libraries/executables - this is explained in the documentation (http://doc.nektar.info/userguide/5.0.0/user-guidese3.html#x7-60001.3) in section 1.3.4.1 of the linked page, point 13, where it shows the directories that you'll need to add to your path. You'll also need to add %NEKTAR_HOME%\ThirdParty and %NEKTAR_HOME%\builds\ThirdParty\dist\lib so you should end up with four entries in your PATH environment that look something like: C:\<full path to Nektar++ location>\nektar\ThirdParty C:\<full path to Nektar++ location>\nektar\builds\ThirdParty\dist\lib C:\<full path to Nektar++ location>\nektar\builds\dist\lib C:\<full path to Nektar++ location>\nektar\builds\dist\bin Once you've made these changes to your PATH configuration, you'll need to close your VS command prompt and open a fresh one for the PATH changes to take effect. You should now find that if you change into the %NEKTAR_HOME%\builds directory and run "ctest -C Release", the tests should start to run successfully. I've just tested with the local version I built this morning and the tests are now running fine so far (the first 300+ tests have completed and all passed). I hope all this makes sense, let me know if you're having further issues getting things running. Regards, Jeremy On 4 Mar 2020, at 19:19, CARLOS LOZANO RODRIGUEZ <lozanorc@inta.es> wrote:
Dear Jeremy, thank you very much for your help. I finally cloned the master branch (I couldn't get the patch to work) and the compilation ran smoothly. I also updated the path for the bin and lib directories. Unfortunately, all 483 tests have failed (including tests #338 - 342, which also show "Exception" and "Exit code 0xc0000135"). Regards,
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Carlos Lozano Rodríguez Área de Aerodinámica Teórica y Computacional / CFD Branch Instituto Nacional de Técnica Aeroespacial / National Institute for Aerospace Technology (INTA) Carretera Ajalvir km. 4 28850 Torrejón de Ardoz, Spain tel: +34 91 520 1908 e-mail: lozanorc@inta.es web: http://scholar.google.co.uk/citations?user=mrl2XhQAAAAJ From: Jeremy Cohen [jeremy.cohen@imperial.ac.uk] Sent: Wednesday, March 04, 2020 3:09 PM To: CARLOS LOZANO RODRIGUEZ Cc: nektar-users@imperial.ac.uk Subject: Re: [Nektar-users] more on Building Nektar++ on Windows 10
Dear Carlos,
Thanks for highlighting this and my apologies for forgetting to point this out in the advice I sent round the other day.
This is a known issue and there is a fix in the current master branch of the Nektar++ repository, however it was resolved after the 5.0.0 release so isn't in the 5.0.0 source. I guess you are using the v5.0.0 source from https://www.nektar.info/downloads/?
The _set_output_format function is not found because it is no longer present in recent versions of Visual Studio (https://docs.microsoft.com/en-us/cpp/c-runtime-library/set-output-format?vie...).
I've prepared and attached a small patch to add the changes into the v5.0.0 source so you can apply this and it should resolve the problem. Another option is to clone the Nektar++ source from gitlab and build the master branch where this issue shouldn't be present.
If you'd like to apply the patch, save the attached file into your nektar++-5.0.0 directory and then run:
patch -p1 -i nektarpp5-output_format.patch
If for any reason the patch command is not available on your system, I believe it's included with Git Bash (https://gitforwindows.org/) so you can install that and the command should then be available from the terminal.
Hope that helps, let us know if you are able to build successfully with this configuration or if you experience any further issues.
Thanks, Jeremy
On 3 Mar 2020, at 19:48, CARLOS LOZANO RODRIGUEZ <lozanorc@inta.es> wrote:
Dear all, I am trying to build Nektar 5.0.0 on windows 10. I am using vs 2019 and I have installed boost from boost_1_72_0-msvc-14.2-64.exe following advice from Jeremy Cohen https://mailman.ic.ac.uk/mailman/htdig/nektar-users/2020-March/001320.html I build scripts for Visual Studio 16 2019 and x64. cmake seems to correctly locate boost, the c++ compilers and everything else (configuration and generation run smoothly). I then issue msbuild INSTALL.vcxproj /p:Configuration=Release After a lenghty process, I get 7910 warnings and the following 6 errors (I apologize for it being in Spanish):
"C:\nektar++-5.0.0\builds\INSTALL.vcxproj" (destino predeterminado) (1) -> "C:\nektar++-5.0.0\builds\ALL_BUILD.vcxproj" (destino predeterminado) (3) -> "C:\nektar++-5.0.0\builds\solvers\CardiacEPSolver\CardiacEPSolver-obj.vcxproj" (destino predeterminado) (4) -> "C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj" (destino predeterminado) (5) -> (ClCompile destino) -> C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(108,46): error C2065: '_TWO_DIGIT_EXPONENT': identificado r no declarado [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(108,27): error C3861: '_set_output_format': no se encontr ó el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(111,5): error C3861: '_set_output_format': no se encontró el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(169,46): error C2065: '_TWO_DIGIT_EXPONENT': identificado r no declarado [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(169,27): error C3861: '_set_output_format': no se encontr ó el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(171,5): error C3861: '_set_output_format': no se encontró el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj]
If I issue msbuild INSTALL.vcxproj /p:Configuration=Release again, I get just 10 warnings and still the same 6 errors
any advice? Thanks a lot
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Carlos Lozano Rodríguez Área de Aerodinámica Teórica y Computacional / CFD Branch Instituto Nacional de Técnica Aeroespacial / National Institute for Aerospace Technology (INTA) Carretera Ajalvir km. 4 28850 Torrejón de Ardoz, Spain tel: +34 91 520 1908 e-mail: lozanorc@inta.es web: http://scholar.google.co.uk/citations?user=mrl2XhQAAAAJ _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
******************* This email originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address. ******************* Hi Jeremy, thanks again for your assistance. I've checked and the dll's were there, but I had not set the path to %NEKTAR_HOME%\ThirdParty\ . I've done this and now all the tests run smoothly. As for the patch, I downloaded git but the system still did not recognize the command patch, so I tried with git apply and it complained that it was not possible to apply the patch (I do not remember the details, and I did not pursue it further, I just tried by cloning the master branch). Best regards and thanks again! \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Carlos Lozano Rodríguez Área de Aerodinámica Teórica y Computacional / CFD Branch Instituto Nacional de Técnica Aeroespacial / National Institute for Aerospace Technology (INTA) Carretera Ajalvir km. 4 28850 Torrejón de Ardoz, Spain tel: +34 91 520 1908 e-mail: lozanorc@inta.es web: http://scholar.google.co.uk/citations?user=mrl2XhQAAAAJ ________________________________ From: Jeremy Cohen [jeremy.cohen@imperial.ac.uk] Sent: Wednesday, March 04, 2020 9:00 PM To: CARLOS LOZANO RODRIGUEZ Cc: nektar-users@imperial.ac.uk Subject: Re: [Nektar-users] more on Building Nektar++ on Windows 10 Hi Carlos, Glad to hear you were able to get a build that has completed using master. Can you let me know what issue you had with the patch? I tested it here on Windows 10 with VS2019 and nektar++ 5.0.0 source and the patch applied successfully and the build completed. I've just investigated in the test build that I did this morning and the tests seem to be failing there too. When I try to run an installed executable, e.g. I run "IncNavierStokesSolver" in my VS x64 command prompt, it pops up an error telling me that libblas.dll and liblapack.dll are not found. On a previous working copy I have, I note that libblas.dll and liblapack.dll are present in %NEKTAR_HOME%\ThirdParty\ but they are not there on the copy I just built. Can you check if you have the libblas.dll and liblapack.dll libraries %NEKTAR_HOME%\ThirdParty\? (%NEKTAR_HOME% is the directory that the nektar++ source code has been cloned into). I'm assuming you'll find that they're not there. I'm not sure why the required DLLs are not there but you can obtain then by downloading https://www.nektar.info/thirdparty/win64-blas-lapack.zip and unzipping it into %NEKTAR_HOME%\ThirdParty You'll need to set the path to these libraries and your installed libraries/executables - this is explained in the documentation (http://doc.nektar.info/userguide/5.0.0/user-guidese3.html#x7-60001.3) in section 1.3.4.1 of the linked page, point 13, where it shows the directories that you'll need to add to your path. You'll also need to add %NEKTAR_HOME%\ThirdParty and %NEKTAR_HOME%\builds\ThirdParty\dist\lib so you should end up with four entries in your PATH environment that look something like: C:\<full path to Nektar++ location>\nektar\ThirdParty C:\<full path to Nektar++ location>\nektar\builds\ThirdParty\dist\lib C:\<full path to Nektar++ location>\nektar\builds\dist\lib C:\<full path to Nektar++ location>\nektar\builds\dist\bin Once you've made these changes to your PATH configuration, you'll need to close your VS command prompt and open a fresh one for the PATH changes to take effect. You should now find that if you change into the %NEKTAR_HOME%\builds directory and run "ctest -C Release", the tests should start to run successfully. I've just tested with the local version I built this morning and the tests are now running fine so far (the first 300+ tests have completed and all passed). I hope all this makes sense, let me know if you're having further issues getting things running. Regards, Jeremy On 4 Mar 2020, at 19:19, CARLOS LOZANO RODRIGUEZ <lozanorc@inta.es<mailto:lozanorc@inta.es>> wrote: Dear Jeremy, thank you very much for your help. I finally cloned the master branch (I couldn't get the patch to work) and the compilation ran smoothly. I also updated the path for the bin and lib directories. Unfortunately, all 483 tests have failed (including tests #338 - 342, which also show "Exception" and "Exit code 0xc0000135"). Regards, \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Carlos Lozano Rodríguez Área de Aerodinámica Teórica y Computacional / CFD Branch Instituto Nacional de Técnica Aeroespacial / National Institute for Aerospace Technology (INTA) Carretera Ajalvir km. 4 28850 Torrejón de Ardoz, Spain tel: +34 91 520 1908 e-mail: lozanorc@inta.es<mailto:lozanorc@inta.es> web: http://scholar.google.co.uk/citations?user=mrl2XhQAAAAJ ________________________________ From: Jeremy Cohen [jeremy.cohen@imperial.ac.uk<mailto:jeremy.cohen@imperial.ac.uk>] Sent: Wednesday, March 04, 2020 3:09 PM To: CARLOS LOZANO RODRIGUEZ Cc: nektar-users@imperial.ac.uk<mailto:nektar-users@imperial.ac.uk> Subject: Re: [Nektar-users] more on Building Nektar++ on Windows 10 Dear Carlos, Thanks for highlighting this and my apologies for forgetting to point this out in the advice I sent round the other day. This is a known issue and there is a fix in the current master branch of the Nektar++ repository, however it was resolved after the 5.0.0 release so isn't in the 5.0.0 source. I guess you are using the v5.0.0 source from https://www.nektar.info/downloads/? The _set_output_format function is not found because it is no longer present in recent versions of Visual Studio (https://docs.microsoft.com/en-us/cpp/c-runtime-library/set-output-format?vie...). I've prepared and attached a small patch to add the changes into the v5.0.0 source so you can apply this and it should resolve the problem. Another option is to clone the Nektar++ source from gitlab and build the master branch where this issue shouldn't be present. If you'd like to apply the patch, save the attached file into your nektar++-5.0.0 directory and then run: patch -p1 -i nektarpp5-output_format.patch If for any reason the patch command is not available on your system, I believe it's included with Git Bash (https://gitforwindows.org/) so you can install that and the command should then be available from the terminal. Hope that helps, let us know if you are able to build successfully with this configuration or if you experience any further issues. Thanks, Jeremy On 3 Mar 2020, at 19:48, CARLOS LOZANO RODRIGUEZ <lozanorc@inta.es<mailto:lozanorc@inta.es>> wrote: Dear all, I am trying to build Nektar 5.0.0 on windows 10. I am using vs 2019 and I have installed boost from boost_1_72_0-msvc-14.2-64.exe following advice from Jeremy Cohen https://mailman.ic.ac.uk/mailman/htdig/nektar-users/2020-March/001320.html I build scripts for Visual Studio 16 2019 and x64. cmake seems to correctly locate boost, the c++ compilers and everything else (configuration and generation run smoothly). I then issue msbuild INSTALL.vcxproj /p:Configuration=Release After a lenghty process, I get 7910 warnings and the following 6 errors (I apologize for it being in Spanish): "C:\nektar++-5.0.0\builds\INSTALL.vcxproj" (destino predeterminado) (1) -> "C:\nektar++-5.0.0\builds\ALL_BUILD.vcxproj" (destino predeterminado) (3) -> "C:\nektar++-5.0.0\builds\solvers\CardiacEPSolver\CardiacEPSolver-obj.vcxproj" (destino predeterminado) (4) -> "C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj" (destino predeterminado) (5) -> (ClCompile destino) -> C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(108,46): error C2065: '_TWO_DIGIT_EXPONENT': identificado r no declarado [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(108,27): error C3861: '_set_output_format': no se encontr ó el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(111,5): error C3861: '_set_output_format': no se encontró el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(169,46): error C2065: '_TWO_DIGIT_EXPONENT': identificado r no declarado [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(169,27): error C3861: '_set_output_format': no se encontr ó el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(171,5): error C3861: '_set_output_format': no se encontró el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] If I issue msbuild INSTALL.vcxproj /p:Configuration=Release again, I get just 10 warnings and still the same 6 errors any advice? Thanks a lot \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Carlos Lozano Rodríguez Área de Aerodinámica Teórica y Computacional / CFD Branch Instituto Nacional de Técnica Aeroespacial / National Institute for Aerospace Technology (INTA) Carretera Ajalvir km. 4 28850 Torrejón de Ardoz, Spain tel: +34 91 520 1908 e-mail: lozanorc@inta.es<mailto:lozanorc@inta.es> web: http://scholar.google.co.uk/citations?user=mrl2XhQAAAAJ _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk<mailto:Nektar-users@imperial.ac.uk> https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
participants (2)
-
CARLOS LOZANO RODRIGUEZ
-
Jeremy Cohen