-
Notifications
You must be signed in to change notification settings - Fork 169
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
Build failure on Visual Studio 2019 #2468
Comments
Hi @mns-csharp unfortunately, we do not check if we work with ninja on windows.
Even if one of the above works. Could you help us trouble shoot and outcomment the offending line Best, |
If I comment out line#71, the Generator works fine. Click to open log
the Jason file:
However, the Visualtudio2019 fails to build the project. Click to open log
|
Neither Clang nor MSVS is able to build the project. |
If I set generator to "Visual Studio 16 2019" againe Generator fails: Click to open log
|
Hi @mns-csharp, it seems that you use now Visual Studio Project files (Generator = Visual Studio) instead of Ninja Make Files and cmake seems happy. Now it seems that your Compiler is "MingW" or "Clang", which we don't support. Could you use the Visual Studio Compiler instead? So to summarize it: We only fully support Visual Studio as Project Structure (generated by CMake; In CMake Terminology the "Generator" which has the flag https://docs.microsoft.com/en-us/cpp/build/cmake-presets-vs?view=msvc-160#edit-presets says that you need to specify to build with "CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl" We don't have much experience with Visual Studio Code as an IDE under Windows, as most of our developers use Linux. So I don't know how to correctly configure that in Visual Studio Code. If you figure that out, please let us know! We could add a section in our documentation. Maybe we should start the troubleshooting from the beginning:
|
Looking at #2468 (comment) more closely, it seems like you use MSVC, but it somehow includes MingW header. Could you deinstall MingW? Visual Studio seems to have trouble interpreting entities from MingW and/or it seems to interfere. |
This worked for me:
|
aee8e31 should fix problem, i.e. on the current |
Can you please double-check that you are on the |
Click to openCMakeSettings.json
Output
|
You are still on the |
I switched to Now, the generator works. However, the build fails. Click to open log
|
Can you post the configure log again? Can you make sure that develop is up-to-date? |
Yes, I can confirm.
You mean, Click to open log
|
Yes, thank you :) In the meanwhile (and if you haven't done so already), can you delete the build directory (I guess the default is Note: I renamed the issue as the Ninja issue is fixed. |
I am getting the following error while compiling SeqAn Framework under Windows 10 using Visual Studio 2019.
Click to open log
The following is my CMakeSettings_schema.json file:
<\details>
What can I do to fix this?
The text was updated successfully, but these errors were encountered: