我试图报告 VLC 崩溃,但编译失败:
$ ./configure CFLAGS="-g" CXXFLAGS="-g" --enable-debug && make
[…]
CC codec/libx264_plugin_la-x264.lo
In file included from ../include/vlc_fixups.h:31,
from ../config.h:907,
from codec/x264.c:29:
/usr/include/features.h:381:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^~~~~~~
codec/x264.c: In function ‘Open’:
codec/x264.c:849:26: error: ‘x264_bit_depth’ undeclared (first use in this function); did you mean ‘x264_picture_t’?
const int mask = x264_bit_depth > 8 ? X264_CSP_HIGH_DEPTH : 0;
^~~~~~~~~~~~~~
x264_picture_t
codec/x264.c:849:26: note: each undeclared identifier is reported only once for each function it appears in
好像没有x264库包:
$ pacman --sync --search x264
extra/x264 2:155.r0a84d986-2 [installed]
Open Source H264/AVC video encoder
我该如何跨过这一步?我已经安装了所有构建依赖项vlc-git AUR 包。
答案1
根据@jasonwryan的评论我能够修改官方VLC 3.0.3PKG构建构建 VLC 的调试版本。 PKGBUILD 差异:
$ diff PKGBUILD{.orig,}
125c125
< export CFLAGS+=" -I/usr/include/samba-4.0"
---
> export CFLAGS+=" -I/usr/include/samba-4.0 -g"
127c127
< export CXXFLAGS+=" -std=c++11"
---
> export CXXFLAGS+=" -std=c++11 -g"
222c222,223
< --with-kde-solid=/usr/share/solid/actions/
---
> --with-kde-solid=/usr/share/solid/actions/ \
> --enable-debug
不幸的是,这还不足以向开发人员提供足够的信息。