-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile issues in Ubuntu-WSL2 environment on Windows #703
Comments
I have deleted the
Edit: It returned the following error message:
Detailed log:
|
Worked for me recently, I think the xavs means the cross compilers failed, try again? |
Unfortunately I get the same error when trying to cross-compile for Windows (win64) using a fresh clone of this repo in
I get the same error as issue #633. When I change '--cflags=-march=znver3' from
I now use BtbN's FFmpeg Builder which builds without errors, probably because it doesn't have the AVS codec, but instead it has XAVS2 and AVS3D. |
what's your output from xavs' config.log? What command are you using to
run the script?
…On Fri, Aug 18, 2023 at 11:47 PM cryptix ***@***.***> wrote:
Worked for me recently, I think the xavs means the cross compilers failed,
try again?
Unfortunately I get the same error when trying to cross-compile for
Windows (win64) using a fresh clone of this repo in Ubuntu 22.04.3 LTS on
WSL. I've used the same configuration from #703 (comment)
<#703 (comment)>
except for '*--cflags=-march=znver3*' I've changed znver3 to x86-64
because gcc 10.2.0 doesn't support AMD Zen 3 processors.
svn checking out to xavs_svn
...
Checked out revision 55.
configuring xavs_svn (/home/user/ffmpeg-windows-build-helpers/sandbox/win64/xavs_svn) as $ PKG_CONFIG_PATH=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib/pkgconfig PATH=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin:$PATH ./configure --host=x86_64-w64-mingw32 --prefix=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --cross-prefix=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32-
all touch files already_configured* touchname= already_configured_9969f0555dc839d1cb007ddb15544253-
config options --host=x86_64-w64-mingw32 --prefix=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --cross-prefix=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32- ./configure
No working C compiler found.
failed configure xavs_svn
~/ffmpeg-windows-build-helpers$
I get the same error as issue #633
<#633>.
I now use BtbN's FFmpeg Builder <https://github.com/BtbN/FFmpeg-Builds>
which builds without errors, probably because it doesn't have the AVS
codec, but instead it has XAVS2 and AVS3D.
—
Reply to this email directly, view it on GitHub
<#703 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAADBUCB35H66BXNIEVAO7TXWBHOBANCNFSM6AAAAAA2LJTI2Y>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I've already mentioned in the previous comment that I use the same commands: When I changed I'm guessing it might be related to this GCC version which might need to be updated to something like 11.4.0.
Compiled on CPU: AMD 5600X Vermeer (Zen 3 based) |
OK I finally figured out the xavs failure (gotta actually manually run it to see the failure message apparently)
so I guess the gcc isn't new enough to recognizer znver3, as expected. libflite seems to have a very weird condition where if the method is declared __inline in the .h and in the .c, "sometimes" gcc would export it and sometimes not (?) maybe it was able to inline it more easily with some -march ? gcc bug? what? Anyway pull the latest libflite, thanks for the report. I'll try some newer gcc's but have had problems in the past so it may not be easy...cheers! |
Unfortunately bumping to gcc 13.2.0 causes a few things to fail, so that's not going to be trivial or forthcoming quick... :) |
Moving the |
On my Windows 11 machine I recently installed
Windows Subsystem for Linux
(WSL2) from the Windows store and installed the latest version of Ubuntu that was availableUbuntu 22.04.2 LTS
.I've used the update and upgrade commands before I got started to run the ffmpeg compile script.
I don't know whether I was suppose to do anything different when compiling in WSL2 environment.
Compile Issues
When running the script for the very first time I was prompted with an error message:
* I don't know whether disabling 'binfmt' would cause other implications in the WSL environment.
After disabling 'binfmt' and running the ffmpeg compile script again, I am returned with the following error message:
Environment
Compile Option
./cross_compile_ffmpeg.sh --build-ffmpeg-static=y --build-ffmpeg-shared=n --disable-nonfree=n --build-x264-with-libav=y
Version: Win64 (64-bit only)
The text was updated successfully, but these errors were encountered: