Build Criterion on Windows with visual 2022 #449
Replies: 11 comments 1 reply
-
Note: I have no problem compiling libgit2 v1.4.3 independently with CMake and VS2022. |
Beta Was this translation helpful? Give feedback.
-
In the "sub-projects" sub-folder I changed the libgit2 version to the latest 1.4.3 version. The error disappeared.
I'm going to look for the reason why. ---- EDIT ---- The error comes from this line:
|
Beta Was this translation helpful? Give feedback.
-
unistd.h It’s for POSIX system: Cygwin and Mingw, but i use Visual… |
Beta Was this translation helpful? Give feedback.
-
In the "build/src/config.h" file: The compilation can progress. The new errors are in the samples:
|
Beta Was this translation helpful? Give feedback.
-
I have try something different:
Meson Meson Meson … |
Beta Was this translation helpful? Give feedback.
-
I'm not entirely certain how your environment is configured, however I can say that we haven't tested a Criterion build under a Cygwin environment. There's a couple of detection issues it seems. At the same time, For what it's worth, our CI environment uses mingw64 to build Criterion; see if the setup at https://github.com/Snaipe/Criterion/blob/bleeding/.cirrus.yml#L79-L93 helps. |
Beta Was this translation helpful? Give feedback.
-
I call meson in a Git bash terminal. It’s a mingw64 environnement. I can’t call meson from the Windows cmd terminal or a PowerShell terminal. They are ACSII terminal:
|
Beta Was this translation helpful? Give feedback.
-
I want to use Criterion in Visual C++ 2022 solution with the intel compiler. |
Beta Was this translation helpful? Give feedback.
-
I tried, but Meson does not recognise icx.
Here the full log:
|
Beta Was this translation helpful? Give feedback.
-
I think I can build Criterion with msvc and build my project with the intel compiler. If I call meson as without specifying the compiler this is what it looks like:
getcwd remains at YES |
Beta Was this translation helpful? Give feedback.
-
With or without the patch I get this error:
It does not recognise the Test function declaration Note that it is the same for : |
Beta Was this translation helpful? Give feedback.
-
How do i install Criterion dependencies?
Meson can’t build Criterion on Windows.
The depedencies:
Here the output restult of meson build command.
After that I ran this command and here is the error:
Beta Was this translation helpful? Give feedback.
All reactions