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

Failed to compile su2 in win10 #1570

Closed
zhang-qiang-github opened this issue Mar 22, 2022 · 1 comment
Closed

Failed to compile su2 in win10 #1570

zhang-qiang-github opened this issue Mar 22, 2022 · 1 comment
Labels

Comments

@zhang-qiang-github
Copy link

Bug

PS C:\Users\qiang_zhang\Desktop\TestCases\SU2> ./ninja.exe -C C:\Users\qiang_zhang\Desktop\TestCases\SU2\build install
ninja: Entering directory `C:\Users\qiang_zhang\Desktop\TestCases\SU2\build'
[1/767] Linking target externals/cgns/hdf5/H5detect.exe
FAILED: externals/cgns/hdf5/H5detect.exe
"gcc"  -o externals/cgns/hdf5/H5detect.exe externals/cgns/hdf5/H5detect.exe.p/H5detect.c.obj "-Wl,--allow-shlib-undefined" "-Wl,-O1" "D:/Anaconda/Library/lib/z.lib" "-Wl,--start-group" "-lC:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64\msmpi" "-Wl,--subsystem,console" "-lkernel32" "-luser32" "-lgdi32" "-lwinspool" "-lshell32" "-lole32" "-loleaut32" "-luuid" "-lcomdlg32" "-ladvapi32" "-Wl,--end-group"
D:/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
[10/767] Compiling C object externals/cgns/hdf5/libsu2hdf5.a.p/H5Pint.c.obj
ninja: build stopped: subcommand failed.

To Reproduce

I can sucess configure su2:
image
image

Then, I want to compile it by:

./ninja.exe -C C:\Users\qiang_zhang\Desktop\TestCases\SU2\build install

And the bug is reported:

cannot find -lC:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64\msmpi

However, I have install the msmpisdk.msi and msmpisetup.exe.

image

Desktop (please complete the following information):

  • OS: win10
  • C++ compiler and version: as the recommanded gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)
  • MPI implementation and version: as the recommanded v10.1.2
  • SU2 Version: Project version: 7.3.0 "Blackbird"

Any suggestion is appreciated~~~

@pcarruscag
Copy link
Member

Duplicated from #1468

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants