【发布时间】:2021-08-30 19:37:04
【问题描述】:
我在构建 gstreamer 1.14.4 时遇到了以下错误:
/build/gstreamer1-1.14.4/libs/gst/controller »
CC libgstcontroller_1.0_la-controller-enumtypes.lo
controller-enumtypes.c:6:1: error: « \ » stray in program
\#include "gstinterpolationcontrolsource.h"
^
controller-enumtypes.c:6:2: error: « # » stray in program
\#include "gstinterpolationcontrolsource.h"
^
controller-enumtypes.c:6:11: error: expected « = », « , », « ; », « asm » or « __attribute__ » before string constant
\#include "gstinterpolationcontrolsource.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
controller-enumtypes.c:7:1: error: « \ » stray in program
\#include "gstlfocontrolsource.h"
^
controller-enumtypes.c:7:2: error: « # » stray in program
\#include "gstlfocontrolsource.h"
...
我正在为 Debian Bullseye(GNU Make 4.3,gcc (Debian 10.2.1-6) 10.2.1 20210110)上的 Raspberry Pi 3 模型 B+ 进行编译,交叉编译器是 arm-buildroot-linux-gnueabihf-gcc-7.4 .0.在此之前,在 Linux Mint Sonya 上编译是可以的。
好像和生成的代码有关:
/* controller-enumtypes.c */
/* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */
#include "controller-enumtypes.h"
\#include "gstinterpolationcontrolsource.h"
\#include "gstlfocontrolsource.h"
...
在\#include "gstinterpolationcontrolsource.h" 行中有一个额外的"\",这是一个无效的语法。
如何使用 buildroot-2019.02.9 正确修复此软件包?
谢谢。
【问题讨论】:
标签: gstreamer embedded-linux raspberry-pi3 buildroot