Menu

Pi Versions

Kev
2023-10-02
2023-11-19
  • Kev

    Kev - 2023-10-02

    Sorry if this is obvious but for version 1.26.7 will there be an armhf version or do I use another version on the Rasberry Pi now?
    I can see in the downloads the Pi is listed, but the file name is "Ubuntu" not "Debian"?

     

    Last edit: Kev 2023-10-02
  • Mounir IDRASSI

    Mounir IDRASSI - 2023-10-02

    I'm indeed rolling out other Linux ARM versions for VeraCrypt 1.26.7. The process is a bit time-consuming because I'm currently utilizing a single Raspberry Pi machine to compile all the versions. Switching between different distros and executing the builds takes significant time.
    And to clarify, the "Ubuntu" labeled file can be used on the Raspberry Pi like it was the case for 1.25.9 release; however, specific "Debian" versions will be available soon. Thank you for your patience.

     
  • Kev

    Kev - 2023-10-02

    No problem and thanks for the reply.
    Thanks for the continuing to update Veracrypt.

     
  • Mounir IDRASSI

    Mounir IDRASSI - 2023-10-03

    @bkev: the armhf packages for VeraCrypt version 1.26.7 are now available. You can access them on Sourceforge (https://sourceforge.net/projects/veracrypt/files/VeraCrypt%201.26.7/Linux/) or directly from the official downloads page (https://veracrypt.fr/en/Downloads.html).

     

    Last edit: Mounir IDRASSI 2023-10-03
  • Kev

    Kev - 2023-10-05

    That's fantastic thanks!
    One other question. Is there a guide on how to compile Veracrypt on a Pi? I'm guessing you get the source code but I'm a bit of a noob and wondered if it's a process that can be followed?

     
  • Mounir IDRASSI

    Mounir IDRASSI - 2023-10-05

    Building VeraCrypt on the Raspberry Pi should be similar to other Linux systems, and if you're using Ubuntu/Debian for Pi, follow the steps below:

    1. Install the Required Dependencies: Ensure you have superuser privileges (either login as root or use sudo) and run the following:

    sudo apt update
    sudo apt install wget build-essential libfuse-dev libpcsclite-dev libwxgtk3.0-gtk3-dev nasm yasm pkg-config git bash-completion libayatana-appindicator3-dev cmake cmake-extras
    

    2. Download the wxWidgets Source Code:

    wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.2.1/wxWidgets-3.2.2.1.tar.bz2
    

    3. Download the VeraCrypt Source Code:

    wget https://launchpad.net/veracrypt/trunk/1.26.7/+download/VeraCrypt_1.26.7_Source.tar.bz2
    

    4. Extract the wxWidgets Source Code:

    tar xvf wxWidgets-3.2.2.1.tar.bz2
    

    5. Create a Directory for the VeraCrypt Build and Extract the Source Code:

    mkdir VeraCrypt
    tar xvf VeraCrypt_1.26.7_Source.tar.bz2 -C VeraCrypt
    

    6. Start the Build Process:

    ./VeraCrypt/src/Build/build_cmake_deb.sh INDICATOR
    

    Upon successful completion:
    - The GUI package will be located at VeraCrypt_Packaging/GUI/Packaging.
    - The console package will be found in VeraCrypt_Packaging/Console/Packaging.

    Should you run into any issues or require further clarification on any of these steps, please don't hesitate to reach out.

     
  • Kev

    Kev - 2023-10-06

    Thanks for the detailed instructions.
    I can't get it to compile on a Pi, I get
    ../Common/PCSCException.cpp: In member function ‘virtual void VeraCrypt::PCSCException::Deserialize(std::shared_ptr<veracrypt::stream>)’:
    ../Common/PCSCException.cpp:143:40: error: no matching function for call to ‘VeraCrypt::Serializer::Deserialize(const char [10], LONG&)’
    143 | sr.Deserialize("ErrorCode", ErrorCode);</veracrypt::stream>

    And then more errors and ends with
    nc:37: ../Common/PCSCException.o] Error 1
    make: *** [Makefile:520: all] Error 2

    But on Ubuntu it does compile. So assume it's something wrong with my Pi. No problem, I'll try again when I've rebuilt my Pi and see if it works then.

    (Maybe because the Pi is running Pi OS?)

     

    Last edit: Kev 2023-10-06
  • Mounir IDRASSI

    Mounir IDRASSI - 2023-10-11

    @bkev: I have pushed a change recently to master that should solve this issue: https://sourceforge.net/p/veracrypt/code/ci/33fcbf6adb5dfc41fc80b563614c29e5e009e9c6/

    Here is the patch for PCSCException.cpp:

    --- a/src/Common/PCSCException.cpp
    +++ b/src/Common/PCSCException.cpp
    @@ -140,14 +140,17 @@
        {
            Exception::Deserialize(stream);
            Serializer sr(stream);
    -       sr.Deserialize("ErrorCode", ErrorCode);
    +       int64 v;
    +       sr.Deserialize("ErrorCode", v);
    +       ErrorCode = (LONG_PCSC)v;
        }
    
        void PCSCException::Serialize(shared_ptr <Stream> stream) const
        {
            Exception::Serialize(stream);
            Serializer sr(stream);
    -       sr.Serialize("ErrorCode", ErrorCode);
    +       int64 v = (int64)ErrorCode;
    +       sr.Serialize("ErrorCode", v);
        }
    

    You can apply it manually but editing PCSCException.cpp and replacing the lines starting by '-' in the patch by the ones starting by '+'.
    You can also just grab lastest VeraCrypt source code from Git instead of downloading 1.26.7 release source code package:
    git clone https://github.com/veracrypt/VeraCrypt VeraCrypt

     
  • Kev

    Kev - 2023-10-13

    That's great thanks.
    I used the git method and it has compiled on the Pi. I haven't tested the install yet, but it has created the .deb files
    Thanks for your help.

     
  • Kev

    Kev - 2023-11-15

    Hi.
    Sorry it's me again.
    I'm now trying to build the files from source on a Pi with Bookworm but I encounter an error when trying to install the dependencies
    Couldn't find any package by glob 'libwxgtk3.0-gtk3-dev'

    Once I try to build I get a few errors and then a fatal error.
    I get these errors near the start
    make[1]: wx-config: No such file or directory
    Package ayatana-appindicator-0.1 was not found in the pkg-config search path.
    Package 'ayatana-appindicator-0.1', required by 'virtual:world', not found

    And then when it fails I get this
    make[1]: wx-config: No such file or directory

    Precompiling SystemPrecompiled.h
    SystemPrecompiled.h:13:10: fatal error: wx/wx.h: No such file or directory
    13 | #include <wx wx.h="">
    | ^~~~~~~~~
    compilation terminated.</wx>

    make[1]: *** [/path/src/Build/Include/Makefile.inc:66: SystemPrecompiled.h.gch] Error 1
    make: *** [Makefile:529: all] Error 2

    Is there anything I can do or won't I be able to compile on Bookworm due to the missing package? (Assuming the errors are related)?

     
  • Kev

    Kev - 2023-11-16

    Looks like the Ubuntu 22 version also requires this so I get stuck trying to install the precompiled .deb file too

    ./veracrypt-1.26.7-Ubuntu-22.04-arm64.deb
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Note, selecting 'veracrypt' instead of './veracrypt-1.26.7-Ubuntu-22.04-arm64.deb'
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    veracrypt : Depends: libwxgtk3.0-gtk3-0v5 but it is not installable
    E: Unable to correct problems, you have held broken packages.

    I've installed the Ubuntu 22 console and this does install.

     
  • Kev

    Kev - 2023-11-19

    I've managed to get this working. I've added various packages, but the one that I was missing was libwxgtk3.2-dev

    Now it has build properly.

     

Log in to post a comment.