TEXT   29

Mac OSX Compilation

Guest on 17th July 2022 12:13:55 PM

  1. Mac OSX Compilation
  2.  
  3. There are two ways to compile the Mac OSX version of GostCrypt. It depends on the sources you've downloaded. If you have the Linux sources, please follow the first step. Otherwise, go directly to the second step.
  4. Step 0 - OSX Fuse
  5.  
  6. You'll need *OSX FUSE* to make GostCrypt running on Mac OSX. You can find it on their website OSX Fuse ( http://osxfuse.github.io/ ). Download it and follow their instructions to install it.
  7. Step 1 - Patch the sources
  8.  
  9. So you've downloaded the Linux sources. We wrote a patch that allows you to update the sources to make it macosx-compatible.
  10.  
  11. To do so, download the patch and put it in the folder of the gostcrypt sources. Once it is done, apply the patch with the following command :
  12.  
  13.   patch -p0 < gostcrypt.patch
  14.  
  15. It won't take long. The patch will tell you when it will be over.
  16. Step 2 - Pkcs 11 headers
  17.  
  18. As for the Linux version, you need to download the Pkcs11 headers. Those headers are available on their website. Do as follow :
  19.  
  20.   cd GostCrypt_XXXX_1.0/
  21.   mkdir Pkcs11 && cd Pkcs11
  22.   wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11.h
  23.   wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11f.h
  24.   wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11t.h
  25.   cd ..
  26.  
  27. Step 3 - WxWidgets
  28.  
  29. For the moment, the GUI is based on WxWidgets. Don't worry about the compilation, there is an option in the Makefile.
  30. Step 4 - Compilation
  31.  
  32. Now, we can start the compilation. We need gcc to compile the sources. It is not included in all Mac OSX distributions, so you have to have XCode and to download the *Command Line Tools*.
  33.  
  34. Two ways to do so. The first on XCode :
  35.  
  36.   XCode -> Preferences -> Downloads
  37.  
  38. It will have the *Command Line Tools* option (if not, you already have the tool). Click and it will download it.
  39.  
  40. Or with the terminal :
  41.  
  42.  xcode-select --install
  43.  
  44. Open the Makefile to change the path to WX_ROOT. Write the path to the WX folder you've just downloaded. Go to the terminal, go to your folder and launch the command :
  45.  
  46.   make wxbuild -j4
  47.  
  48. It will begin the compilation of wxWidgets. For the moment, all the options are activated, so the compilation will take a while.
  49.  
  50. Once it is over, you can launch the GostCrypt compilation.
  51.  
  52.   export PKCS11_INC=/absolute/path/to/pkcs/folder
  53.   make -j4
  54.  
  55. Now, it will be done. The executable will be in the Main folder.

Raw Paste


Login or Register to edit or fork this paste. It's free.