https://bugs.winehq.org/show_bug.cgi?id=45435
Bug ID: 45435 Summary: Fatal error compiling on Fedora 28 because libavcodec file not found Product: Wine-staging Version: 3.12 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: blocker Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: yassermbb@gmail.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
When compiling on Fedora 28 the build fails trying to compile xaudio2_7 because it can't find libavcodec/avcodec.h, i confirmed and it is in fact installed under usr/include/ffmpeg/libavcodec but it seems to not find it because of ffmpeg folder
https://bugs.winehq.org/show_bug.cgi?id=45435
Yasser yassermbb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|blocker |critical
https://bugs.winehq.org/show_bug.cgi?id=45435
Yasser yassermbb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Fedora
https://bugs.winehq.org/show_bug.cgi?id=45435
Yasser yassermbb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |yassermbb@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=45435
--- Comment #1 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Can you please attached you config.log file?
https://bugs.winehq.org/show_bug.cgi?id=45435
--- Comment #2 from Yasser yassermbb@gmail.com --- Created attachment 61756 --> https://bugs.winehq.org/attachment.cgi?id=61756 Config log generetated
https://bugs.winehq.org/show_bug.cgi?id=45435
--- Comment #3 from Yasser yassermbb@gmail.com --- Comment on attachment 61756 --> https://bugs.winehq.org/attachment.cgi?id=61756 Config log generetated
The only way i was able to compile wine is copying the contentes of ffmpeg folder to usr/include.
https://bugs.winehq.org/show_bug.cgi?id=45435
--- Comment #4 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- The value for LIBAVUTIL_CFLAGS is set correctly in config.log.
Can you check the file dlls/xaudio2_7/Makefile for LIBAVUTIL_CFLAGS
If its not set, can you run "make distclean", then run configure again. I'm guessing that for some reason the Makefile's haven't been regenerated.
https://bugs.winehq.org/show_bug.cgi?id=45435
--- Comment #5 from Yasser yassermbb@gmail.com --- Created attachment 61757 --> https://bugs.winehq.org/attachment.cgi?id=61757 Xaudio2_7 makefile
It is generated, the only way i was able to compile was by copying the contents of the ffmpeg folder to /usr/include
LIBAVCODEC_CFLAGS = -I/usr/include/ffmpeg LIBAVCODEC_LIBS = -lavcodec LIBAVUTIL_CFLAGS = -I/usr/include/ffmpeg LIBAVUTIL_LIBS = -lavutil
https://bugs.winehq.org/show_bug.cgi?id=45435
--- Comment #6 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Thanks.
This is an extract from a my Makefile (fresh Fedora 28). Here you can see that the EXTRAINCL are included in the command line (-I/usr/include/ffmpeg ). Where as yours doesn't (cause of the compile error).
compat.o: compat.c $(CC) -c -o $@ compat.c -I. -I../../include -I/usr/include/ffmpeg -D__WINESRC__ -DXAUDIO2_VER=7 \ -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 $(CFLAGS)
in the wine.git directory try running make depend
Does this change the Makefile?
https://bugs.winehq.org/show_bug.cgi?id=45435
--- Comment #7 from Yasser yassermbb@gmail.com --- It does not change the error, i tried repatching wine-staging again and running autoreconf -vfi to see if it would change, make depend also didnt change the output i also runned clang with -v arg and it doesnt search the ffmpeg include like yours
clang -cc1 version 6.0.0 based upon LLVM 6.0.0 default target x86_64-unknown-linux-gnu ignoring nonexistent directory "/include" #include "..." search starts here: #include <...> search starts here: . ../../../wine-git/dlls/xapofx1_2 ../../../wine-git/dlls/xapofx1_2/../xaudio2_7 ../../include ../../../wine-git/include /usr/local/include /usr/lib64/clang/6.0.0/include /usr/include End of search list. In file included from ../../../wine-git/dlls/xapofx1_4/../xaudio2_7/xapofx.c:27: ../../../wine-git/dlls/xapofx1_4/../xaudio2_7/xaudio_private.h:33:10: fatal error: 'libavcodec/avcodec.h' file not found #include <libavcodec/avcodec.h>
as you can see it only search these directories
https://bugs.winehq.org/show_bug.cgi?id=45435
--- Comment #8 from Yasser yassermbb@gmail.com --- After some time seeing the makefiles generated, i've found that manually add -I/usr/include/ffmpeg on all xapofx1_* fixes the compile error but causes another problem, i dont know how to debug this sorry.
./../tools/widl/widl -o xaudio_classes_r.res -m64 -I. -I../../../wine-git/dlls/xaudio2_7 -I../../include \ -I../../../wine-git/include -I/usr/include/ffmpeg -D__WINESRC__ -lavcodec -lavutil -DXAUDIO2_VER=7 \ ../../../wine-git/dlls/xaudio2_7/xaudio_classes.idl ../../tools/widl/widl: unrecognized option '-lavcodec' Usage: widl [options...] infile.idl
https://bugs.winehq.org/show_bug.cgi?id=45435
--- Comment #9 from Yasser yassermbb@gmail.com --- I submitted a patch on github that fix the erros and let me compile, its a bit of a mess since i don't know how to create a proper patch file, sorry.
https://bugs.winehq.org/show_bug.cgi?id=45435
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #10 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- (In reply to Yasser from comment #9)
I submitted a patch on github that fix the erros and let me compile, its a bit of a mess since i don't know how to create a proper patch file, sorry.
Thanks. I understand the issue now.
dlls/xapofx1_[1-5] Makefiles.in need to have EXTRALIBS = $(OPENAL_LIBS) $(LIBAVCODEC_LIBS) $(LIBAVUTIL_LIBS) +EXTRAINCL = $(LIBAVCODEC_CFLAGS) $(LIBAVUTIL_CFLAGS)
Ill update the patch.
https://bugs.winehq.org/show_bug.cgi?id=45435
Brandon Amaro omega13a@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |omega13a@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=45435
Yasser yassermbb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #11 from Yasser yassermbb@gmail.com --- Patch was accepted on wine-staging and now is compiling without problems.
https://bugs.winehq.org/show_bug.cgi?id=45435
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #12 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Fixed Staging 3.14