1. Betriebssysteme >
  2. Linux Tipps >
  3. Building libva in while disabling libdrm

ArabicEnglishFrenchGermanGreekItalianJapaneseKoreanPersianPolishPortugueseRussianSpanishTurkishVietnamese

Building libva in while disabling libdrm


Linux Tipps vom | Direktlink: reddit.com Nachrichten Bewertung

I've been struggling with this for a few days now and honestly I don't know where to turn. I've had success getting a clean build of ffmpeg with ha few dependencies via cygwin, but I'm having trouble getting it with libmfx/QuickSync enabled.

In order to get ffmpeg built with libmfx I need to build the msdk, or Intel Media SDK. In turn, the msdk has dependency on libva, which needs libdrm to access the drm infrastructure of the linux kernel. Here's where it get's rough. libdrm just doesn't exist on windows, there's no infrastructure for it to make any sense. And so, it's not available as a package or a separate lib for cygwin.

In order for me to get this to work, I'd need to find a way to tell libva, maybe through configure options/flags, to not use drm. How can I achieve that?

Here's my libva make command:

cd /ffmpeg_sources && rm -rf libva && git clone https://github.com/intel/libva libva && cd libva && CFLAGS=-I/usr/x86_64-w64-mingw32/sys-root/mingw/include && LDFLAGS=-L/usr/x86_64-w64-mingw32/sys-root/mingw/lib && export LD_LIBRARY_PATH=/ffmpeg_sources/libva/ && export PKG_CONFIG_LIBDIR=/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig && export PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig && ./autogen.sh --prefix=/usr/local --libdir=/usr/x86_64-w64-mingw32/sys-root/mingw/lib --enable-static --disable-shared && make -j$(nproc) && make install 

Here's the log for it:

autoreconf-2.69: Entering directory `.' autoreconf-2.69: configure.ac: not using Gettext autoreconf-2.69: running: aclocal -I m4 ${ACLOCAL_FLAGS} autoreconf-2.69: configure.ac: tracing autoreconf-2.69: running: libtoolize --copy autoreconf-2.69: running: /usr/bin/autoconf-2.69 autoreconf-2.69: running: /usr/bin/autoheader-2.69 autoreconf-2.69: running: automake --add-missing --copy --no-force va/wayland/Makefile.am:30: warning: source file '../drm/va_drm_utils.c' is in a subdirectory, va/wayland/Makefile.am:30: but option 'subdir-objects' is disabled automake-1.16: warning: possible forward-incompatibility. automake-1.16: At least a source file is in a subdirectory, but the 'subdir-objects' automake-1.16: automake option hasn't been enabled. For now, the corresponding output automake-1.16: object file(s) will be placed in the top-level directory. However, automake-1.16: this behaviour will change in future Automake versions: they will automake-1.16: unconditionally cause object files to be placed in the same subdirectory automake-1.16: of the corresponding sources. automake-1.16: You are advised to start using 'subdir-objects' option throughout your automake-1.16: project, to avoid future incompatibilities. autoreconf-2.69: Leaving directory `.' checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking build system type... x86_64-pc-cygwin checking host system type... x86_64-pc-cygwin checking how to print strings... printf checking whether make supports the include directive... yes (GNU style) checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.exe checking for suffix of executables... .exe checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/x86_64-pc-cygwin/bin/ld.exe checking if the linker (/usr/x86_64-pc-cygwin/bin/ld.exe) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 8192 checking how to convert x86_64-pc-cygwin file names to x86_64-pc-cygwin format... func_convert_file_noop checking how to convert x86_64-pc-cygwin file names to toolchain format... func_convert_file_noop checking for /usr/x86_64-pc-cygwin/bin/ld.exe option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL checking for dlltool... dlltool checking how to associate runtime and link libraries... func_cygming_dll_for_implib checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/x86_64-pc-cygwin/bin/ld.exe) supports shared libraries... yes checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/x86_64-pc-cygwin/bin/ld.exe checking if the linker (/usr/x86_64-pc-cygwin/bin/ld.exe) is GNU ld... yes checking whether the g++ linker (/usr/x86_64-pc-cygwin/bin/ld.exe) supports shared libraries... yes checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/x86_64-pc-cygwin/bin/ld.exe) supports shared libraries... yes checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for ANSI C header files... (cached) yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking whether __attribute__((visibility())) is supported... no checking whether gcc accepts -fstack-protector... yes checking for DRM... no configure: error: Package requirements (libdrm >= 2.4) were not met: Package 'libdrm', required by 'virtual:world', not found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables DRM_CFLAGS and DRM_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. 
submitted by /u/hiihiiii
[link] [comments]...

Externe Webseite mit kompletten Inhalt öffnen



