mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-02-26 08:22:31 +00:00
README.Windows: Make this also a markdown file
This commit is contained in:
parent
1752f977c7
commit
f25d9293de
@ -13,10 +13,9 @@ the new C++11 standard that even the newest C++ compilers from
|
||||
Microsoft simply don't support. Therefore the old project files that
|
||||
enabled building with Visual Studio 8 or newer were removed.
|
||||
|
||||
Section 1 -- Building with a mingw cross compiler
|
||||
-------------------------------------------------
|
||||
# 1. Building with a mingw cross compiler
|
||||
|
||||
1.1. Preparations
|
||||
## 1.1. Preparations
|
||||
|
||||
You will need:
|
||||
|
||||
@ -24,8 +23,8 @@ You will need:
|
||||
- roughly 2 GB of free space available
|
||||
|
||||
Earlier versions of this document described in painful details how to
|
||||
build each library. Luckily there's the "mingw-cross-env" project at
|
||||
http://mingw-cross-env.nongnu.org/ that provides an easy-to-use way of
|
||||
build each library. Luckily there's the [mingw-cross-env project]
|
||||
(http://mingw-cross-env.nongnu.org/) that provides an easy-to-use way of
|
||||
setting up everything we need.
|
||||
|
||||
Unfortunately current versions of mingw-cross-env use a compiler
|
||||
@ -36,19 +35,19 @@ retrieve that fork you need `git`. Then to the following:
|
||||
git clone https://github.com/mbunkus/mxe $HOME/mingw-cross-env
|
||||
|
||||
The rest of this guide assumes that you've unpacked mingw-cross-env
|
||||
into the directory $HOME/mingw-cross-env.
|
||||
into the directory `$HOME/mingw-cross-env`.
|
||||
|
||||
1.2. Automatic build script
|
||||
## 1.2. Automatic build script
|
||||
|
||||
mkvtoolnix contains a script that can download, compile and install
|
||||
all required libraries into the directory $HOME/mingw-cross-env.
|
||||
all required libraries into the directory `$HOME/mingw-cross-env`.
|
||||
|
||||
If the script does not work or you want to do everything yourself
|
||||
you'll find instructions for manual compilation in section 1.3.
|
||||
|
||||
1.2.1. Script configuration
|
||||
### 1.2.1. Script configuration
|
||||
|
||||
The script is called winbuild/setup_cross_compilation_env.sh. It
|
||||
The script is called `winbuild/setup_cross_compilation_env.sh`. It
|
||||
contains the following variables that can be adjusted to fit your
|
||||
needs:
|
||||
|
||||
@ -65,20 +64,20 @@ Base installation directory
|
||||
Number of processes to execute in parallel. Will be set to the number
|
||||
of cores available if left empty.
|
||||
|
||||
1.2.2. Execution
|
||||
### 1.2.2. Execution
|
||||
|
||||
From the mkvtoolnix source directory run:
|
||||
|
||||
./winbuild/setup_cross_compilation_env.sh
|
||||
|
||||
If everything works fine you'll end up with a configured mkvtoolnix
|
||||
source tree. You just have to run 'drake' afterwards.
|
||||
source tree. You just have to run `drake` afterwards.
|
||||
|
||||
1.3. Manual installation
|
||||
## 1.3. Manual installation
|
||||
|
||||
First you will need the mingw-cross-env build scripts. Get them by
|
||||
downloading them (see above) and unpacking them into
|
||||
$HOME/mingw-cross-env.
|
||||
`$HOME/mingw-cross-env`.
|
||||
|
||||
Next, build the required libraries:
|
||||
|
||||
@ -86,7 +85,7 @@ Next, build the required libraries:
|
||||
make gcc w32api mingwrt gettext boost bzip2 curl file flac libiconv \
|
||||
lzo ogg pthreads vorbis wxwidgets zlib
|
||||
|
||||
Append the installation directory to your PATH variable:
|
||||
Append the installation directory to your `PATH` variable:
|
||||
|
||||
export PATH=$PATH:$HOME/mingw-cross-env/usr/bin
|
||||
hash -r
|
Loading…
Reference in New Issue
Block a user