写点什么

Eclipse Debug FFmpeg

作者:贾献华
  • 2022 年 8 月 05 日
  • 本文字数:1347 字

    阅读完需:约 4 分钟

Eclipse Debug FFmpeg










Created: August 5, 2022 9:55 AM


Eclipse - FFmpeg


Install Eclipse


sudo snap install --classic eclipse
复制代码


miss JRE


Eclipse:A Java Runtime Environment (JRE) or Java Development Kit (JDK)must be available in order to run Eclipse. No Java virtual machinewas found after searching the following locations:/snap/eclipse/48/jre/bin/javajava in your current PATH
复制代码


Install jre


sudo apt install default-jre
复制代码


Install CDT


Eclipse → Help → Eclipse Marketplace…


Download FFmpeg

wget -c http://ffmpeg.org/releases/ffmpeg-5.1.tar.xztar xvf ffmpeg-5.1.tar.xzmkdir -p ~/ffmpeg_sources ~/bin
复制代码


CompilationGuide/Ubuntu - FFmpeg


sudo apt-get update -qq && sudo apt-get -y install \  autoconf \  automake \  build-essential \  cmake \  git-core \  libass-dev \  libfreetype6-dev \  libgnutls28-dev \  libmp3lame-dev \  libsdl2-dev \  libtool \  libva-dev \  libvdpau-dev \  libvorbis-dev \  libxcb1-dev \  libxcb-shm0-dev \  libxcb-xfixes0-dev \  meson \  ninja-build \  pkg-config \  texinfo \  wget \  yasm \  zlib1g-dev# Ubuntu 20.04sudo apt install libunistring-dev libaom-dev libdav1d-dev
# nasmsudo apt-get install nasm# libx64sudo apt-get install libx264-dev# libx65sudo apt-get install libx265-dev libnuma-dev# libaacsudo apt-get install -y libfdk-aac-dev# libopssudo apt-get install libopus-dev
复制代码


build.sh



# build.shPATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \ --prefix="$HOME/ffmpeg_build" \ --pkg-config-flags="--static" \ --extra-cflags="-I$HOME/ffmpeg_build/include" \ --extra-ldflags="-L$HOME/ffmpeg_build/lib" \ --extra-libs="-lpthread -lm" \ --ld="g++" \ --bindir="$HOME/bin" \ --enable-gpl \ --enable-gnutls \ --enable-libaom \ --enable-libass \ --enable-libfdk-aac \ --enable-libfreetype \ --enable-libmp3lame \ --enable-libopus \ --enable-libx264 \ --enable-libx265 \ --enable-nonfree && \PATH="$HOME/bin:$PATH" make && \make install && \hash -r
复制代码


报错:


ERROR: gnutls not found using pkg-config
If you think configure made a mistake, make sure you are using the latestversion from Git. If the latest version fails, report the problem to theffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.Include the log file "ffbuild/config.log" produced by configure as this will helpsolve the problem.
复制代码


安装 libunistring-dev


sudo apt-get install libunistring-dev
复制代码


报错:


ERROR: aom >= 1.0.0 not found using pkg-config
复制代码


安装 :


sudo apt install libaom-de
复制代码

Eclipse Debug FFmpeg

Project → Build All



左上角右键


Project Explorer → ffmpeg-5.1 → Binaryies → ffplay_g → Debug As → Debug Configurations...




自动停在 main 函数处。



Console 乱码



安装 ANSI Escape in Console



Color Tips



Enable ANSI



用户头像

贾献华

关注

及时当勉励 岁月不待人 2018.06.04 加入

https://2022.iosdevlog.com

评论

发布
暂无评论
Eclipse Debug FFmpeg_8月月更_贾献华_InfoQ写作社区