Skip to content

Compile 7-zip

no need to fix -OPT:NOWIN98 as this part is skipped with NEW_COMPILER=1

  1. Visual Studio Community 2019 https://visualstudio.microsoft.com/vs/
    • Desktop development with C++
  2. Get 7-zip source https://sourceforge.net/projects/sevenzip/files/7-Zip/
  3. add -DWIN_LONG_PATH to CFLAGS in CPP\7zip\Bundles\SFXWin\makefile for path_limit > 260 chars
  4. In 7-zip source folder go to CPP\7zip
  5. open cmd

x64 build

"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"

nmake CPU=AMD64 NEW_COMPILER=1 MY_STATIC_LINK=1

x32 build

"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"

nmake NEW_COMPILER=1 MY_STATIC_LINK=1

Published inUncategorized

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*