DFIR-ORC / dfir-orc

Forensics artefact collection tool for systems running Microsoft Windows
https://dfir-orc.github.io
GNU Lesser General Public License v2.1
388 stars 42 forks source link

error compilation #38

Closed Fp210315 closed 3 years ago

Fp210315 commented 3 years ago

Hello,

I use a vm with .vsconfig. But i alaways the same error :

Downloading https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz... Failed. Status: 22;"HTTP response code said error" CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:182 (message):

  Failed to download file.

....

Error: Building package bzip2:x64-windows-static failed with: BUILD_FAILED Please ensure you're using the latest portfiles with .\vcpkg update, then submit an issue at https://github.com/Microsoft/vcpkg/issues including: Package: bzip2:x64-windows-static Vcpkg version: 2020.06.15-nohash

fabienfl-orc commented 3 years ago

Hello, The chosen mirror for mingw seems offline to have a different directory layout. Could you try another time from a new directory please hoping it will select another mirror ? This fails on a dependency requirement, it seems to select a mirror from China...

Fp210315 commented 3 years ago

Hello,

Thanks Now i have a new error: -- Found Boost: C:/anssi/dfir-orc/external/vcpkg/installed/x64-windows-static/include (found version "1.73.0") CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message): Could NOT find VisualStudio (missing: CPPUNITTEST_INCLUDE_DIR) Call Stack (most recent call first): C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE) cmake/FindVisualStudio.cmake:81 (find_package_handle_standard_args) external/vcpkg/scripts/buildsystems/vcpkg.cmake:555 (_find_package) src/OrcLib/CMakeLists.txt:16 (find_package)


I use the vm dev with the .vsconfig. I execute in the dev command Prompt.

Thank for your help

fabienfl-orc commented 3 years ago

Hello, the "vm dev" you are mentioning is the one provided by Microsoft ? Can you give me the address ?

Fp210315 commented 3 years ago

Hello,

Here the link to microsoft

https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/

De : fabienfl @.> Envoyé : jeudi 29 avril 2021 14:13 À : DFIR-ORC/dfir-orc @.> Cc : POREE Florent @.>; Author @.> Objet : Re: [DFIR-ORC/dfir-orc] error compilation (#38)

Hello, the "vm dev" you are mentioning is the one provided by Microsoft ? Can you give me the address ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub [github.com]https://urldefense.com/v3/__https:/github.com/DFIR-ORC/dfir-orc/issues/38*issuecomment-829187625__;Iw!!MXqZGqxU!Tjh51QCYleZVhct2uMQ6HIl83vnfLaFF8MfFRBOjG35YY5ZYO9a4lw9djuztWYvxmLOM$, or unsubscribe [github.com]https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ATHWSYD4AFZQD7LYQO5C47TTLFEMVANCNFSM4ZGYOFDA__;!!MXqZGqxU!Tjh51QCYleZVhct2uMQ6HIl83vnfLaFF8MfFRBOjG35YY5ZYO9a4lw9djuztWSw_cZYx$.

fabienfl-orc commented 3 years ago

This error could relate to https://github.com/DFIR-ORC/dfir-orc/issues/27

fabienfl-orc commented 3 years ago

If #27 fixes your previous issue then be sure to build from a clean directory. As VS installation would be "partial", your old build artefacts from vcpkg would be incompatible with the newly built Orc binary.