# building paraview - ffmpeg deprecated library- cmake isnt finding python and fortran

**URL:** https://discourse.paraview.org/t/building-paraview-ffmpeg-deprecated-library-cmake-isnt-finding-python-and-fortran/2776
**Category:** Development
**Created:** [October 15, 2019, 9:33pm UTC](https://discourse.paraview.org/t/building-paraview-ffmpeg-deprecated-library-cmake-isnt-finding-python-and-fortran/2776 "2019-10-15T21:33:52Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![hgropelli](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hgropelli/32/1559_2.png) [@hgropelli](https://discourse.paraview.org/u/hgropelli)
#### Post date: [October 15, 2019, 9:33pm UTC](https://discourse.paraview.org/t/building-paraview-ffmpeg-deprecated-library-cmake-isnt-finding-python-and-fortran/2776/1 "2019-10-15T21:33:52Z")

</div>

for ffmpeg: [https://gitlab.kitware.com/paraview/paraview/issues/19397](https://gitlab.kitware.com/paraview/paraview/issues/19397)  
[https://patchwork.ffmpeg.org/patch/6959/](https://patchwork.ffmpeg.org/patch/6959/)  
when building paraview cmake doesnt detect python 3, fortran and “opengl-xmesa”. how to proceed?  
im running centos 8 with intel parallel xe (fortran compiler) with all dependencies installed.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 16, 2019, 3:58am UTC](https://discourse.paraview.org/t/building-paraview-ffmpeg-deprecated-library-cmake-isnt-finding-python-and-fortran/2776/2 "2019-10-16T03:58:09Z")

</div>

I’m not sure what your are doing right now. Do you have these errors only when building with the patch you link ?

---

<div class="post-metadata">

### Author: ![hgropelli](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hgropelli/32/1559_2.png) [@hgropelli](https://discourse.paraview.org/u/hgropelli)
#### Post date: [October 16, 2019, 9:36am UTC](https://discourse.paraview.org/t/building-paraview-ffmpeg-deprecated-library-cmake-isnt-finding-python-and-fortran/2776/3 "2019-10-16T09:36:55Z")

</div>

The “patch” is a change made in ffmpeg, that link is a piece of changelog ( series of patchs through time). When I download the last version from git of ffmpeg and build doesn’t generate the required library of cmake. Because libavresample was substituted to libswresample. If you google it " libvsvsampe deprecated" you will get a series of other packages with the same problem.

Thank you

---

<div class="post-metadata">

### Author: ![hgropelli](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hgropelli/32/1559_2.png) [@hgropelli](https://discourse.paraview.org/u/hgropelli)
#### Post date: [October 16, 2019, 9:50am UTC](https://discourse.paraview.org/t/building-paraview-ffmpeg-deprecated-library-cmake-isnt-finding-python-and-fortran/2776/4 "2019-10-16T09:50:06Z")

</div>

In respect of linking fortran, python 3 there is a way to do a direct link? I don’t have an idea what cmake is requesting from “opengl xmesa”, I already have installed all libraries from Mesa and qt5, and I running the driver from Nvidia not “generic noveau”. Both gave me the same problem.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 17, 2019, 2:33am UTC](https://discourse.paraview.org/t/building-paraview-ffmpeg-deprecated-library-cmake-isnt-finding-python-and-fortran/2776/5 "2019-10-17T02:33:42Z")

</div>

1. Why do you want to build with an updated ffmpeg ?
2. What does this have to do with fortran or python 3 ?
3. What do you mean by direct link ?
4. Why are you mentioning “opengl xmesa” ? Do you have an error message ?

**What are you trying to achieve ?**  
**How are you trying to achieve it ?**  
**What is not working ?**  
**Can you share an error message ?**

---

<div class="post-metadata">

### Author: ![hgropelli](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hgropelli/32/1559_2.png) [@hgropelli](https://discourse.paraview.org/u/hgropelli)
#### Post date: [October 17, 2019, 1:25pm UTC](https://discourse.paraview.org/t/building-paraview-ffmpeg-deprecated-library-cmake-isnt-finding-python-and-fortran/2776/6 "2019-10-17T13:25:09Z")

</div>

first, im using updated ffmpeg because i dont know if an older version would run with centos8.  
about fortran(now is detected), python, opengl xmesa, cmake says that didn’t found fortran and python. i have installed intel fortran and python beyond system packages of python and fortran.  
direct link i meant force cmake finding the py/fortran/openglxmesa libraries.  
well my primary objective is build paraview with ffmpeg and running in my nvidia driver. but im confused wich graphical renderer i use mesa, qt5 … im relatively new to linux.

---

<div class="post-metadata">

### Author: ![hgropelli](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hgropelli/32/1559_2.png) [@hgropelli](https://discourse.paraview.org/u/hgropelli)
#### Post date: [October 17, 2019, 1:36pm UTC](https://discourse.paraview.org/t/building-paraview-ffmpeg-deprecated-library-cmake-isnt-finding-python-and-fortran/2776/7 "2019-10-17T13:36:43Z")

</div>

CMake Error at VTK/CMake/vtkModule.cmake:3664 (message):  
Could not find the FFMPEG external dependency.  
Call Stack (most recent call first):  
VTK/IO/FFMPEG/CMakeLists.txt:1 (vtk\_module\_find\_package)  
" Page 3 of 14  
EXECINFO\_LIB EXECINFO\_LIB-NOTFOUND  
ExternalData\_URL\_TEMPLATES  
FFMPEG\_avcodec\_INCLUDE\_DIR /usr/local/include  
FFMPEG\_avcodec\_LIBRARY /usr/local/lib/libavcodec.a  
FFMPEG\_avdevice\_INCLUDE\_DIR /usr/local/include  
FFMPEG\_avdevice\_LIBRARY /usr/local/lib/libavdevice.a  
FFMPEG\_avfilter\_INCLUDE\_DIR /usr/local/include  
FFMPEG\_avfilter\_LIBRARY /usr/local/lib/libavfilter.a  
FFMPEG\_avformat\_INCLUDE\_DIR /usr/local/include  
FFMPEG\_avformat\_LIBRARY /usr/local/lib/libavformat.a  
FFMPEG\_avresample\_INCLUDE\_DIR /usr/local/include  
FFMPEG\_avresample\_LIBRARY /usr/local/lib/libavresample.a  
FFMPEG\_avutil\_INCLUDE\_DIR /usr/local/include  
FFMPEG\_avutil\_LIBRARY /usr/local/lib/libavutil.a  
FFMPEG\_swresample\_INCLUDE\_DIR /usr/local/include  
FFMPEG\_swresample\_LIBRARY /usr/local/lib/libswresample.a  
FFMPEG\_swscale\_INCLUDE\_DIR /usr/local/include  
FFMPEG\_swscale\_LIBRARY /usr/local/lib/libswscale.a  
FREETYPE\_INCLUDE\_DIR\_freetype2 /usr/include/freetype2  
FREETYPE\_INCLUDE\_DIR\_ft2build /usr/include/freetype2  
FREETYPE\_LIBRARY\_DEBUG FREETYPE\_LIBRARY\_DEBUG-NOTFOUND  
FREETYPE\_LIBRARY\_RELEASE /usr/lib64/libfreetype.so  
Fontconfig\_DIR Fontconfig\_DIR-NOTFOUND  
GITCOMMAND /usr/bin/git  
GIT\_EXECUTABLE /usr/bin/git  
HDF5\_BATCH\_H5DETECT OFF  
HDF5\_USE\_PREGEN OFF  
HGCOMMAND HGCOMMAND-NOTFOUND  
MAKECOMMAND /usr/bin/cmake --build . --config "${CTEST\_CONFIGURATION\_TY  
MEMORYCHECK\_COMMAND /usr/bin/valgrind  
MEMORYCHECK\_SUPPRESSIONS\_FILE  
OPENGL\_EGL\_INCLUDE\_DIR /usr/include  
OPENGL\_GLES2\_INCLUDE\_DIR /usr/include  
OPENGL\_GLES3\_INCLUDE\_DIR /usr/include  
OPENGL\_GLX\_INCLUDE\_DIR /usr/include  
OPENGL\_INCLUDE\_DIR /usr/include  
OPENGL\_egl\_LIBRARY /usr/lib64/libEGL.so  
OPENGL\_gles2\_LIBRARY /usr/lib64/libGLESv2.so  
OPENGL\_gles3\_LIBRARY /usr/lib64/libGLESv2.so  
OPENGL\_glu\_LIBRARY /usr/lib64/libGLU.so  
OPENGL\_glx\_LIBRARY /usr/lib64/libGLX.so  
OPENGL\_opengl\_LIBRARY /usr/lib64/libOpenGL.so

ExternalData\_URL\_TEMPLATES: Additional URL templates for the ExternalData CMake script to look  
Press [enter] to edit option Press [d] to delete an entry CMake Version 3.11.4  
Press [c] to configure  
Press [h] for help Press [q] to quit without generating  
Press [t] to toggle advanced mode (Currently On)"

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 17, 2019, 1:41pm UTC](https://discourse.paraview.org/t/building-paraview-ffmpeg-deprecated-library-cmake-isnt-finding-python-and-fortran/2776/8 "2019-10-17T13:41:58Z")

</div>

How did you install ffmpeg ?

---

<div class="post-metadata">

### Author: ![hgropelli](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hgropelli/32/1559_2.png) [@hgropelli](https://discourse.paraview.org/u/hgropelli)
#### Post date: [October 17, 2019, 1:44pm UTC](https://discourse.paraview.org/t/building-paraview-ffmpeg-deprecated-library-cmake-isnt-finding-python-and-fortran/2776/9 "2019-10-17T13:44:24Z")

</div>

[https://linuxconfig.org/how-to-install-ffmpeg-on-redhat-8](https://linuxconfig.org/how-to-install-ffmpeg-on-redhat-8)

by git, git clone, ./configure, make, make install  
to use nvidia which graphic renderer i use?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 17, 2019, 1:49pm UTC](https://discourse.paraview.org/t/building-paraview-ffmpeg-deprecated-library-cmake-isnt-finding-python-and-fortran/2776/10 "2019-10-17T13:49:50Z")

</div>

What about adding a repository instead :

> **[How To Install FFmpeg on CentOS 8 / RHEL 8 - Computing for Geeks](https://computingforgeeks.com/how-to-install-ffmpeg-on-centos-rhel-8/)**
>
> Question: How can install FFmpeg on CentOS 8 / RHEL 8 Linux system?. FFmpeg is a free and open source multimedia framework used to play, encode, decode, stream, transcode, mux, demux, and filter different formats of multimedia files including MPEG1...

---

<div class="post-metadata">

### Author: ![hgropelli](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hgropelli/32/1559_2.png) [@hgropelli](https://discourse.paraview.org/u/hgropelli)
#### Post date: [October 17, 2019, 1:50pm UTC](https://discourse.paraview.org/t/building-paraview-ffmpeg-deprecated-library-cmake-isnt-finding-python-and-fortran/2776/11 "2019-10-17T13:50:20Z")

</div>

i tried installing ffmpeg with libavresample enabled, by ./configure --enable libavresample

---

<div class="post-metadata">

### Author: ![hgropelli](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hgropelli/32/1559_2.png) [@hgropelli](https://discourse.paraview.org/u/hgropelli)
#### Post date: [October 17, 2019, 1:57pm UTC](https://discourse.paraview.org/t/building-paraview-ffmpeg-deprecated-library-cmake-isnt-finding-python-and-fortran/2776/12 "2019-10-17T13:57:56Z")

</div>

Name : ffmpeg  
Version : 4.2.1  
Release : 2.el8  
Architecture: x86\_64  
Install Date: qui 17 out 2019 10:54:23 -03  
Group : Unspecified  
Size : 1939212  
License : GPLv2+  
Signature : RSA/SHA1, seg 09 set 2019 05:42:57 -03, Key ID 979f0c69158b3811  
Source RPM : ffmpeg-4.2.1-2.el8.src.rpm  
Build Date : sáb 07 set 2019 06:22:54 -03  
Build Host : [unallocated.barefruit.co.uk](http://unallocated.barefruit.co.uk)  
Relocations : (not relocatable)  
Packager : RPM Fusion  
Vendor : RPM Fusion  
URL : [http://ffmpeg.org/](http://ffmpeg.org/)  
Summary : Digital VCR and streaming server  
Description :  
FFmpeg is a complete and free Internet live audio and video  
broadcasting solution for Linux/Unix. It also includes a digital  
VCR. It can encode in real time in many formats including MPEG1 audio  
and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.  
[root@localhost git]# ffmpeg -version  
ffmpeg version N-95433-g0279e727e9 Copyright © 2000-2019 the FFmpeg developers  
built with gcc 8 (GCC)  
configuration: --enable-avresample  
libavutil 56. 35.101 / 56. 35.101  
libavcodec 58. 59.102 / 58. 59.102  
libavformat 58. 33.100 / 58. 33.100  
libavdevice 58. 9.100 / 58. 9.100  
libavfilter 7. 63.100 / 7. 63.100  
libavresample 4. 0. 0 / 4. 0. 0  
libswscale 5. 6.100 / 5. 6.100  
libswresample 3. 6.100 / 3. 6.100

no success  
" CMake Error at VTK/CMake/vtkModule.cmake:3664 (message):  
Could not find the FFMPEG external dependency.  
Call Stack (most recent call first):  
VTK/IO/FFMPEG/CMakeLists.txt:1 (vtk\_module\_find\_package)

"  
which component is missing?
