Menu

VeraCrypt Compiling Error "Versionhelpers.h not found"

2020-02-09
2020-02-11
  • Balltasar Maurer

    Hi,

    I am trying to compile the VeraCrypt source code on Windows 10. I followed the instructions in the readme file but run in the error

    "\EncryptionThreadPool.c(15): fatal error C1083: Cannot open include file: 'Versionhelpers.h': No such file or directory"

    Moreover, some warnings appear, similar to the following

    "zip_source_buffer.c(391): warning C4244: 'function' : conversion from 'zip_uint64_t' to 'size_t', possible loss of data"
    "zip_open.c(590): warning C4244: 'function' : conversion from 'zip_uint64_t' to 'size_t', possible loss of data"

    I have the Visual Studio 2010 Version 10.0.40219.1 SP1Rel installed.

    Any hints are highly appreciated!

     
  • Mounir IDRASSI

    Mounir IDRASSI - 2020-02-10

    This build error was caused by a modification submitted by AMD to supports machines that have more than 64 logical processors: unfortunately, there patch was targetting a newer version of Visual Studio and also it was not compatible with kernel mode calls needed for VeraCrypt driver.

    I have pushed a commit that fixes these problems so pull latest changes and it should build again. That's being said, I didn't yet manage to test these modifications and so any feedback is welcomed.

    Concerning the libzip warning, you can ignore them since they don't affect our use case.

     
  • Balltasar Maurer

    Hello Mounir, thank you for the very fast answer! I pulled the latest release and tried to build the source code. Unfortunately, it does not work yet, the attached error message appears while building. If I can provide you with any additional information, let me know.

     
  • Balltasar Maurer

    I am not sure if this is relevant, but when I start building the code the following dialog appears :

    "These projects are out of date:
    Boot -Relesase Win32
    Crypto -Releease Win32
    Would you like to build them?"

    In the VeraCrypt versions I tried to build before, this message didnt appear. It appears also after cleaning the solution.

     
  • Mounir IDRASSI

    Mounir IDRASSI - 2020-02-10

    From what I see, the build succeeded but it seems to you are trying to run the "Crypto" project which obviously is not an executable. Use the menu "Build->Build Solution" for building the solution configuration "All" and the solution platform "Win32".

     
  • Balltasar Maurer

    Thank you, I was actually sure I used those options, but you guessed right. Somehow, after a restart and a redownload, it compiled without problems.

    But now, I run into another error. Like you described in another posts, I installed all certificates (in both the TestCertificate and the the Signing folder) and startet sign_test.bat. Everything signed successfully and the "Self-extracting package was successfully created...". But when I want to start the setup.exe, the error:

    "This installer file does not contain any comporessed files. To create a self-extractin installation package (with embedded comporessed files), run: "VeraCrypt Setup.exe" /p

    But this comand does not work. I also downloaded and installed the "thawte Primary Root CA", that you proposed in another post and deactivated the AV, but the error still appears (upx and gzip are installed and added to the path environment variable).

    Do you have any idea what I missed out?

     

Log in to post a comment.

MongoDB Logo MongoDB