Walkaround for building wine-staging 3.12 on fedora 28

Questions about Wine on Linux
Locked
tim110011
Level 2
Level 2
Posts: 30
Joined: Wed Jul 05, 2017 2:29 am

Walkaround for building wine-staging 3.12 on fedora 28

Post by tim110011 »

If you encounter this error:

Code: Select all

make[1]: Entering directory '/home/me/__wine_build/18-07-13-06-01/3.12-staging/wine/32build/dlls/xapofx1_1'
ccache gcc -m32 -c -o xapofx.o ../../../dlls/xapofx1_1/../xaudio2_7/xapofx.c -I. -I../../../dlls/xapofx1_1 \
  -I../../../dlls/xapofx1_1/../xaudio2_7 -I../../include -I../../../include -D__WINESRC__ \
  -DXAPOFX1_VER=1 -DXAUDIO2_VER=2 -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing \
  -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wno-packed-not-aligned \
  -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla \
  -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer \
  -g -O2
In file included from ../../../dlls/xapofx1_1/../xaudio2_7/xapofx.c:27:
../../../dlls/xapofx1_1/../xaudio2_7/xaudio_private.h:33:10: fatal error: libavcodec/avcodec.h: No such file or directory
 #include <libavcodec/avcodec.h>
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:184: xapofx.o] Error 1
make[1]: Leaving directory '/home/me/__wine_build/18-07-13-06-01/3.12-staging/wine/32build/dlls/xapofx1_1'
make: *** [Makefile:7951: dlls/xapofx1_1] Error 2
Try this bash script, just remember to remove those links when devs fixed this bug.

Code: Select all

#!/bin/bash 

cd /usr/include/
ls -1 ./ffmpeg | \
    while read dirname; do
        sudo ln -s ./ffmpeg/$dirname/ ./
    done
On fedora, these libav* dirs are installed to /usr/include/ffmpeg/ , however it seems head file is expecting them at /usr/include/
Locked