Question / Help can't build nvenc on Ubuntu..

KGB1st

New Member
used apt install pkgconf and added variables
echo $PKG_CONFIG_PATH
/usr/lib/x86_64-linux-gnu/pkgconfig
echo $PKG_CONFIG_LIBDIR
/usr/lib/x86_64-linux-gnu/
and got errors when tried to compile...
./configure --prefix=/home/kgb1st/build-ffmpeg/last --enable-nvenc --enable-nonfree
Code:
Package xproto was not found in the pkg-config search path.
Perhaps you should add the directory containing `xproto.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xproto', required by 'xau', not found
Package 'xproto', required by 'xdmcp', not found
Package xproto was not found in the pkg-config search path.
Perhaps you should add the directory containing `xproto.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xproto', required by 'xau', not found
Package 'xproto', required by 'xdmcp', not found
Package xproto was not found in the pkg-config search path.
Perhaps you should add the directory containing `xproto.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xproto', required by 'xau', not found
Package 'xproto', required by 'xdmcp', not found
Package xproto was not found in the pkg-config search path.
Perhaps you should add the directory containing `xproto.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xproto', required by 'xau', not found
Package 'xproto', required by 'xdmcp', not found
Package 'xproto', required by 'xau', not found
Package 'xproto', required by 'xdmcp', not found
Package 'xproto', required by 'xau', not found
Package 'xproto', required by 'xdmcp', not found
ERROR: nvenc requested, but not all dependencies are satisfied: ffnvcodec

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
 

KGB1st

New Member
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/" ./configure --prefix=/home/kgb1st/build-ffmpeg/last --enable-nvenc --enable-nonfree --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --extra-version=2 --toolchain=hardened --enable-shared --enable-gpl

Code:
/usr/bin/ld: libavcodec/mqc.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
libavcodec/mqc.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
ffbuild/library.mak:102: recipe for target 'libavcodec/libavcodec.so.58' failed
make: *** [libavcodec/libavcodec.so.58] Error 1

wtf.. lol
 
Top