The most authoritative Community link: https://wiki.documentfoundation.org/Development/BuildingOnWindows Perhaps the English good person directly to read the explanation on the wiki can easily compile and build good libreoffice. One, download and install Cygwin link: http://www.cygwin.com/win7 (32-bit) installation Setup-x86.exe, Win7 (64-bit) Setup-x86_64.exe two, To build a Linux environment using Cygwin open the Windows command line and run the following command Win7 (32-bit):
Setup-x86.exe-p autoconf-p automake-p bison-p cabextract-p doxygen-p flex-p gcc-g++-P git-p gnupg-p gperf-p Mak E-p mintty-p nasm-p openssh-p openssl-p patch-p perl-p python-p python3-p pkg-config-p rsync-p unzip-p vim-p Wget-p zip-p Perl_vendor
Win7 (64-bit): Setup-x86_64.exe-p autoconf-p automake-p bison-p cabextract-p doxygen-p flex-p gcc-g++-P git-p gnupg-p Gperf-p make-p mintty-p nasm-p openssh-p openssl-p patch-p perl-p python-p python3-p pkg-config-p rsync-p Unz Ip-p vim-p wget-p zip-p perl-archive-zip III. Tools required to install Windows compilation 1) JDK installation download Link: http://www.oracle.com/technetwork/ JAVA/JAVASE/DOWNLOADS/INDEX.HTML2) Visual Studio installation LibreOffice version 4.4 requires Visual Studio 2012 or later, LibreOffice5.0 requires visual Studio 2013 or later. I compiled the LibreOffice version is 4.3.3.2, so I installed the visual Studio 2012.3) GUN make download link: http://dev-www.libreoffice.org/bin /cygwin/make-85047eb-msvc.exe Download Make-85047eb-msvc.exe and name it "make" on the Cygwin installation directory \opt\lo\bin\ Path (my full path: D:\cygwin\opt\lo\bin\make). 4) apache-ant-1.9.4, download link:https://archive.apache.org/dist/ant/binaries/apache-ant-1.9.5-bin.tar.bz2 junit-4.10.jar, download link:http://downloads.sourceforge.net/project/junit/junit/4.10/junit-4.10.jar   and put it in the appropriate directory (my full path: D:\LibreOfficeComplie\apache-ant-1.9.4, D:\LibreOfficeComplie\Junit\ Junit-4.10.jar) 5) use git to download libreoffice git command: Git clone git://gerrit.libreoffice.org/core libo-core (my LibreOffice version is 4.3.3.2,libreoffice major version number is more than 5.0, LibreOffice full path: D:\LibreOfficeComplie\4.3.3.2) Compile LibreOffice1) Create a build directory under the LibreOffice source peer directory, store the compilation generation file (D:\LibreOfficeComplie\build) 2) Run Cygwin, Go to the new build directory in the previous step and run the following command: /4.3.3.2/autogen.sh \--with-external-tar=/cygdrive/d/libreofficecomplie/lo-externalsrc \--with-junit=/cygdrive/d /libreofficecomplie/junit/junit-4.10.jar \--with-ant-home=/cygdrive/d/libreofficecomplie/apache-ant-1.9.4 \-- with-visual-studio=2012 \--with-windows-sdk=7.1a \--enable-pch \--enable-debug \--disable-ccache \--disable-activex \--disable-atl \--disable-odk3) After a successful configuration, the following message will appear and then run/opt/lo/bin make for LibreOffice compilation ... The next is a long wait. After compiling LibreOffice successfully, build Visual Studio 2012 project, so as to edit source code. First you need to change the LibreOffice source directory makefile.gbuild change to your corresponding directory. Then open Cygwin and go to the build directory (D:\LibreOfficeComplie\build) to run the following command. /OPT/LO/BIN/MAKE-NPF. /4.3.3.2/makefile.gbuild | D:/libreofficecomplie/4.3.3.2/bin/gbuild-to-ide--ide vs2012 This generates the Virsual Studio 2012 Project Engineering articleThing Six, the next start your LibreOffice source tour.
LibreOffice source Compilation and build vs Project