SU2 compile error
2 Attachment(s)
Hi,
When I compiled on windows according to the method of the official website, the following error appeared, may I ask where the problem is? All suggestions are helpful. Thanks a lot. |
Hi
Did you manage to sort out your error? I am compiling version 8.0.0 on Windows and I'm having some issues as well which are taking me time to sort out. I didn't manage to reproduce your error, so I'll summarise my case: 1. Calling Meson with --Dwith-mpi=enabled -> Meson doesn't find MPI 2. Calling Meson without mpi option -> Meson finishes, but compilation of CGNS fails: Code:
[23/754] Compiling C object externals/cgns/hdf5/H5detect.exe.p/H5detect.c.obj 4. I'm using option -Denable-tecio=false, I get a similar issue as yours but in CTecplotBinaryFileWriter.hpp: Code:
L:/prog/su2/su2_git/SU2/SU2_CFD/include/output/filewriter/CTecplotBinaryFileWriter.hpp:119:5: error: Code:
#include <cstdint> 5. Finally, I didn't get to compile the unit tests with -Denable-tests=true. I get a rather bizarre error message in option_structure.hpp, it looks like the compiler is getting lost somehow: Code:
[156/168] Compiling C++ object UnitTests/test_driver.exe.p/test_driver.cpp.obj |
1 Attachment(s)
Unfortunately, my compilation has not progressed, and I have not met your problem, so I am sorry that I cannot provide help.
I'm trying to compile the code with linux and I'm having a little trouble so far, so if you have any experience, I'd appreciate it. |
all these errors look like they result from meson/ninja not being able to find the libraries for mpi, tecio and cgns.
First try to compile without these libraries to see if this is indeed the case: Code:
-Dwith-mpi=disabled -Denable-tecio=false -Denable-cgns=false Code:
-Dwith-mpi=enabled -Dcustom-mpi=true -Dextra-deps=mpich |
Thank you very much. Once I disabled all three libraries, I was able to compile successfully.
But the libraries are downloaded from the official website, do I need additional operations? What does standard position mean? Could you explain it in more detail if necessary? Thank you very much for your help. |
If you are working in Linux (which is the recommended professional environment) then check that you have installed the actual development package.
For instance for mpich, I have installed the packaged mpich-dev. For cgns and tecio, they are downloaded by SU2 and put in the externals/ folder. Please check that they are there. Maybe there are globally installed packages that conflict with the version that SU2 actually needs. |
1 Attachment(s)
Thank you for your suggestion.
I successfully compiled in the Windows environment, after disabling the three libraries to achieve, in the Linux environment when trying to appear the problem as shown in the figure, do you know what is the reason? At your suggestion, I checked tecio and csgn, both in the externals folder downloaded. Since the file exists, where else could the problem arise? Thanks again. |
Does it compile in linux when you switch the libraries off?
|
Quote:
|
1 Attachment(s)
Quote:
|
Hi Liming
Those problems are sometimes hard to trace back. I managed to compile on Linux with no issues (other than some MPI settings), but I did not figure out the problem on Windows without tecio and I don't see why it should compile in first place. The fact that it does compile on Linux with the same settings suggest some dependency issues that would probably take me some time to go over. May I suggest you start over your Linux installation (I'm assuming you're using WSL2) with an English only installation. Get gcc, g++, cmake, ninja-build, swig and pkg-config from your package manager and try to compile SU2 without MPI . Sometimes Ninja gets lost with path dependencies and with WSL2 it is quite easy to start over. |
All times are GMT -4. The time now is 18:10. |