I’m trying to build Android libs with some changes to
cerbero/build/sources/android_universal/arm64/gstreamer-1.0/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c
However, the changes don’t take any effect when I run
./cerbero-uninstalled -c config/cross-android-universal.cbc build gst-plugins-bad-1.0
I might be doing this the wrong way. Any help? Thanks!
See https://gitlab.freedesktop.org/gstreamer/cerbero/#how-to-build-a-custom-gstreamer-repository-or-branch for how to build a custom GStreamer version with cerbero.
1 Like
Is it possible to use a local repo? For example,
recipes_remotes = {'gstreamer-1.0': {'custom-remote': '~/Documents/gstreamer'}}
recipes_commits = {'gstreamer-1.0': 'custom-remote/1.6'}
Yes. Use the file:///home/USER/Documents/gstreamer
form for the git repo remote.
1 Like
It seems not be working. I’m using
./cerbero-uninstalled -c localconf.cbc -c config/cross-android-universal.cbc build gst-plugins-bad-1.0
to build a specific lib. What’s the difference between package
and build
?
The log says
-----> Contents of /home/zzz/Documents/cerbero/build/logs/android_armv7/gstreamer-1.0-fetch.log:
Running command ['git', 'remote', 'add', 'origin', 'https://gitlab.freedesktop.org/gstreamer/gstreamer.git'] in /home/zzz/.cache/cerbero-sources/gstreamer-1.0
error: remote origin already exists.
Running command ['git', 'remote', 'set-url', 'origin', 'https://gitlab.freedesktop.org/gstreamer/gstreamer.git'] in /home/zzz/.cache/cerbero-sources/gstreamer-1.0
Running command ['git', 'remote', 'add', 'custom-remote', 'file:///home/zzz/Documents/gstreamer'] in /home/zzz/.cache/cerbero-sources/gstreamer-1.0
error: remote custom-remote already exists.
Running command ['git', 'remote', 'set-url', 'custom-remote', 'file:///home/zzz/Documents/gstreamer'] in /home/zzz/.cache/cerbero-sources/gstreamer-1.0
Running command ['git', 'fetch', '--all'] in /home/zzz/.cache/cerbero-sources/gstreamer-1.0
Fetching origin
Fetching custom-remote
From file:///home/zzz/Documents/gstreamer
c863ded6fb..53e91d800a 1.26 -> custom-remote/1.26
Running command ['git', 'fetch', '--all', '--tags', '-f'] in /home/zzz/.cache/cerbero-sources/gstreamer-1.0
Fetching origin
Fetching custom-remote
Running command ['git', 'reset', '--hard', 'custom-remote/1.6'] in /home/zzz/.cache/cerbero-sources/gstreamer-1.0
fatal: ambiguous argument 'custom-remote/1.6': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Recipe 'gstreamer-1.0' failed at the build step 'fetch'
Command Error: Running ['git', 'reset', '--hard', 'custom-remote/1.6'] returned 128
Output in logfile /home/zzz/Documents/cerbero/build/logs/android_armv7/gstreamer-1.0-fetch.log
Sorry my bad, I mistyped the branch name
Ok it’s not working again. Code changes won’t take effect How can I enforce code fetching?
Also, when I use the generated libs in cerbero/build/dist/android_universal/arm64/lib
, the libs just behave like nothing changes (I simply added some extra logs). This is frustrating…