https://www.reddit.com/r/linux/comments/gpe7eg/building_libva_in_while_disabling_libdrm/

Team Security Social Media

➤ Weitere Beiträge von Team Security | IT Sicherheit

  • Building libva in while disabling libdrm

    vom 300.34 Punkte ic_school_black_18dp
    I've been struggling with this for a few days now and honestly I don't know where to turn. I've had success getting a clean build of ffmpeg with ha few dependencies via cygwin, but I'm having trouble getting it with libmfx/QuickSync enabled. In order to get ffmpeg b
  • Accelerating smart building solutions with cloud, AI, and IoT

    vom 159.16 Punkte ic_school_black_18dp
    Throughout our Internet of Things (IoT) journey we’ve seen solutions evolve from device-centric models, to spatially-aware solutions that provide real-world context. Last year at Realcomm | IBcon, we announced Azure IoT’s vision for spatial intelligen
  • Building Careers and Companies with Open Source with Miguel de Icaza | Careers Behind the Code

    vom 105.32 Punkte ic_school_black_18dp
    In this episode, we talk to Miguel de Icaza, Distinguished Engineer about his career building open source software, founding companies, and building communities. [01:10] - What Miguel does at Microsoft [04:15] - Miguel's origins in Open Source during college [08:00] - The Birth of GNOME [10:30] - The Birth of Mono [12:45] - Uni
  • Building Careers with Empathy with Scott Hanselman | Careers Behind the Code

    vom 105.05 Punkte ic_school_black_18dp
    In this month's episode, Steve Carroll, the director of development for the .NET team, interviews Scott Hanselman the Community Program Manager Lead for the .NET team about his career. Scott is a big believer in using the power of empathy and in this co
  • [Unstable Update] 2020-04-03 - Qt 5.14.2, UKUI, Mesa 20.0.4, Haskell, Python

    vom 89.3 Punkte ic_school_black_18dp
    @philm wrote: Hello community, here is another Unstable Update for you: 1280×722... there will be a mini online sprint for PlasmaMobile next week. Best time to join the game! Some feature-updates: Qt got updated to 5.14.2
  • [Testing Update] 2020-04-04 - Qt 5.14.2, Firefox 74.0.1, UKUI, Pamac, Haskell, Python

    vom 89.3 Punkte ic_school_black_18dp
    @philm wrote: Hello community, here is another Testing Update for you: 1280×722... there will be a mini online sprint for PlasmaMobile next week. Best time to join the game! Some feature-updates: Qt got updated to 5.14.2
  • Johnson Controls tackles a $15b building industry problem with Azure Cosmos DB

    vom 88.16 Punkte ic_school_black_18dp
    This blog post was co-authored by Nikisha Reyes-Grange, Senior Product Marketing Manager, Azure Marketing, and Balamurugan Balakreshnan, Cloud Solution Architect, CSU-Data and AI. Johnson Controls has been a pioneer in building management solutio
  • Johnson Controls tackles a $15b building industry problem with Azure Cosmos DB

    vom 88.16 Punkte ic_school_black_18dp
    This blog post was co-authored by Nikisha Reyes-Grange, Senior Product Marketing Manager, Azure Marketing, and Balamurugan Balakreshnan, Cloud Solution Architect, CSU-Data and AI. Johnson Controls has been a pioneer in building management solutio
  • How smart buildings can help combat climate change

    vom 83.37 Punkte ic_school_black_18dp
    The Internet of Things (IoT) is changing the way governments and organizations tackle some of humanity’s thorniest challenges. In this three-part series, we looked first at common issues leaders must address to drive digital transformation in their cities. Next, we’ll be focusing on exciting, major applicat
  • [Testing Update] 2019-10-03 - Octopi, Mesa, Gnome, Budgie, Repo-Compare

    vom 71.44 Punkte ic_school_black_18dp
    @philm wrote: Hello community, I am happy to announce another Testing Update. Mostly we have updates to Gnome, Budgie, Octopi and Mesa. repo-compare is one of our new web-services. Give us your feedback on that new service! Update news This updat
  • Microsoft releases 18M building footprints in Africa to enable AI Assisted Mapping

    vom 67.02 Punkte ic_school_black_18dp
    In the last ten years, 2 billion people were affected by disasters according to the World Disasters report 2018. In 2017, 201 million people needed humanitarian assistance and 18 million were displaced due to weather related disasters. Many of these disast
  • Microsoft releases 18M building footprints in Uganda and Tanzania to enable AI Assisted Mapping

    vom 67.02 Punkte ic_school_black_18dp
    In the last ten years, 2 billion people were affected by disasters according to the World Disasters report 2018. In 2017, 201 million people needed humanitarian assistance and 18 million were displaced due to weather related disasters. Many of these disast

Team Security Diskussion über Building libva in while disabling libdrm