Package Details: directfb2-tools-git r4.5ad91ce-1

Git Clone URL: https://aur.archlinux.org/directfb2-tools-git.git (read-only, click to copy)
Package Base: directfb2-tools-git
Description: Various DirectFB utilities
Upstream URL: https://directfb2.github.io/
Keywords: directfb framebuffer
Licenses: LGPL
Submitter: Popolon
Maintainer: Popolon
Last Packager: Popolon
Votes: 0
Popularity: 0.000000
First Submitted: 2022-12-13 22:30 (UTC)
Last Updated: 2022-12-13 22:30 (UTC)

Dependencies (5)

Required by (0)

Sources (1)

Latest Comments

Popolon commented on 2025-11-05 18:17 (UTC)

You need to report it upstream, that's the philosophy of Arch Linux, add compilation error here (package-git), for upstream code problem is useless.

bountykiller commented on 2025-11-02 16:50 (UTC) (edited on 2025-11-03 18:22 (UTC) by bountykiller)

It seems that directfb2 related libraries uses some old, deprectaed, API of the ffmpeg library. Unfortunately, ffmpeg did drop those API in the latest versions (which was to be expected), which makes directfb2 not compiling against it anymore :/

dreieck commented on 2025-03-28 11:04 (UTC)

Build fails for me with

ninja: Entering directory `build/'
[8/18] Compiling C object src/mkdfvff.p/mkdfvff.c.o
FAILED: src/mkdfvff.p/mkdfvff.c.o
ccache cc -Isrc/mkdfvff.p -Isrc -I../src -I/usr/include/directfb-internal -I/usr/include/directfb -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -march=native -mtune=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -fstack-clash-protection -fcf-protection -w -flto=auto -Wno-error=implicit-function-declaration -MD -MQ src/mkdfvff.p/mkdfvff.c.o -MF src/mkdfvff.p/mkdfvff.c.o.d -o src/mkdfvff.p/mkdfvff.c.o -c ../src/mkdfvff.c
../src/mkdfvff.c: In function ?load_video?:
../src/mkdfvff.c:308:40: error: ?AVStream? has no member named ?codec?
  308 |           width   = fmt_ctx->streams[0]->codec->width;
      |                                        ^~
../src/mkdfvff.c:309:40: error: ?AVStream? has no member named ?codec?
  309 |           height  = fmt_ctx->streams[0]->codec->height;
      |                                        ^~
../src/mkdfvff.c:313:38: error: ?AVStream? has no member named ?codec?
  313 |           switch (fmt_ctx->streams[0]->codec->colorspace) {
      |                                      ^~
../src/mkdfvff.c:329:38: error: ?AVStream? has no member named ?codec?
  329 |           switch (fmt_ctx->streams[0]->codec->pix_fmt) {
      |                                      ^~
../src/mkdfvff.c:353:54: error: ?AVStream? has no member named ?codec?
  353 |                if (avcodec_open2( fmt_ctx->streams[0]->codec,
      |                                                      ^~
../src/mkdfvff.c:354:76: error: ?AVStream? has no member named ?codec?
  354 |                                   avcodec_find_decoder( fmt_ctx->streams[0]->codec->codec_id ), NULL)) {
      |                                                                            ^~
../src/mkdfvff.c: In function ?write_frames?:
../src/mkdfvff.c:414:11: error: unknown type name ?AVPicture?
  414 |           AVPicture           picture;
      |           ^~~~~~~~~
../src/mkdfvff.c:435:71: error: ?AVStream? has no member named ?codec?
  435 |           sws_ctx = sws_getContext( width, height, fmt_ctx->streams[0]->codec->pix_fmt, width, height, pix_fmt,
      |                                                                       ^~
../src/mkdfvff.c:447:58: error: ?AVStream? has no member named ?codec?
  447 |                avcodec_decode_video2( fmt_ctx->streams[0]->codec, frame, &got_frame, &pkt );
      |                                                          ^~
../src/mkdfvff.c:452:97: error: request for member ?data? in something not a structure or union
  452 |                     sws_scale( sws_ctx, (void*) frame->data, frame->linesize, 0, height, picture.data, picture.linesize );
      |                                                                                                 ^
../src/mkdfvff.c:452:111: error: request for member ?linesize? in something not a structure or union
  452 |                     sws_scale( sws_ctx, (void*) frame->data, frame->linesize, 0, height, picture.data, picture.linesize );
      |                                                                                                               ^
../src/mkdfvff.c:474:45: error: ?AVStream? has no member named ?codec?
  474 |           avcodec_close( fmt_ctx->streams[0]->codec );
      |                                             ^~
ninja: build stopped: subcommand failed.

Regards!

dreieck commented on 2025-03-28 11:02 (UTC)

You need to add the following or similar to build():

  _CFLAGSADDITIONS="-Wno-error=implicit-function-declaration"
  CFLAGS+=" ${_CFLAGSADDITIONS}"
  CXXFLAGS+=" ${_CFLAGSADDITIONS}"
  export CFLAGS
  export CXXFLAGS

in order to work around build errors like

../src/mkdfvff.c:353:20: error: implicit declaration of function ?avcodec_open2?; did you mean ?avio_open2?? [-Wimplicit-function-declaration]
  353 |                if (avcodec_open2( fmt_ctx->streams[0]->codec,
      |                    ^~~~~~~~~~~~~
      |                    avio_open2

Also, please add provides=("directfb2-tools") and conflicts=("directfb2-tools").

Regards and thanks for the package!