Skip to content

Compile error on Arch Linux. #1065

@evertvorster

Description

@evertvorster

Hi there!

Just checked out the latest mlt from git master, and unfortunately it does not build.

Here is the error that I am encountering:

/mnt/int/system/aur/mlt-git/src/mlt/src/modules/sdl2/common.c: In function ‘sdl2_open_audio’:
/mnt/int/system/aur/mlt-git/src/mlt/src/modules/sdl2/common.c:40:17: error: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
   40 |             if (strcmp(driver, "disk") == 0 || strcmp(driver, "dummy") == 0) {
      |                 ^~~~~~
/mnt/int/system/aur/mlt-git/src/mlt/src/modules/sdl2/common.c:23:1: note: include ‘<string.h>’ or provide a declaration of ‘strcmp’
   22 | #include <framework/mlt_log.h>
  +++ |+#include <string.h>
   23 | 
make[2]: *** [src/modules/sdl2/CMakeFiles/mltsdl2.dir/build.make:79: src/modules/sdl2/CMakeFiles/mltsdl2.dir/common.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2410: src/modules/sdl2/CMakeFiles/mltsdl2.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

More about my system:

Operating System: Arch Linux 
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.12.10-arch1-1.1-g14 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 7945HX3D with Radeon Graphics
Memory: 62.0 GiB of RAM
Graphics Processor: AMD Radeon 610M
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ROG Strix G733PYV_G733PYV
System Version: 1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions