-
-
Notifications
You must be signed in to change notification settings - Fork 46
Compiling
Shuanglei Tao edited this page Feb 6, 2023
·
15 revisions
ImPlay depends on the following external libraries:
- glfw
- libmpv
- freetype2
-
USE_OPENGL_ES2
: Compile with OpenGL ES 2.0 backend -
USE_PATCHED_GLFW
: Compile glfw with patches for features that not suppored by upstream (requires dependencies to be installed)- macOS open with support (https://github.com/glfw/glfw/pull/1579)
- window dragging support (https://github.com/glfw/glfw/pull/987)
-
USE_MPV_WIN_BUILD
: Use Prebuilt static mpv dll on Windows -
USE_XDG_PORTAL
: Use xdg-desktop-portal for file dialogs on Linux (requiresdbus-1
dev package to be installed)
sudo apt-get install -y build-essential cmake git pkg-config \
libgtk-3-dev libglfw3-dev libfreetype6-dev libmpv-dev
git clone https://github.com/tsl0922/ImPlay.git
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE ..
cmake --build . --target package
This will build a deb package.
Install Homebrew, and run:
brew install cmake git mpv freetype2 pkg-config
git clone https://github.com/tsl0922/ImPlay.git
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE -DUSE_PATCHED_GLFW=ON ..
cmake --build . --target package
This will build a DMG file.
Install msys2, and open the MSYS2 MINGW64
shell:
pacman -S base-devel git p7zip mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-freetype
git clone https://github.com/tsl0922/ImPlay.git
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE -DUSE_PATCHED_GLFW=ON -DUSE_OPENGL_ES2=ON ..
cmake --build . --target package
This will build a MSI installer and a portable ZIP.