Kdenlive/Development/WindowsBuild: Difference between revisions

From KDE Community Wiki
No edit summary
Line 61: Line 61:
cd mxe
cd mxe
make kdenlive
make kdenlive
make gdb  #for debugging
plugins/apps/deploy_kdenlive.sh
</pre>
</pre>
=== Debugging ===
=== Debugging ===
<pre>
make gdb
</pre>
In case of crash, look for kdenlive PID in the task manager, start gdb:
In case of crash, look for kdenlive PID in the task manager, start gdb:
<pre>
<pre>
Line 72: Line 71:
</pre>
</pre>
And in gdb:
And in gdb:
   (gdb)attach ''<i>PID</i>'' plugins/apps/deploy_kdenlive.sh
   (gdb)attach ''<i>PID</i>''


== Porting the [https://www.mltframework.org/ MLT framework] to CMake ==
== Porting the [https://www.mltframework.org/ MLT framework] to CMake ==


To be able to compile Kdenlive with MSVC  (Microsoft Visual C++ compiler and libraries toolset). (Elie).
To be able to compile Kdenlive with MSVC  (Microsoft Visual C++ compiler and libraries toolset). (Elie).

Revision as of 19:03, 9 May 2018

Different efforts are currently being led to make building Kdenlive on Microsoft Windows possible.

Cross compiling on GNU/Linux using MXE

You should first follow the steps necessary to build Kdenlive on GNU/ Linux.

Getting and configuring MXE

Then, on the level where you cloned the kdenlive repository, you should clone a special version of MXE (M cross environment):

git clone https://github.com/vpinon/mxe.git

Then create a settings.mk file with the following command (copy/paste the whole block)

cat >mxe/settings.mk <<EOF
MXE_TARGETS := x86_64-w64-mingw32.shared.posix
override MXE_PLUGIN_DIRS += plugins/multimedia plugins/kdeframeworks plugins/apps
kdenlive_SOURCE_TREE := $PWD/kdenlive
EOF

Installing MXE dependencies

MXE requires the following dependecies (many of which should already be on your system, since you built the GNU/Linux version):

sudo apt install \
    autoconf \
    automake \
    autopoint \
    bash \
    bison \
    bzip2 \
    flex \
    g++ \
    g++-multilib \
    gettext \
    git \
    gperf \
    intltool \
    libc6-dev-i386 \
    libgdk-pixbuf2.0-dev \
    libltdl-dev \
    libssl-dev \
    libtool-bin \
    libxml-parser-perl \
    make \
    openssl \
    p7zip-full \
    patch \
    perl \
    pkg-config \
    python \
    ruby \
    scons \
    sed \
    unzip \
    wget \
    xz-utils

Building kdenlive with MXE

cd mxe
make kdenlive
make gdb  #for debugging
plugins/apps/deploy_kdenlive.sh

Debugging

In case of crash, look for kdenlive PID in the task manager, start gdb:

gdb

And in gdb:

 (gdb)attach PID

Porting the MLT framework to CMake

To be able to compile Kdenlive with MSVC (Microsoft Visual C++ compiler and libraries toolset). (Elie).