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

Building release on Windows #9476

Merged
merged 1 commit into from
Sep 17, 2020
Merged

Building release on Windows #9476

merged 1 commit into from
Sep 17, 2020

Conversation

christianparpart
Copy link
Member

@christianparpart christianparpart commented Jul 22, 2020

Getting Windows tests running on CI

  • Moves C++ version setting from toolchain into command line (such as cmake -DCMAKE_CXX_VERSION=20 (defaulting to 17); as this did conflict with AppVeyor CI always passing its own toolchain file (to vcpkg)
  • Uses VS 2019 instead of VS 2017

Notes

This PR is based on #9694 which is based on top of #9693

@christianparpart christianparpart force-pushed the windows-tests branch 30 times, most recently from fd19912 to a2fa30d Compare July 27, 2020 13:26
@chriseth chriseth force-pushed the windows-tests branch 9 times, most recently from bd4d733 to 2f1fafa Compare September 7, 2020 14:53
@chriseth
Copy link
Contributor

chriseth commented Sep 7, 2020

Now the build and test jobs work, but is still using the MSVC140_1.dll

@chriseth
Copy link
Contributor

chriseth commented Sep 8, 2020

My current guess is that this is due to installing boost compiled with VS 2017.

@chriseth chriseth force-pushed the windows-tests branch 2 times, most recently from 8a4f563 to afe98cc Compare September 16, 2020 16:01
@chriseth chriseth changed the title Building tests on Windows Building release on Windows Sep 16, 2020
.. _Visual Studio 2017: https://www.visualstudio.com/vs/
.. _Visual Studio 2017 Build Tools: https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017
.. _Visual Studio 2019: https://www.visualstudio.com/vs/
.. _Visual Studio 2019 Build Tools: https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2019

Dependencies Helper Script
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should switch the Or, on windows: part of this to scripts/install_deps.ps1 now? And maybe mention that that doesn't attempt to install dependencies globally, but just puts them in deps/... and that it will not only build boost, but also fetch a cmake version that can be used to deps/cmake...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If so we can remove scripts/install_deps.bat...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you do that, please? :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just quickly wrote up something at both places, but in a hurry, so better to have another look later I guess.

@@ -362,7 +362,7 @@ And for Windows:

mkdir build
cd build
cmake -G "Visual Studio 15 2017 Win64" ..
cmake -G "Visual Studio 16 2019 Win64" ..
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should also mention here that, if this is supposed to use the boost version built by install_deps.ps1, it also needs -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded and -DBoost_DIR="..\deps\boost\lib\cmake\Boost-<BoostVersion>?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Which is the complications I warned about in #9811 (comment) ;-))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you do that change, please?

@chriseth
Copy link
Contributor

Looks like the release build is not a release build.

@chriseth chriseth force-pushed the windows-tests branch 2 times, most recently from 56a7b47 to d6a0382 Compare September 17, 2020 10:42
@chriseth
Copy link
Contributor

Finally working!

@ekpyron ekpyron merged commit ed80585 into develop Sep 17, 2020
@ekpyron ekpyron deleted the windows-tests branch September 17, 2020 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants