Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create cross compilation MPV build using -Dgpl=false #680

Open
SiddaramMavinamar opened this issue May 30, 2024 · 5 comments
Open

Comments

@SiddaramMavinamar
Copy link

Please suggest In details steps , it would be greatly appreciated
i tried below steps for UBUNTU 24.04

apt-get install build-essential checkinstall bison flex gettext git mercurial subversion ninja-build gyp cmake yasm nasm automake pkgconf libtool libtool-bin gcc-multilib g++-multilib clang lld libc++1 libc++abi1 libgmp-dev libmpfr-dev libmpc-dev libgcrypt-dev gperf ragel texinfo autopoint re2c asciidoc python3-pip docbook2x unzip p7zip-full curl mimalloc ccache

Compiling with GCC got failed
Example:

cmake -DTARGET_ARCH=x86_64-w64-mingw32
-DGCC_ARCH=x86-64-v3
-DSINGLE_SOURCE_LOCATION="/home/user/packages"
-DRUSTUP_LOCATION="/home/user/install_rustup"
-G Ninja -B build64 -S mpv-winbuild-cmake

@zhongfly
Copy link
Contributor

@SiddaramMavinamar
Copy link
Author

https://github.com/shinchiro/mpv-winbuild-cmake/blob/master/packages/mpv.cmake

my question is how to build Cross compile mpv in simple steps using https://github.com/shinchiro/mpv-winbuild-cmake

Tried all possible ways as i know but stuck with build failed

@SiddaramMavinamar
Copy link
Author

@zhongfly Could you please provide solution to build cross compile mpv with [-Dgpl=false], i tried MXE too got below error libplacebo not found
mpv-player/mpv#14259

@hooke007
Copy link
Contributor

Isn't it dup of #586 ?

@SiddaramMavinamar
Copy link
Author

SiddaramMavinamar commented May 31, 2024

Isn't it dup of #586 ?
@hooke007
No
// First, I am not able to build the cross-compile which needs to generate MPV.
// After successfully building MPV, I will then proceed to apply the GPL part.
// My question is: please suggest steps to cross-compile, whether using MXE or CMake.
// In MXE, I found that liblacebo is not found since they don't have a makefile for it.
// I don't have much idea about creating a makefile (mk file) because I am new to Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants