Problems with the building process under Windows 10
The following problems are observed during building BornAgain under Windows 10 (x64), MSVC 2019, via the command line (powershell):
-
There is a long-standing issue in the configuration phase: CMake complains that Boost::regex component is missing. Possibly the CMake modules for finding Boost need to be updated/corrected. Resolved by building a new Boost (v1.77.0) under Windows.
-
During the build phase of BornAgain on Win10, error messages (like Error running test executable
) imply that some tests are being executed during the build phase. A possible reason is thatgtest_discover_tests
(used in unit and functional tests) discovers tests by asking the compiled test executable to enumerate its tests. Solution(?):DISCOVERY_MODE
->PRE_TEST
; see < https://cmake.org/cmake/help/latest/module/GoogleTest.html >.Resolved in (b544edd5).
-
At the end of the GitLab-Runner build log, two warnings appear: WARNING: build/bin/Release/*.dll: no matching files WARNING: build/bin/Release/*.exe: no matching files
Apparently, the path to artefacts is not set correctly.
Resolved in (0c4a2ae2).
-
In bornagain/cmake/find/FindCerf.cmake
, L19,PkgConfig
is required. Note thatPkgConfig
is the only requirement from MSYS2 suite. Could that be removed?Resolved in MR !411 (merged).
-
Are all the additional compression libraries, bz2, zlib, lzma and zstd, required for Boost? Resolved by building a new Boost (v1.77.0) under Windows. See MR !391 (merged).
-
The boost library available from WinLibs folder does not function properly (some components are missing) and need to be updated. Futhermore, Eigen can be obtained from the official website. Resolved by building a new Boost (v1.77.0) under Windows.
-
A Ninja build can slightly improve build performance, in comparison to MSBuild (more detailed statistics is still needed).
-
Note that the build induced by GitLab-Runner was completely successful (all activated tests passed).
-
Large deviations in two persistence tests are dealt with in #129 (closed).
For details, see the attached file: bornagain_build_issues_win10_24.09.2021.md