Compilation 7-zip with MSYS2
-
Show me how to compil. http://www.7-zip.org/download.html MSYS2
-
Detailed MSVC compilation instruction http://www.ski-epic.com/2012_compiling_7zip_on_windows_with_visual_studio_10/index.html ♪
Add the compilation option through Cygwin:
- Download. https://www.cygwin.com/ Choose a version of x32. Let's get to the directory, for example.
C:\projects\tools\cygwin
♪ The available packages will require:make, gcc/g++, wxwidgets
♪ We agree with the set of proposed packages. - We're downloading the right version of 7zip under POSIX-systems: http://sourceforge.net/projects/p7zip/files/p7zip/ ♪ We're, like, in the directory.
C:\projects\other\7zip\source
♪ - Let's start Cygwin.bat, go to the directory where the 7zip library is sold:
cd /cygdrive/c/projects/other/7zip/source
♪ - There's a lot of makefile for different platforms in the directory with references.
makefile.cygwin
and copy the contents in the file.makefile.machine
♪ - Implemented
make -j4
for the purpose compilation all♪ - Read the file.
install.sh
to indicate its way of installing compiled files. We need a parameter.DEST_HOME
and change it, for example:/cygdrive/c/projects/other/7zip/build
♪ - Implemented
./install.sh
- Now in the catalogue.
/bin
7za.exe. The following libraries, cyggcc_s-1.dll, cygstdc+-6.dll, cygwin1.dll, cataloguecygwin_install_dir/bin
♪ - 7zip is ready for use
- Download. https://www.cygwin.com/ Choose a version of x32. Let's get to the directory, for example.