Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with compiling SU2 on Windows 10 #1468

Open
GabrieleMorvillo opened this issue Dec 8, 2021 · 2 comments
Open

Issues with compiling SU2 on Windows 10 #1468

GabrieleMorvillo opened this issue Dec 8, 2021 · 2 comments

Comments

@GabrieleMorvillo
Copy link

Good evening, I am currently struggling with compiling SU2 from source code. After I have built the program I try to compile it using ninja.exe, but during the process I get the following error:

[443/454] Linking target SU2_DEF/src/SU2_DEF.exe
FAILED: SU2_DEF/src/SU2_DEF.exe
c++ @SU2_DEF/src/SU2_DEF.exe.rsp
C:/Program Files/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lC:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64\msmpi
C:/Program Files/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lC:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64\msmpi
C:/Program Files/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lC:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64\msmpi
C:/Program Files/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lC:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64\msmpi
collect2.exe: error: ld returned 1 exit status
[448/454] Compiling C++ object SU2_CFD/src/libSU2core.a.p/.._include_numerics_simd_CNumericsSIMD.cpp.obj
ninja: build stopped: subcommand failed.

I do not understand what causes the problem since MPI should have been correctly installed and the msmpi.lib file is present in C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64.
I imagine this is a trivial problem due to my inexperience but I am not able to understand how to fix it.

Any help would be greatly appreciated.

@pcarruscag
Copy link
Member

Hi, can you try the process mentioned in #1471

@GabrieleMorvillo
Copy link
Author

Hi, can you try the process mentioned in #1471

Good morning and thanks for the reply.
Even though I did not try the process you mentioned I did find another way to get around the problem: I went for Windows Subsystem for Linux (WSL) installation and I used it to build SU2 in the same manner as I did on my Ubuntu partition.
Now everything works fine.
I will eventually try to follow the process from #1471 in the future.

@stale stale bot added the stale label Apr 16, 2022
@su2code su2code deleted a comment from stale bot Apr 16, 2022
@stale stale bot removed the stale label Apr 16, 2022
@stale stale bot added the stale label Jul 10, 2022
@su2code su2code deleted a comment from stale bot Jul 10, 2022
@pcarruscag pcarruscag removed the stale label Jul 10, 2022
@stale stale bot added the stale label Nov 2, 2022
@pcarruscag pcarruscag removed the stale label Nov 2, 2022
@su2code su2code deleted a comment from stale bot Nov 2, 2022
@stale stale bot added the stale label Jan 7, 2023
@su2code su2code deleted a comment from stale bot Jan 7, 2023
@stale stale bot removed the stale label Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants