

This reply is my attempt to help others to compile, with a couple of questions at the end. This guide is outdated for me, on certain parts at least. I’m on Windows 10, running msys2 and mingw64, with a GTX 1080. I’ve followed this guide to install cuda-nvcc and libnpp with ffmpeg. configure: line 983: cl.exe: command not found WARNING: Unknown C compiler cl.exe, unable to select optimal CFLAGSĬl.exe -c -o. I did everything else recommended by xywhpanda, even changed the gencode, but always getting the same error If you think configure made a mistake, make sure you are using the latest I’m also trying today to compile with Visual Studio 2019 and every time I have the following error: compat/windows/mslink -libpath:…/nv_sdk -nologo -out./ffconf.fLNB2Hzt/test.exe. test_ld ccĬl.exe -nologo -I…/nv_sdk -c -Fo./ffconf.fLNB2Hzt/test.o. Include the log file “ffbuild/config.log” produced by configure as this will help If the latest version fails, report the problem to mailing list or IRC # ffmpeg on. Only do this if you know what cross compiling means.Ĭ compiler test failed. If cl.exe is a cross-compiler, use the -enable-cross-compile option. configure -enable-cuda-sdk -disable-shared -enable-nonfree -enable-libnpp -toolchain=msvc -extra-cflags=-I…/nv_sdk -extra-ldflags=-libpath:…/nv_sdk The cl.exe error occurs as shown below.Ĭl.exe is unable to create an executable file.

c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl

Please comment if you know how to fix it.Įxport PATH=“/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/”:$PATHĮxport PATH=“/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.2/bin/”:$PATH
