Skip to content

Latest commit

 

History

History
101 lines (89 loc) · 4.8 KB

How-to-Built.md

File metadata and controls

101 lines (89 loc) · 4.8 KB

Build for MediaEditor Community

Precondition

Install Git

Git clone MediaEditor repo with submodule

git clone --recurse-submodules https://github.com/opencodewin/MediaEditor.git


Build for Windows x64 using Mingw64

Step 1  ❤  Install MSYS2 and NSIS

  • MSYS2 is a collection of tools and libraries providing you with an easy-to-use environment for building, installing and running native Windows software.
  • NSIS is a professional open-source tool for creating Windows installation programs.

Step 2  ❤  Install Dependencies (MSYS2 commandline)

pacman -Syu && pacman -S mingw-w64-x86_64-clang mingw-w64-x86_64-cmake \
                         mingw-w64-x86_64-ffmpeg mingw-w64-x86_64-openmp \
                         mingw-w64-x86_64-glew mingw-w64-x86_64-glfw \
                         mingw-w64-x86_64-vulkan-headers mingw-w64-x86_64-vulkan-loader

Step 3  ❤  Build source code (Mingw64 commandline)

cd MediaEditor && mkdir build && cd build && \
                  cmake .. && cmake --build . --config Release --target all -j

Step 4  ❤  Generate Installation package (Optional)

Note: If you want to generate installation package, you need to place source code in the usr-path under the MSYS path, and then repeat the preceding steps.

cmake --build . --config Release --target install -j && cpack

Build for Ubuntu

Step 1  ❤  Install Dependencies

sudo apt update && sudo apt install build-essential cmake \
                            libavformat-dev libavcodec-dev libavutil-dev libavdevice-dev libswscale-dev libswresample-dev \
                            libgmp-dev libomp-dev zlib1g-dev glslang-dev glslang-tools pkg-config spirv-tools \
                            libglew-dev libglfw3-dev libsdl2-dev libsdl2-image-dev libass-dev \
                            libfontconfig-dev libfreetype-dev libvulkan-dev vulkan-tools

Step 2  ❤  Build source code

cd MediaEditor && mkdir build && cd build && \
                  cmake .. && cmake --build . --config Release --target all -j

Step 3  ❤  Generate Installation package (Optional)

cmake --build . --config Release --target install -j

Build for MacOS x86 and MacOS M1

Step 1  ❤  Install CommandLineTools and Homebrew

xcode-select --install && 
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Step 2  ❤  Install Dependencies

brew install cmake ffmpeg libomp zlib glslang spirv-tools pkg-config glew glfw sdl2 sdl2_image \
               libass fontconfig freetype vulkan-headers vulkan-loader vulkan-tools

Step 3  ❤  Build source code

cd MediaEditor && mkdir build && cd build && \
                  cmake .. && cmake --build . --config Release --target all -j

Step 4  ❤  Generate Installation package (Optional)

Note: MacOS M1 has the strict signature mechanism, so we recommend using our released version. If you want to create your own installation package, please refer to the instructions provided by Apple.

cmake --build . --config Release --target install -j && cpack