Last active
April 24, 2018 01:12
-
-
Save emilio1625/01a56e6a3e91ba3b6c94400646adf7ac to your computer and use it in GitHub Desktop.
Compilling gst-omx on fedberry 27 (fedora)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Setup a development enviroment | |
| sudo dnf group install "Development Tools" "Development Libraries" | |
| sudo dnf install gstreamer1-plugins-base-devel gstreamer1-plugins-base-devel libtool raspberrypi-vc-libs-devel | |
| # Maybe (not) necessary | |
| sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm | |
| sudo dnf install gstreamer1-plugins{-good,-ugly,-bad{-free,-nonfree,-freeworld}} ffmpeg libomxil-bellagio | |
| # Clone the repo (github mirror) | |
| git clone -b 1.12 https://github.com/GStreamer/gst-omx.git | |
| # Configure the package | |
| cd gst-omx | |
| ./autogen.sh --with-omx-header-path=/usr/include/vc/IL --with-omx-target=rpi --prefix=$HOME/omx --disable-{gtk-doc,nls,docbook,tests,benchmarks,examples,debug,debugutils} | |
| # Make and install | |
| make | |
| make install | |
| # Set some paths | |
| sudo mkdir /opt/vc | |
| sudo ln -s /usr/lib/vc /opt/vc/lib | |
| cd $HOME | |
| echo -e \\n# Gstreamer environment >> .bash_profile | |
| echo export GST_PLUGIN_PATH_1_0=$HOME/omx/lib/gstreamer-1.0/ >> .bash_profile | |
| echo export GST_OMX_CONFIG_DIR=$HOME/omx/etc/xdg/ >> .bash_profile | |
| echo export LD_LIBRARY_PATH=$HOME/omx/lib/gstreamer-1.0/ >> .bash_profile | |
| . ~/.bash_profile | |
| # Check if it's working | |
| gst-inspect-1.0 | grep -iE openmax | |
| # TODO: Add a test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment