From: "\"zhilizhao(赵志立)\"" <quinkblack@foxmail.com>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH] Fix broken build on Android due to broken asm-generic/termbits.h include
Date: Mon, 27 Feb 2023 21:44:28 +0800
Message-ID: <tencent_73CAD5572715B89B961E4D662007CDD14F07@qq.com> (raw)
In-Reply-To: <CA+anqdx1bOWmP=8TqHnGTnLO1BXqAQ99BhDH_i1VV3jYxxaYJA@mail.gmail.com>
> On Feb 23, 2023, at 23:01, Hendrik Leppkes <h.leppkes@gmail.com> wrote:
>
> On Thu, Feb 23, 2023 at 3:37 PM copypaste <copypaste@kittens.ph> wrote:
>> It gets included because this platform does indeed have Video4Linux so some of the aarch64 stuff is relevant. Furthermore I think that the HEVC stuff includes it.
>>
>
> If its relevant for V4L or other hardware integration is fine and all
> ... but the real question is, how does it end up in aaccoder.c and
> other files entirely unrelated to video or hardware? And can we just
> get it out of those?
I know this issue exists for a long time. But I can’t reproduce it
these days.
https://github.com/android/ndk/issues/630
https://trac.ffmpeg.org/ticket/7130
The ‘B0’ macro comes from <sys/ioctl.h>, which is defined by
asm-generic/termbits.h. <sys/ioctl.h> is included by libavutil/timer.h.
Thanks to the cleanup work done by Andreas Rheinhardt, the conflicts
has been reduced a lot, I think that’s why I didn’t get build errors.
Google suggests FFmpeg to fix the code problem, while NDK has
break more than one projects, see
https://github.com/jupyter-xeus/cpp-terminal/issues/35
You can reproduce the build error with:
$ cat foo.c
#include <sys/ioctl.h>
int main()
{
int B0 = 123;
}
$ make foo
cc foo.c -o foo
foo.c:5:9: error: expected identifier or '('
int B0 = 123;
^
/data/data/com.termux/files/usr/include/asm-generic/termbits.h:118:12: note: expanded from macro 'B0'
#define B0 0000000
^
1 error generated.
make: *** [<builtin>: foo] Error 1
>
> - Hendrik
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2023-02-27 13:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-22 9:12 copypaste
2023-02-23 13:45 ` Anton Khirnov
2023-02-23 14:37 ` copypaste
2023-02-23 14:46 ` copypaste
2023-02-23 15:01 ` Hendrik Leppkes
2023-02-27 13:44 ` "zhilizhao(赵志立)" [this message]
2023-02-24 14:55 ` copypaste
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_73CAD5572715B89B961E4D662007CDD14F07@qq.com \
--to=quinkblack@foxmail.com \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git