Update
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
# Cross compiling GStreamer with gst-build
|
||||
|
||||
GStreamer can be cross compiled for various platforms using gst-build. However,
|
||||
only dependencies that are ported to the Meson build system will be built. It is
|
||||
recommended to use Cerbero to cross compile GStreamer when other external
|
||||
dependencies are required.
|
||||
|
||||
Once the toolchain is installed and a Meson cross file is created, to build
|
||||
GStreamer simply run for example: `meson --cross-file data/cross-files/mingw_w64_x86-64.txt builddir`.
|
||||
|
||||
## Android
|
||||
|
||||
Requires Android API level >= 28, previous versions are missing *iconv* dependency.
|
||||
|
||||
- Download and extract the [NDK](https://developer.android.com/ndk/)
|
||||
- Create a Meson cross file, you can use `android_arm64_api28.txt` as example
|
||||
and change CPU architectures and toolchain path using the prebuilt toolchains
|
||||
from the NDK.
|
||||
|
||||
Notes:
|
||||
- On fedora the Android NDK requires the `ncurses-compat-libs` package.
|
||||
|
||||
## Windows
|
||||
|
||||
GStreamer can be cross compiled for Windows using mingw packaged in most
|
||||
distribution.
|
||||
|
||||
The Meson cross file `mingw_w64_x86-64.txt` can be used when targeting amd64
|
||||
architecture, or adapted for i686 arch.
|
||||
|
||||
### Fedora
|
||||
|
||||
- Install the toolchain packages: `mingw64-gcc`, `mingw64-gcc-c++`. Fedora
|
||||
provides many other optional dependencies that could be installed as well.
|
||||
For example: `mingw64-gettext`, `mingw64-libffi`, `mingw64-zlib`.
|
||||
|
||||
### Ubuntu
|
||||
|
||||
- Install the toolchain package: `gcc-mingw-w64`.
|
||||
@@ -0,0 +1,20 @@
|
||||
[host_machine]
|
||||
system = 'android'
|
||||
cpu_family = 'aarch64'
|
||||
cpu = 'aarch64'
|
||||
endian = 'little'
|
||||
|
||||
[properties]
|
||||
sys_root = '/path/to/android-ndk-r21/sysroot'
|
||||
c_link_args = ['-fuse-ld=gold']
|
||||
cpp_link_args = ['-fuse-ld=gold']
|
||||
# Starting with 0.53.1, you can replace the above *_link_args:
|
||||
# c_ld = 'gold'
|
||||
# cpp_ld = 'gold'
|
||||
|
||||
[binaries]
|
||||
c = '/path/to/android-ndk-r21/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android28-clang'
|
||||
cpp = '/path/to/android-ndk-r21/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android28-clang++'
|
||||
ar = '/path/to/android-ndk-r21/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar'
|
||||
strip = '/path/to/android-ndk-r21/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-strip'
|
||||
pkgconfig = 'false'
|
||||
@@ -0,0 +1,17 @@
|
||||
[host_machine]
|
||||
system = 'windows'
|
||||
cpu_family = 'x86_64'
|
||||
cpu = 'x86_64'
|
||||
endian = 'little'
|
||||
|
||||
[properties]
|
||||
c_args = []
|
||||
c_link_args = []
|
||||
|
||||
[binaries]
|
||||
c = 'x86_64-w64-mingw32-gcc'
|
||||
cpp = 'x86_64-w64-mingw32-g++'
|
||||
ar = 'x86_64-w64-mingw32-ar'
|
||||
strip = 'x86_64-w64-mingw32-strip'
|
||||
pkgconfig = 'x86_64-w64-mingw32-pkg-config'
|
||||
windres = 'x86_64-w64-mingw32-windres'
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 76 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
@@ -0,0 +1,19 @@
|
||||
$i=1
|
||||
$ppid=(gwmi win32_process -Filter "processid='$pid'").parentprocessid
|
||||
$pname=(Get-Process -id $ppid).Name
|
||||
While($true) {
|
||||
if($pname -eq "cmd" -Or $pname -eq "powershell") {
|
||||
Write-Host ("{0}.exe" -f $pname)
|
||||
Break
|
||||
}
|
||||
|
||||
# 10 times iteration seems to be sufficient
|
||||
if($i -gt 10) {
|
||||
Break
|
||||
}
|
||||
|
||||
# not found yet, find grand parant
|
||||
$ppid=(gwmi win32_process -Filter "processid='$ppid'").parentprocessid
|
||||
$pname=(Get-Process -id $ppid).Name
|
||||
$i++
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
global:
|
||||
ges_*;
|
||||
GES_*;
|
||||
GST_*;
|
||||
gst_*;
|
||||
_gst_*;
|
||||
g_*;
|
||||
glib_*;
|
||||
local:
|
||||
*;
|
||||
};
|
||||
Reference in New Issue
Block a user