-
Notifications
You must be signed in to change notification settings - Fork 42
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
Multiples issues on compilation with VS2019 and VS2022 #64
Comments
Hello, thank you for your detailed issue. 1. Missing libwinpthreadIt seems to be a recurring issue due to some vcpkg packages, see microsoft/vcpkg#24028 Some dependency pull libpthread but DFIR-Orc should not link with it. If I remember correctly it is boost-multimap which is greedy. I will try to remove that dep in the future. 2. Branch master for vcpkgIt is not possible to build from master branch (or any 'official' commit) because DFIR-Orc does not use vcpkg's new overlay feature. DFIR-Orc forks vcpkg to add custom fixes (see branch 'dfir-orc/2021.12.01'). One can eventually try rebase on vcpkg's master it but it is not always that easy.
3. Removing the libwinpthread depI am not surprised this seems to work, see 1. Good news. 5. Build issueCompiler error is trigerred on UnitTestHelper.cpp which is not required. May be switching vcpkg's branch created somme issue ? I will check myself but I guess it should be working as Azure pipelines run those tests. I the meantime you can try to build DFIR-Orc without tests. Either use a new directory or delete CMakeCache.txt first.
|
Removed the dependency to libwinpthread with
|
Hello, Thanks a lot for your anwsers. Removing the libwinpthread dependency (in cli11, fmt, and spdlog) and sticking to the fork of vcpkg did it (no need for ORC_BUILD_TEST=OFF). All the cmake operations went smoothly. Thanks again! |
Hi,
I tried compiling dfir-orc by following the Readme, but still got issues.
Here is what i did, from a Windows 10 (
Microsoft Windows [version 10.0.19044.1645]
):From here, several issues:
If i switch to the branch "master" of vcpkg and regenerate it (
bootstrap-vcpkg.bat
), the packages are found and installed. But then, the exact same issue as DFIR_Orc Cannot compile using VS2022 #61 appears.Trying my luck, i removed this dependency in the project and this step finally succeeds (reminder:
cmake -G "Visual Studio 16 2019" -A Win32 ..
):cmake --build . --config MinSizeRel -- -maxcpucount
. But here, i get a TON of build errors... Example for OrcLib:The issues are the same for the x64 version.
Any help would be appreciated 🙏
Cheers
The text was updated successfully, but these errors were encountered: